org.locomotive.loco.handler
Class HandlerRoutingTable.HandlerEntry

java.lang.Object
  |
  +--org.locomotive.server.ServiceRoutingTable.ServiceEntry
        |
        +--org.locomotive.loco.handler.HandlerRoutingTable.HandlerEntry
Enclosing class:
HandlerRoutingTable

protected class HandlerRoutingTable.HandlerEntry
extends ServiceRoutingTable.ServiceEntry


Fields inherited from class org.locomotive.server.ServiceRoutingTable.ServiceEntry
availability, cached, classname, config_path, last_availability_event_timestamp, pattern, props, service, theclass, unavailability_reason, unavailable_seconds
 
Method Summary
protected  void initialize()
          This needs to be overridden to instantiate and create the service.
 boolean shutdown(Log server_log)
          instantiates the handler for this hrte and calls its shutdown method
 
Methods inherited from class org.locomotive.server.ServiceRoutingTable.ServiceEntry
getAvailability, getLastAvailabilityEventTimestamp, getService, getUnavailabilityReason, getUnavailableSeconds, load, setAvailability, setLastAvailabilityEventTimestamp, setUnavailabilityReason, setUnavailableSeconds
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

initialize

protected void initialize()
                   throws InitializationException
Description copied from class: ServiceRoutingTable.ServiceEntry
This needs to be overridden to instantiate and create the service. You should catch all exceptions and rethrow them as InitializationExceptions. You Should never need to call this- load(), above, will call it, after the properties file has been loaded.
Overrides:
initialize in class ServiceRoutingTable.ServiceEntry

shutdown

public boolean shutdown(Log server_log)
instantiates the handler for this hrte and calls its shutdown method
Overrides:
shutdown in class ServiceRoutingTable.ServiceEntry