com.caucho.env.service
Class AbstractResinSubSystem

java.lang.Object
  extended by com.caucho.env.service.AbstractResinSubSystem
All Implemented Interfaces:
ResinSubSystem
Direct Known Subclasses:
BamSystem, CdiSystem, DeployControllerService, DistCacheSystem, ElasticCloudSystem, GitSystem, GlobalCacheSystem, HealthService, HealthStatusService, HeartbeatService, HmtpService, LicenseSystem, ListenService, LoadBalanceService, LocalRepositoryService, LockService, LogSystem, MessageSystem, MeterService, NetworkClusterSystem, NetworkListenSystem, NotifyService, RepositorySystem, RootDirectorySystem, SecurityService, ServletSystem, ShutdownSystem, SocketPollService, StatSystem, StoreService, TempFileService, TopologyService, VoteService, WarningService

public class AbstractResinSubSystem
extends java.lang.Object
implements ResinSubSystem

Interface for a service registered with the Resin Server.


Field Summary
 
Fields inherited from interface com.caucho.env.service.ResinSubSystem
START_PRIORITY_CACHE_SERVICE, START_PRIORITY_CLASSLOADER, START_PRIORITY_CLUSTER_SERVICE, START_PRIORITY_DEFAULT, START_PRIORITY_ENV_SYSTEM, START_PRIORITY_NETWORK_CLUSTER
 
Constructor Summary
AbstractResinSubSystem()
           
 
Method Summary
 void destroy()
          Destroys the service.
 int getStartPriority()
          Returns the start priority of the service, used to determine which services to start first.
 int getStopPriority()
          Returns the stop priority of the service, used to determine which services to stop first.
protected static
<E extends AbstractResinSubSystem>
ResinSystem
preCreate(java.lang.Class<E> serviceClass)
           
 void start()
          Starts the service.
 void stop()
          Stops the service.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractResinSubSystem

public AbstractResinSubSystem()
Method Detail

getStartPriority

public int getStartPriority()
Description copied from interface: ResinSubSystem
Returns the start priority of the service, used to determine which services to start first.

Specified by:
getStartPriority in interface ResinSubSystem

start

public void start()
           throws java.lang.Exception
Description copied from interface: ResinSubSystem
Starts the service.

Specified by:
start in interface ResinSubSystem
Throws:
java.lang.Exception

getStopPriority

public int getStopPriority()
Description copied from interface: ResinSubSystem
Returns the stop priority of the service, used to determine which services to stop first.

Specified by:
getStopPriority in interface ResinSubSystem

stop

public void stop()
          throws java.lang.Exception
Description copied from interface: ResinSubSystem
Stops the service.

Specified by:
stop in interface ResinSubSystem
Throws:
java.lang.Exception

destroy

public void destroy()
Description copied from interface: ResinSubSystem
Destroys the service.

Specified by:
destroy in interface ResinSubSystem

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

preCreate

protected static <E extends AbstractResinSubSystem> ResinSystem preCreate(java.lang.Class<E> serviceClass)