public final class Context extends Object implements Closeable
Constructor and Description |
---|
Context(FileSystemMasterClient fsClient,
BlockMasterClient blockClient,
MetaMasterClient metaClient,
MetaMasterConfigClient metaConfigClient,
JournalMasterClient masterJournalMasterClient,
JournalMasterClient jobMasterJournalMasterClient,
JobMasterClient jobMasterClient,
PrintStream printStream) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
BlockMasterClient |
getBlockClient() |
FileSystemMasterClient |
getFsClient() |
JobMasterClient |
getJobMasterClient() |
JournalMasterClient |
getJournalMasterClientForJobMaster() |
JournalMasterClient |
getJournalMasterClientForMaster() |
MetaMasterClient |
getMetaClient() |
MetaMasterConfigClient |
getMetaConfigClient() |
PrintStream |
getPrintStream() |
public Context(FileSystemMasterClient fsClient, BlockMasterClient blockClient, MetaMasterClient metaClient, MetaMasterConfigClient metaConfigClient, JournalMasterClient masterJournalMasterClient, JournalMasterClient jobMasterJournalMasterClient, JobMasterClient jobMasterClient, PrintStream printStream)
fsClient
- filesystem master clientblockClient
- block master clientmetaClient
- meta master clientmetaConfigClient
- meta configuration master clientmasterJournalMasterClient
- journal master client for masterjobMasterJournalMasterClient
- journal master client for job_masterjobMasterClient
- job master clientprintStream
- print stream to write topublic FileSystemMasterClient getFsClient()
public BlockMasterClient getBlockClient()
public MetaMasterClient getMetaClient()
public MetaMasterConfigClient getMetaConfigClient()
public JournalMasterClient getJournalMasterClientForMaster()
public JournalMasterClient getJournalMasterClientForJobMaster()
public JobMasterClient getJobMasterClient()
public PrintStream getPrintStream()
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2023. All Rights Reserved.