public class SystemBackend extends Backend implements JvmStatusNotifier, JvmStatusListener
| Constructor and Description |
|---|
SystemBackend() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
activate()
Activate the
Backend. |
void |
addJvmStatusListener(JvmStatusListener listener)
Request to be informed when JVM processes are started or stopped.
|
boolean |
attachToNewProcessByDefault()
A
Backend may be configured to automatically begin collecting from new Java
processes. |
boolean |
deactivate()
Deactivate the
Backend. |
protected Collection<Category> |
getCategories() |
String |
getConfigurationValue(String key) |
boolean |
isActive() |
void |
jvmStarted(int vmId) |
void |
jvmStopped(int vmId) |
void |
removeJvmStatusListener(JvmStatusListener listener)
Request to no longer be informed when JVM processes are started or stopped.
|
protected void |
setDAOFactoryAction() |
getConfigurationMap, getDescription, getID, getName, getObserveNewJvm, getVendor, getVersion, setConfigurationValue, setConfigurationValueImpl, setDAOFactory, setInitialConfiguration, setObserveNewJvmprotected void setDAOFactoryAction()
setDAOFactoryAction in class Backendpublic boolean activate()
Backendpublic boolean deactivate()
BackendBackend. The backend should release any
resources that were obtained as a direct result of a call to
Backend.activate(). If the Backend is not active, this
method should have no effectdeactivate in class Backendpublic boolean isActive()
public String getConfigurationValue(String key)
getConfigurationValue in class Backendkey - The constant key that corresponds to the desired configuration valueprotected Collection<Category> getCategories()
getCategories in class Backendpublic boolean attachToNewProcessByDefault()
BackendBackend may be configured to automatically begin collecting from new Java
processes. This method determines whether this will be the case when the backend
is initially started.attachToNewProcessByDefault in class Backendpublic void addJvmStatusListener(JvmStatusListener listener)
JvmStatusNotifieraddJvmStatusListener in interface JvmStatusNotifierlistener - the receiver of future JvmStatusListener.jvmStarted()
and JvmStatusListener.jvmStopped() callspublic void removeJvmStatusListener(JvmStatusListener listener)
JvmStatusNotifierremoveJvmStatusListener in interface JvmStatusNotifierlistener - the JvmStatusListener to be unregistered.public void jvmStarted(int vmId)
jvmStarted in interface JvmStatusListenerpublic void jvmStopped(int vmId)
jvmStopped in interface JvmStatusListenerCopyright © 2012. All Rights Reserved.