public class SampleBackend extends Backend
| Constructor and Description |
|---|
SampleBackend() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
activate()
Activate the
Backend. |
boolean |
attachToNewProcessByDefault()
A
Backend may be configured to automatically begin collecting from new Java
processes. |
boolean |
deactivate()
Deactivate the
Backend. |
protected java.util.Iterator<Category> |
getCategoryIterator() |
java.util.Map<java.lang.String,java.lang.String> |
getConfigurationMap()
Get a map containing the current settings of this backend.
|
java.lang.String |
getConfigurationValue(java.lang.String key) |
java.lang.String |
getDescription() |
java.lang.String |
getName() |
java.lang.String |
getVendor() |
java.lang.String |
getVersion() |
boolean |
isActive() |
protected void |
setConfigurationValue(java.lang.String name,
java.lang.String value)
Set the named configuration to the given value.
|
getObserveNewJvm, setInitialConfiguration, setObserveNewJvm, setStorage, store, updateprotected void setConfigurationValue(java.lang.String name,
java.lang.String value)
BackendsetConfigurationValue in class Backendpublic java.lang.String getName()
public java.lang.String getDescription()
getDescription in class Backendpublic java.lang.String getVendor()
public java.lang.String getVersion()
getVersion in class BackendBackendpublic java.util.Map<java.lang.String,java.lang.String> getConfigurationMap()
BackendgetConfigurationMap in class Backendpublic java.lang.String getConfigurationValue(java.lang.String key)
getConfigurationValue in class Backendkey - The constant key that corresponds to the desired configuration valuepublic 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()
protected java.util.Iterator<Category> getCategoryIterator()
getCategoryIterator 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 Backend