org.apache.hadoop.yarn.service
Class AbstractService

java.lang.Object
  extended by org.apache.hadoop.yarn.service.AbstractService
All Implemented Interfaces:
Service
Direct Known Subclasses:
AbstractLivelinessMonitor, AggregatedLogDeletionService, AsyncDispatcher, CompositeService

public abstract class AbstractService
extends Object
implements Service


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.hadoop.yarn.service.Service
Service.STATE
 
Constructor Summary
AbstractService(String name)
           
 
Method Summary
 org.apache.hadoop.conf.Configuration getConfig()
           
 String getName()
           
 Service.STATE getServiceState()
           
 long getStartTime()
           
 void init(org.apache.hadoop.conf.Configuration conf)
           
 void register(ServiceStateChangeListener l)
           
 void start()
           
 void stop()
           
 void unregister(ServiceStateChangeListener l)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractService

public AbstractService(String name)
Method Detail

getServiceState

public Service.STATE getServiceState()
Specified by:
getServiceState in interface Service

init

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

start

public void start()
Specified by:
start in interface Service

stop

public void stop()
Specified by:
stop in interface Service

register

public void register(ServiceStateChangeListener l)
Specified by:
register in interface Service

unregister

public void unregister(ServiceStateChangeListener l)
Specified by:
unregister in interface Service

getName

public String getName()
Specified by:
getName in interface Service

getConfig

public org.apache.hadoop.conf.Configuration getConfig()
Specified by:
getConfig in interface Service

getStartTime

public long getStartTime()
Specified by:
getStartTime in interface Service


Copyright © 2012 Apache Software Foundation. All Rights Reserved.