|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.env.service.AbstractResinSubSystem
com.caucho.env.shutdown.ShutdownSystem
public class ShutdownSystem
The ShutdownSystem manages the Resin shutdown and includes a timeout thread. If the timeout takes longer than shutdown-wait-max, the ShutdownSystem will force a JVM exit.
| Field Summary | |
|---|---|
static int |
START_PRIORITY
|
| 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 |
| Method Summary | |
|---|---|
static ShutdownSystem |
createAndAddService()
|
static ShutdownSystem |
createAndAddService(boolean isEmbedded)
|
void |
destroy()
Destroys the service. |
void |
dumpThreads()
Dump threads for debugging |
static ShutdownSystem |
getCurrent()
|
ExitCode |
getExitCode()
|
LifecycleState |
getLifecycleState()
Returns the current lifecycle state. |
long |
getShutdownWaitMax()
|
int |
getStartPriority()
Returns the start priority of the service, used to determine which services to start first. |
boolean |
isShutdownOnOutOfMemory()
|
void |
setShutdownOnOutOfMemory(boolean isShutdown)
|
void |
setShutdownWaitTime(long shutdownTime)
|
void |
shutdown(ExitCode exitCode,
java.lang.String msg)
Start the server shutdown |
static void |
shutdownActive(ExitCode exitCode,
java.lang.String msg)
Start the server shutdown |
static void |
shutdownOutOfMemory(java.lang.String msg)
Start the server shutdown |
void |
start()
Starts the server. |
static void |
startFailsafe(java.lang.String msg)
|
void |
startFailSafeShutdown(java.lang.String msg)
|
void |
startFailSafeShutdown(java.lang.String msg,
long period)
|
void |
stop()
Starts the server. |
java.lang.String |
toString()
|
| Methods inherited from class com.caucho.env.service.AbstractResinSubSystem |
|---|
getStopPriority, preCreate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int START_PRIORITY
| Method Detail |
|---|
public static ShutdownSystem createAndAddService()
public static ShutdownSystem createAndAddService(boolean isEmbedded)
public static ShutdownSystem getCurrent()
public long getShutdownWaitMax()
public void setShutdownWaitTime(long shutdownTime)
public void setShutdownOnOutOfMemory(boolean isShutdown)
public boolean isShutdownOnOutOfMemory()
public LifecycleState getLifecycleState()
public ExitCode getExitCode()
public static void shutdownOutOfMemory(java.lang.String msg)
public static void startFailsafe(java.lang.String msg)
public static void shutdownActive(ExitCode exitCode,
java.lang.String msg)
public void shutdown(ExitCode exitCode,
java.lang.String msg)
public void startFailSafeShutdown(java.lang.String msg)
public void startFailSafeShutdown(java.lang.String msg,
long period)
public void dumpThreads()
public int getStartPriority()
ResinSubSystem
getStartPriority in interface ResinSubSystemgetStartPriority in class AbstractResinSubSystempublic void start()
start in interface ResinSubSystemstart in class AbstractResinSubSystempublic void stop()
stop in interface ResinSubSystemstop in class AbstractResinSubSystempublic void destroy()
ResinSubSystem
destroy in interface ResinSubSystemdestroy in class AbstractResinSubSystempublic java.lang.String toString()
toString in class AbstractResinSubSystem
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||