|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ManagementProvider<T>
Interface to a provider of management capabilities for certain object class.
| Method Summary | ||
|---|---|---|
|
callAction(Context context,
String methodName,
Class<V> returnType,
Parameter... parameters)
Call an action, if the provider supports this. |
|
void |
callAction(Context context,
String methodName,
Parameter... parameters)
Call an action, if the provider supports this. |
|
void |
close()
Closes the management provider. |
|
Map<String,Statistic<?,?>> |
collectStatistics(Context context,
Collection<String> statisticNames,
long since)
Collect statistics, if the provider supports this. |
|
Capability |
getCapability()
|
|
CapabilityContext |
getCapabilityContext()
Get the context that the provided capabilities need to run. |
|
String |
getCapabilityName()
|
|
Collection<Descriptor> |
getDescriptors()
Get the set of capability descriptors the current provider provides. |
|
Class<? extends T> |
getManagedType()
The class of managed objects. |
|
void |
register(T managedObject)
Register an object for management in the current provider. |
|
boolean |
supports(Context context)
Check wheter this management provider supports the given context |
|
void |
unregister(T managedObject)
Unregister a managed object from the current provider. |
|
| Method Detail |
|---|
Class<? extends T> getManagedType()
void register(T managedObject)
managedObject - the object to manage.void unregister(T managedObject)
managedObject - the managed object.Collection<Descriptor> getDescriptors()
CapabilityContext getCapabilityContext()
Capability getCapability()
String getCapabilityName()
Map<String,Statistic<?,?>> collectStatistics(Context context,
Collection<String> statisticNames,
long since)
context - the context.statisticNames - the statistic names to collect.since - The unix time in ms from where to return the statistics for statistics based on samples.
<V> V callAction(Context context,
String methodName,
Class<V> returnType,
Parameter... parameters)
V - the expected response typecontext - the context.methodName - the method name.parameters - the action method's parameters (objects and class names)returnType - The expected return type
void callAction(Context context,
String methodName,
Parameter... parameters)
context - the context.methodName - the method name.parameters - the action method's parameters (objects and class names)boolean supports(Context context)
context - The management context
void close()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||