public class WorkflowCompositeService extends org.apache.hadoop.service.CompositeService implements ServiceParent, org.apache.hadoop.service.ServiceStateChangeListener
| Constructor and Description |
|---|
WorkflowCompositeService()
Construct an instance with the default name.
|
WorkflowCompositeService(String name)
Construct an instance
|
WorkflowCompositeService(String name,
List<org.apache.hadoop.service.Service> children)
Construct with a list of children
|
WorkflowCompositeService(String name,
org.apache.hadoop.service.Service... children)
Varargs constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addService(org.apache.hadoop.service.Service service)
Add a service, and register it
|
void |
stateChanged(org.apache.hadoop.service.Service child)
When this service is started, any service stopping with a failure
exception is converted immediately into a failure of this service,
storing the failure and stopping ourselves.
|
addIfService, 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, waitgetServicespublic WorkflowCompositeService(String name)
name - name of this service instancepublic WorkflowCompositeService()
public WorkflowCompositeService(String name, org.apache.hadoop.service.Service... children)
name - name of this service instancechildren - childrenpublic void addService(org.apache.hadoop.service.Service service)
addService in interface ServiceParentaddService in class org.apache.hadoop.service.CompositeServiceservice - the Service to be added.
Important: do not add a service to a parent during your own serviceInit/start,
in Hadoop 2.2; you will trigger a ConcurrentModificationException.public void stateChanged(org.apache.hadoop.service.Service child)
stateChanged in interface org.apache.hadoop.service.ServiceStateChangeListenerchild - the service that has changed.Copyright © 2014–2015 The Apache Software Foundation. All rights reserved.