public abstract class AbstractSliderLaunchedService extends LaunchedWorkflowCompositeService
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractSliderLaunchedService(String name) |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.hadoop.registry.client.api.RegistryOperations |
createRegistryOperationsInstance()
Create the registry operations instance.
|
String |
lookupZKQuorum()
look up the registry quorum from the config
|
protected static void |
require(boolean condition,
String message,
Object... args)
Require a condition to hold; throw
BadCommandArgumentsException if not. |
protected static void |
requireArgumentSet(String argname,
String value)
Utility method to require an argument to be set (non null, non-empty)
|
org.apache.hadoop.registry.client.api.RegistryOperations |
startRegistryOperationsService()
Create, adopt ,and start the YARN registration service
|
addService, bindArgs, deployChildService, getArgv, isSet, isUnset, runServicestateChangedaddIfService, getServices, removeService, serviceInit, serviceStart, serviceStopclose, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStopclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclose, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, registerServiceListener, start, stop, unregisterServiceListener, waitForServiceToStopgetServicesprotected AbstractSliderLaunchedService(String name)
public String lookupZKQuorum() throws BadConfigException
BadConfigException - if it is not there or invalidpublic org.apache.hadoop.registry.client.api.RegistryOperations startRegistryOperationsService()
throws BadConfigException
BadConfigExceptionprotected org.apache.hadoop.registry.client.api.RegistryOperations createRegistryOperationsInstance()
protected static void requireArgumentSet(String argname, String value) throws BadCommandArgumentsException
argname - argument namevalue - valueBadCommandArgumentsException - if the condition is not metprotected static void require(boolean condition,
String message,
Object... args)
throws BadCommandArgumentsException
BadCommandArgumentsException if not.
The exception text is the formatted message.condition - conditionmessage - string to formatargs - list of arguments to format.BadCommandArgumentsExceptionCopyright © 2014–2015 The Apache Software Foundation. All rights reserved.