public class VMSystem extends GenericService
Contains an admin interface for doing VM System-level operations: GC, finalization, listing Threads, etc.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
SERVICE_INFO_KEY
DEFAULT_LOG_TRACE_STATUS
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS
Constructor and Description |
---|
VMSystem()
CONSTRUCTS A NEW VMSYSTEM
|
Modifier and Type | Method and Description |
---|---|
protected javax.servlet.Servlet |
createAdminServlet()
Creates and returns a new Servlet that will administer this
service.
|
void |
dumpThreads(java.io.PrintWriter pOut) |
void |
gc()
Calls Runtime.gc().
|
java.lang.String |
generateThreadDump()
Generate a thread dump.
|
long |
getFreeMemory()
Returns property FreeMemory
|
int |
getMaxFrames()
Returns property maxFrames.
|
long |
getTotalMemory()
Returns property TotalMemory
|
void |
runFinalization()
Calls Runtime.runFinalization().
|
void |
setMaxFrames(int pMaxFrames)
Sets property maxFrames.
|
void |
stopVM()
Calls exit(0) to stop the VM.
|
java.lang.String |
toString(java.lang.management.ThreadInfo pInfo)
Returns a string representation of this thread info.
|
addLogListener, doStartService, doStopService, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService, toString
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
public void setMaxFrames(int pMaxFrames)
public int getMaxFrames()
public long getFreeMemory()
public long getTotalMemory()
public void gc()
public void runFinalization()
public void stopVM()
protected javax.servlet.Servlet createAdminServlet()
createAdminServlet
in class GenericService
public void dumpThreads(java.io.PrintWriter pOut)
public java.lang.String toString(java.lang.management.ThreadInfo pInfo)
public java.lang.String generateThreadDump() throws java.io.IOException
java.io.IOException