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 Collection<Category> |
getCategories() |
Map<String,String> |
getConfigurationMap()
Get a map containing the current settings of this backend.
|
String |
getConfigurationValue(String key) |
String |
getDescription() |
String |
getName() |
String |
getVendor() |
String |
getVersion() |
boolean |
isActive() |
protected void |
setConfigurationValue(String name,
String value)
Set the named configuration to the given value.
|
protected void |
setDAOFactoryAction() |
getID, getObserveNewJvm, setConfigurationValueImpl, setDAOFactory, setInitialConfiguration, setObserveNewJvmprotected void setConfigurationValue(String name, String value)
Backendname, version and
description are parsed here.
Backend.setConfigurationValueImpl(String, String)
method if they are not interested in parsing and setting those
properties directly.setConfigurationValue in class Backendpublic String getDescription()
getDescription in class Backendpublic String getVendor()
public String getVersion()
getVersion in class BackendBackendpublic Map<String,String> getConfigurationMap()
BackendgetConfigurationMap in class Backendpublic String getConfigurationValue(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 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 Backendprotected void setDAOFactoryAction()
setDAOFactoryAction in class BackendCopyright © 2012. All Rights Reserved.