List of usage examples for org.apache.hadoop.service ServiceStateChangeListener interface-usage
From source file org.apache.hoya.yarn.appmaster.HoyaAppMaster.java
/** * This is the AM, which directly implements the callbacks from the AM and NM */ public class HoyaAppMaster extends CompoundLaunchedService implements AMRMClientAsync.CallbackHandler, NMClientAsync.CallbackHandler, RunService, HoyaExitCodes, HoyaKeys, HoyaClusterProtocol, ServiceStateChangeListener, RoleKeys, EventCallback, ContainerStartOperation {
From source file org.apache.hoya.yarn.service.CompoundService.java
/**
* An extended composite service which not only makes the
* addService method public, it auto-registers
* itself as a listener for state change events.
*
* When all child services has stopped, this service stops itself.
From source file org.apache.hoya.yarn.service.SequenceService.java
/**
* This resembles the YARN CompositeService, except that it
* starts one service after another: it's init & start operations
* only work with one service
*/
From source file org.apache.slider.server.appmaster.SliderAppMaster.java
/** * This is the AM, which directly implements the callbacks from the AM and NM */ public class SliderAppMaster extends AbstractSliderLaunchedService implements AMRMClientAsync.CallbackHandler, NMClientAsync.CallbackHandler, RunService, SliderExitCodes, SliderKeys, SliderClusterProtocol, ServiceStateChangeListener, RoleKeys, ProviderCompleted {
From source file org.apache.slider.server.services.utility.EndOfServiceWaiter.java
/**
* Wait for a service to stop.
*
* WARNING: the notification may come in as soon as the service enters
* the stopped state: it may take some time for the actual stop operation
* to complete.
From source file org.apache.slider.server.services.workflow.EndOfServiceWaiter.java
/** * Wait for a service to stop */ public class EndOfServiceWaiter implements ServiceStateChangeListener { private final AtomicBoolean finished = new AtomicBoolean(false);
From source file org.apache.slider.server.services.workflow.WorkflowCompositeService.java
/**
* An extended composite service which stops itself if any child service
* fails, or when all its children have successfully stopped without failure.
*
* Lifecycle
* <ol>
From source file org.apache.slider.server.services.workflow.WorkflowSequenceService.java
/**
* This resembles the YARN CompositeService, except that it
* starts one service after another
*
* Workflow
* <ol>