org.terracotta.management.registry.action
Class AbstractActionManagementProvider<T>
java.lang.Object
org.terracotta.management.registry.AbstractManagementProvider<T>
org.terracotta.management.registry.action.AbstractActionManagementProvider<T>
- All Implemented Interfaces:
- ManagementProvider<T>
- Direct Known Subclasses:
- StatisticCollectorProvider
public abstract class AbstractActionManagementProvider<T>
- extends AbstractManagementProvider<T>
- Author:
- Mathieu Carbou
| Methods inherited from class org.terracotta.management.registry.AbstractManagementProvider |
buildCapabilityContext, buildCapabilityName, callAction, close, collectStatistics, dispose, findExposedObject, getCapabilityContext, getCapabilityName, getManagedType, register, supports, unregister, wrap |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractActionManagementProvider
public AbstractActionManagementProvider(Class<? extends T> managedType)
getCapability
public final Capability getCapability()
- Returns:
- The full capability of this management provider
getDescriptors
public final Collection<Descriptor> getDescriptors()
- Description copied from interface:
ManagementProvider
- Get the set of capability descriptors the current provider provides.
- Specified by:
getDescriptors in interface ManagementProvider<T>- Overrides:
getDescriptors in class AbstractManagementProvider<T>
- Returns:
- the set of capability descriptors.
callAction
public final <V> V callAction(Context context,
String methodName,
Class<V> returnType,
Parameter... parameters)
- Description copied from interface:
ManagementProvider
- Call an action, if the provider supports this.
- Specified by:
callAction in interface ManagementProvider<T>- Overrides:
callAction in class AbstractManagementProvider<T>
- Type Parameters:
V - the expected response type- Parameters:
context - the context.methodName - the method name.returnType - The expected return typeparameters - the action method's parameters (objects and class names)
- Returns:
- the action's return value.
Copyright © 2016. All Rights Reserved.