org.apache.hadoop.yarn.service
Class CompositeService

java.lang.Object
  extended by org.apache.hadoop.yarn.service.AbstractService
      extended by org.apache.hadoop.yarn.service.CompositeService
All Implemented Interfaces:
Service

public class CompositeService
extends AbstractService

Composition of services.


Nested Class Summary
static class CompositeService.CompositeServiceShutdownHook
          JVM Shutdown hook for CompositeService which will stop the give CompositeService gracefully in case of JVM shutdown.
 
Nested classes/interfaces inherited from interface org.apache.hadoop.yarn.service.Service
Service.STATE
 
Constructor Summary
CompositeService(String name)
           
 
Method Summary
protected  void addService(Service service)
           
 Collection<Service> getServices()
           
 void init(org.apache.hadoop.conf.Configuration conf)
           
protected  boolean removeService(Service service)
           
 void start()
           
 void stop()
           
 
Methods inherited from class org.apache.hadoop.yarn.service.AbstractService
getConfig, getName, getServiceState, getStartTime, register, unregister
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompositeService

public CompositeService(String name)
Method Detail

getServices

public Collection<Service> getServices()

addService

protected void addService(Service service)

removeService

protected boolean removeService(Service service)

init

public void init(org.apache.hadoop.conf.Configuration conf)
Specified by:
init in interface Service
Overrides:
init in class AbstractService

start

public void start()
Specified by:
start in interface Service
Overrides:
start in class AbstractService

stop

public void stop()
Specified by:
stop in interface Service
Overrides:
stop in class AbstractService


Copyright © 2012 Apache Software Foundation. All Rights Reserved.