|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ManagementStrategy
A ManagementStrategy provides an abstraction for a high level, common set of management functions:
ManagementStrategy implementations decide how such functions are exposed (e.g. via JMX or another technology). Applications should allow for injection of a strategy implementation.
| Method Summary | ||
|---|---|---|
Statistic |
createStatistic(java.lang.String name,
java.lang.Object owner,
Statistic.UpdateMode updateMode)
Creates a statistic; a representation of raw statistical data. |
|
|
getManagedObjectName(java.lang.Object managableObject,
java.lang.String customName,
java.lang.Class<T> nameType)
Construct an object name, where either the object to be managed and/or a custom name component are provided |
|
boolean |
isManaged(java.lang.Object managableObject,
java.lang.Object name)
Determines if an object or name is managed. |
|
void |
manageNamedObject(java.lang.Object managedObject,
java.lang.Object preferedName)
Adds a managed object allowing the ManagementStrategy implementation to record or expose the object as it sees fit. |
|
void |
manageObject(java.lang.Object managedObject)
Adds a managed object allowing the ManagementStrategy implementation to record or expose the object as it sees fit. |
|
void |
notify(java.util.EventObject event)
Management events provide a single model for capturing information about execution points in the application code. |
|
void |
unmanageNamedObject(java.lang.Object name)
Removes a managed object by name. |
|
void |
unmanageObject(java.lang.Object managedObject)
Removes the managed object. |
|
| Method Detail |
|---|
void manageObject(java.lang.Object managedObject)
throws java.lang.Exception
managedObject - the managed object
java.lang.Exception - can be thrown if the object could not be added
void manageNamedObject(java.lang.Object managedObject,
java.lang.Object preferedName)
throws java.lang.Exception
managedObject - the managed objectpreferedName - representing the preferred name, maybe a String, or a JMX ObjectName
java.lang.Exception - can be thrown if the object could not be added
<T> T getManagedObjectName(java.lang.Object managableObject,
java.lang.String customName,
java.lang.Class<T> nameType)
throws java.lang.Exception
managableObject - the object to be managedcustomName - a custom name componentnameType - the name type required
java.lang.Exception - can be thrown if the object name could not be created
void unmanageObject(java.lang.Object managedObject)
throws java.lang.Exception
managedObject - the managed object
java.lang.Exception - can be thrown if the object could not be removed
void unmanageNamedObject(java.lang.Object name)
throws java.lang.Exception
name - an object name previously created by this strategy.
java.lang.Exception - can be thrown if the object could not be removed
boolean isManaged(java.lang.Object managableObject,
java.lang.Object name)
managableObject - the object to considername - the name to consider
void notify(java.util.EventObject event)
throws java.lang.Exception
event - the event
java.lang.Exception - can be thrown if the notification failed
Statistic createStatistic(java.lang.String name,
java.lang.Object owner,
Statistic.UpdateMode updateMode)
name - The unique name assigned to the statistic usage.owner - The object whose identity is to be associated with the metric.updateMode - The update mode to be assigned to the returned statistic.
Statistic.UpdateMode
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||