public class Context extends Object implements Closeable
Constructor and Description |
---|
Context(FileSystemMasterClient fsClient,
BlockMasterClient blockClient,
MetaMasterClient metaClient,
MetricsMasterClient metricsClient,
JournalMasterClient masterJournalMasterClient,
JournalMasterClient jobMasterJournalMasterClient,
JobMasterClient jobMasterClient,
PrintStream printStream) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
BlockMasterClient |
getBlockClient() |
protected com.google.common.io.Closer |
getCloser() |
FileSystemMasterClient |
getFsClient() |
JobMasterClient |
getJobMasterClient() |
JournalMasterClient |
getJournalMasterClientForJobMaster() |
JournalMasterClient |
getJournalMasterClientForMaster() |
MetaMasterClient |
getMetaClient() |
MetricsMasterClient |
getMetricsClient() |
PrintStream |
getPrintStream() |
public Context(FileSystemMasterClient fsClient, BlockMasterClient blockClient, MetaMasterClient metaClient, MetricsMasterClient metricsClient, JournalMasterClient masterJournalMasterClient, JournalMasterClient jobMasterJournalMasterClient, JobMasterClient jobMasterClient, PrintStream printStream)
fsClient
- filesystem master clientblockClient
- block master clientmetaClient
- meta master clientmasterJournalMasterClient
- journal master client for mastermetricsClient
- metrics master clientjobMasterJournalMasterClient
- journal master client for job_masterjobMasterClient
- job master clientprintStream
- print stream to write topublic FileSystemMasterClient getFsClient()
public BlockMasterClient getBlockClient()
public MetaMasterClient getMetaClient()
public MetricsMasterClient getMetricsClient()
public JournalMasterClient getJournalMasterClientForMaster()
public JournalMasterClient getJournalMasterClientForJobMaster()
public JobMasterClient getJobMasterClient()
public PrintStream getPrintStream()
protected com.google.common.io.Closer getCloser()
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2023. All Rights Reserved.