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, setObserveNewJvm
protected void setConfigurationValue(String name, String value)
Backend
name
, 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 Backend
public String getDescription()
getDescription
in class Backend
public String getVendor()
public String getVersion()
getVersion
in class Backend
Backend
public Map<String,String> getConfigurationMap()
Backend
getConfigurationMap
in class Backend
public String getConfigurationValue(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 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
protected void setDAOFactoryAction()
setDAOFactoryAction
in class Backend
Copyright © 2012. All Rights Reserved.