org.apache.hive.service
Class FilterService

java.lang.Object
  extended by org.apache.hive.service.FilterService
All Implemented Interfaces:
Service

public class FilterService
extends Object
implements Service

FilterService.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.hive.service.Service
Service.STATE
 
Constructor Summary
FilterService(Service service)
           
 
Method Summary
 HiveConf getHiveConf()
          Get the configuration of this service.
 String getName()
          Get the name of this service.
 Service.STATE getServiceState()
          Get the current service state
 long getStartTime()
          Get the service start time
 void init(HiveConf config)
          Initialize the service.
 void register(ServiceStateChangeListener listener)
          Register an instance of the service state change events.
 void start()
          Start the service.
 void stop()
          Stop the service.
 void unregister(ServiceStateChangeListener listener)
          Unregister a previously instance of the service state change events.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilterService

public FilterService(Service service)
Method Detail

init

public void init(HiveConf config)
Description copied from interface: Service
Initialize the service. The transition must be from Service.STATE.NOTINITED to Service.STATE.INITED unless the operation failed and an exception was raised.

Specified by:
init in interface Service

start

public void start()
Description copied from interface: Service
Start the service. The transition should be from Service.STATE.INITED to Service.STATE.STARTED unless the operation failed and an exception was raised.

Specified by:
start in interface Service

stop

public void stop()
Description copied from interface: Service
Stop the service. This operation must be designed to complete regardless of the initial state of the service, including the state of all its internal fields.

Specified by:
stop in interface Service

register

public void register(ServiceStateChangeListener listener)
Description copied from interface: Service
Register an instance of the service state change events.

Specified by:
register in interface Service
Parameters:
listener - a new listener

unregister

public void unregister(ServiceStateChangeListener listener)
Description copied from interface: Service
Unregister a previously instance of the service state change events.

Specified by:
unregister in interface Service
Parameters:
listener - the listener to unregister.

getName

public String getName()
Description copied from interface: Service
Get the name of this service.

Specified by:
getName in interface Service
Returns:
the service name

getHiveConf

public HiveConf getHiveConf()
Description copied from interface: Service
Get the configuration of this service. This is normally not a clone and may be manipulated, though there are no guarantees as to what the consequences of such actions may be

Specified by:
getHiveConf in interface Service
Returns:
the current configuration, unless a specific implementation chooses otherwise.

getServiceState

public Service.STATE getServiceState()
Description copied from interface: Service
Get the current service state

Specified by:
getServiceState in interface Service
Returns:
the state of the service

getStartTime

public long getStartTime()
Description copied from interface: Service
Get the service start time

Specified by:
getStartTime in interface Service
Returns:
the start time of the service. This will be zero if the service has not yet been started.


Copyright © 2012 The Apache Software Foundation