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, setObserveNewJvm
protected void setDAOFactoryAction()
setDAOFactoryAction
in class Backend
public boolean activate()
Backend
public boolean deactivate()
Backend
Backend
. 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 Backend
public boolean isActive()
public String getConfigurationValue(String key)
getConfigurationValue
in class Backend
key
- The constant key that corresponds to the desired configuration valueprotected Collection<Category> getCategories()
getCategories
in class Backend
public boolean attachToNewProcessByDefault()
Backend
Backend
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 Backend
public void addJvmStatusListener(JvmStatusListener listener)
JvmStatusNotifier
addJvmStatusListener
in interface JvmStatusNotifier
listener
- the receiver of future JvmStatusListener.jvmStarted()
and JvmStatusListener.jvmStopped()
callspublic void removeJvmStatusListener(JvmStatusListener listener)
JvmStatusNotifier
removeJvmStatusListener
in interface JvmStatusNotifier
listener
- the JvmStatusListener
to be unregistered.public void jvmStarted(int vmId)
jvmStarted
in interface JvmStatusListener
public void jvmStopped(int vmId)
jvmStopped
in interface JvmStatusListener
Copyright © 2013. All Rights Reserved.