public class RestartServicesCommand extends RoleLifecycleCommand
factory, parser, stateStoreFactory| Constructor and Description |
|---|
RestartServicesCommand() |
RestartServicesCommand(ClusterControllerFactory factory) |
RestartServicesCommand(ClusterControllerFactory factory,
ClusterStateStoreFactory stateStoreFactory) |
| Modifier and Type | Method and Description |
|---|---|
int |
runLifecycleStep(ClusterSpec clusterSpec,
ClusterController controller,
joptsimple.OptionSet optionSet)
Implement this method to trigger the relevant role lifecycle action
|
getTargetInstanceIdsOrEmpty, getTargetRolesOrEmpty, printUsage, runcreateClusterController, createClusterStateStore, getCluster, getClusterSpec, printErrorAndHelpHint, printProviderInfogetDescription, getNamepublic RestartServicesCommand()
throws IOException
IOExceptionpublic RestartServicesCommand(ClusterControllerFactory factory)
public RestartServicesCommand(ClusterControllerFactory factory, ClusterStateStoreFactory stateStoreFactory)
public int runLifecycleStep(ClusterSpec clusterSpec, ClusterController controller, joptsimple.OptionSet optionSet) throws IOException, InterruptedException
RoleLifecycleCommandrunLifecycleStep in class RoleLifecycleCommandIOExceptionInterruptedExceptionCopyright © 2010–2016 Cloudera. All rights reserved.