org.tanukisoftware.wrapper.jmx
public interface WrapperManagerMBean
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. |
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.
|
Returns: The time that the Wrapper was built.
Returns: True if the ShutdownHook for the JVM has already been triggered.
Returns: The PID of the Java process.
Returns: The Id of the current JVM.
Returns: The version of the Wrapper.
Returns: The PID of the Wrpper process.
Returns: True if the current JVM was launched by the Wrapper.
Returns: True if the Wrapper is logging any Debug level output.
Returns: True if the Wrapper is running as an NT service or daemon process.
The restart is actually performed in a background thread allowing JMX a chance to respond to the client.
As an alternative, it is also possible to set the console title from within the wrapper.conf file using the wrapper.console.title property.
Parameters: title The new title. The specified string will be encoded to a byte array using the default encoding for the current platform.
The stop is actually performed in a background thread allowing JMX a chance to respond to the client.
Parameters: exitCode The exit code that the Wrapper will return when it exits.