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()
ResinSubSystemgetStartPriority in interface ResinSubSystempublic boolean isActive()
public void start()
throws java.lang.Exception
ResinSubSystemstart in interface ResinSubSystemjava.lang.Exceptionpublic int getStopPriority()
ResinSubSystemgetStopPriority in interface ResinSubSystempublic void stop()
throws java.lang.Exception
ResinSubSystemstop in interface ResinSubSystemjava.lang.Exceptionpublic void destroy()
ResinSubSystemdestroy in interface ResinSubSystempublic java.lang.String toString()
toString in class java.lang.Objectprotected static <E extends AbstractResinSubSystem> ResinSystem preCreate(java.lang.Class<E> serviceClass)