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, update
protected void setConfigurationValue(java.lang.String name, java.lang.String value)
Backend
setConfigurationValue
in class Backend
public java.lang.String getName()
public java.lang.String getDescription()
getDescription
in class Backend
public java.lang.String getVendor()
public java.lang.String getVersion()
getVersion
in class Backend
Backend
public java.util.Map<java.lang.String,java.lang.String> getConfigurationMap()
Backend
getConfigurationMap
in class Backend
public java.lang.String getConfigurationValue(java.lang.String key)
getConfigurationValue
in class Backend
key
- The constant key that corresponds to the desired configuration valuepublic 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()
protected java.util.Iterator<Category> getCategoryIterator()
getCategoryIterator
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