|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.tanukisoftware.wrapper.jmx.WrapperManager
public class WrapperManager
| Constructor Summary | |
|---|---|
WrapperManager()
|
|
| Method Summary | |
|---|---|
String |
getBuildTime()
Obtain the build time of Wrapper. |
boolean |
getHasShutdownHookBeenTriggered()
Returns true if the ShutdownHook for the JVM has already been triggered. |
int |
getJavaPID()
Returns the PID of the Java process. |
int |
getJVMId()
Returns the Id of the current JVM. |
String |
getVersion()
Obtain the current version of Wrapper. |
int |
getWrapperPID()
Returns the PID of the Wrapper process. |
boolean |
isControlledByNativeWrapper()
Returns true if the JVM was launched by the Wrapper application. |
boolean |
isDebugEnabled()
Returns true if the wrapper.debug property, or any of the logging channels are set to DEBUG in the wrapper configuration file. |
boolean |
isLaunchedAsService()
Returns true if the Wrapper was launched as an NT service on Windows or as a daemon process on UNIX platforms. |
boolean |
isProfessionalEdition()
Returns true if the current Wrapper edition has support for Professional Edition features. |
boolean |
isStandardEdition()
Returns true if the current Wrapper edition has support for Standard Edition features. |
void |
requestThreadDump()
Requests that the current JVM process request a thread dump. |
void |
restart()
Tells the native wrapper that the JVM wants to restart, then informs all listeners that the JVM is about to shutdown before killing the JVM. |
void |
setConsoleTitle(String title)
Sets the title of the console in which the Wrapper is running. |
void |
stop(int exitCode)
Tells the native wrapper that the JVM wants to shut down, then informs all listeners that the JVM is about to shutdown before killing the JVM. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WrapperManager()
| Method Detail |
|---|
public String getVersion()
getVersion in interface WrapperManagerMBeanpublic String getBuildTime()
getBuildTime in interface WrapperManagerMBeanpublic int getJVMId()
getJVMId in interface WrapperManagerMBeanpublic boolean isProfessionalEdition()
isProfessionalEdition in interface WrapperManagerMBeanpublic boolean isStandardEdition()
isStandardEdition in interface WrapperManagerMBeanpublic void setConsoleTitle(String title)
As an alternative, it is also possible to set the console title from within the wrapper.conf file using the wrapper.console.title property.
setConsoleTitle in interface WrapperManagerMBeantitle - The new title. The specified string will be encoded
to a byte array using the default encoding for the
current platform.public int getWrapperPID()
getWrapperPID in interface WrapperManagerMBeanpublic int getJavaPID()
getJavaPID in interface WrapperManagerMBeanpublic void requestThreadDump()
requestThreadDump in interface WrapperManagerMBeanpublic boolean isControlledByNativeWrapper()
isControlledByNativeWrapper in interface WrapperManagerMBeanpublic boolean isLaunchedAsService()
isLaunchedAsService in interface WrapperManagerMBeanpublic boolean isDebugEnabled()
isDebugEnabled in interface WrapperManagerMBeanpublic void restart()
The restart is actually performed in a background thread allowing JMX a chance to respond to the client.
restart in interface WrapperManagerMBeanpublic void stop(int exitCode)
The stop is actually performed in a background thread allowing JMX a chance to respond to the client.
stop in interface WrapperManagerMBeanexitCode - The exit code that the Wrapper will return when it exits.public boolean getHasShutdownHookBeenTriggered()
getHasShutdownHookBeenTriggered in interface WrapperManagerMBean
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||