use of alluxio.master.MasterClientContext in project alluxio by Alluxio.
the class FileSystemAdminShell method loadCommands.
@Override
protected Map<String, Command> loadCommands() {
ClientContext ctx = ClientContext.create(mConfiguration);
MasterClientContext masterConfig = MasterClientContext.newBuilder(ctx).build();
JobMasterClientContext jobMasterConfig = JobMasterClientContext.newBuilder(ctx).build();
Context adminContext = new Context(new RetryHandlingFileSystemMasterClient(masterConfig), new RetryHandlingBlockMasterClient(masterConfig), new RetryHandlingMetaMasterClient(masterConfig), new RetryHandlingMetaMasterConfigClient(masterConfig), new RetryHandlingMetricsMasterClient(masterConfig), new RetryHandlingJournalMasterClient(masterConfig), new RetryHandlingJournalMasterClient(jobMasterConfig), new RetryHandlingJobMasterClient(jobMasterConfig), System.out);
return CommandUtils.loadCommands(FileSystemAdminShell.class.getPackage().getName(), new Class[] { Context.class, AlluxioConfiguration.class }, new Object[] { mCloser.register(adminContext), mConfiguration });
}
use of alluxio.master.MasterClientContext in project alluxio by Alluxio.
the class TableMasterClientTest method before.
@Before
public final void before() throws Exception {
mFileSystem = mLocalAlluxioClusterResource.get().getClient();
MasterClientContext context = MasterClientContext.newBuilder(ClientContext.create(ServerConfiguration.global())).build();
mTableMasterClient = new RetryHandlingTableMasterClient(context);
mFSMasterClient = new FileSystemMasterClient(context);
}
Aggregations