@InterfaceAudience.Private @InterfaceStability.Evolving public interface ITopologyAwareEnsemblePlacementPolicy<T extends Node> extends EnsemblePlacementPolicy {
/** * Made this as public for allowing old bookie shell use new cli command. * This should be removed once we get rid of the old bookie shell. */ @Private public int apply(String commandName, CompositeConfiguration conf, String[] args) { CliSpec<CommandFlagsT> newSpec = CliSpec.newBuilder(spec) .withName(commandName) .withRunFunc(cmdFlags -> apply(null, conf, new BKFlags(), cmdFlags)) .build(); return Cli.runCli(newSpec, args); }
/** * BookieShell command. */ @Private public interface Command { int runCmd(String[] args) throws Exception; String description(); void printUsage(); }
/** * Listener for the the available bookies changes. */ @InterfaceAudience.Private @InterfaceStability.Evolving public interface BookiesListener { /** * Callback method triggered when the list of available bookies are changed. */ void availableBookiesChanged(); }