public class AbstractResinSubSystem extends java.lang.Object implements ResinSubSystem
START_PRIORITY_CACHE_SERVICE, START_PRIORITY_CLASSLOADER, START_PRIORITY_CLUSTER_SERVICE, START_PRIORITY_DATABASE_SYSTEM, START_PRIORITY_DEFAULT, START_PRIORITY_ENV_SYSTEM, START_PRIORITY_NETWORK_CLUSTER, STOP_PRIORITY_CLASSLOADER
Constructor and Description |
---|
AbstractResinSubSystem() |
Modifier and Type | Method and Description |
---|---|
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.
|
boolean |
isActive() |
protected static <E extends AbstractResinSubSystem> |
preCreate(java.lang.Class<E> serviceClass) |
void |
start()
Starts the service.
|
void |
stop()
Stops the service.
|
java.lang.String |
toString() |
public int getStartPriority()
ResinSubSystem
getStartPriority
in interface ResinSubSystem
public boolean isActive()
public void start() throws java.lang.Exception
ResinSubSystem
start
in interface ResinSubSystem
java.lang.Exception
public int getStopPriority()
ResinSubSystem
getStopPriority
in interface ResinSubSystem
public void stop() throws java.lang.Exception
ResinSubSystem
stop
in interface ResinSubSystem
java.lang.Exception
public void destroy()
ResinSubSystem
destroy
in interface ResinSubSystem
public java.lang.String toString()
toString
in class java.lang.Object
protected static <E extends AbstractResinSubSystem> ResinSystem preCreate(java.lang.Class<E> serviceClass)