org.terracotta.management.registry.action
Class AbstractActionManagementProvider<T>

java.lang.Object
  extended by org.terracotta.management.registry.AbstractManagementProvider<T>
      extended by 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

Field Summary
 
Fields inherited from class org.terracotta.management.registry.AbstractManagementProvider
managedObjects
 
Constructor Summary
AbstractActionManagementProvider(Class<? extends T> managedType)
           
 
Method Summary
<V> V
callAction(Context context, String methodName, Class<V> returnType, Parameter... parameters)
          Call an action, if the provider supports this.
 Capability getCapability()
           
 Collection<Descriptor> getDescriptors()
          Get the set of capability descriptors the current provider provides.
 
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
 

Constructor Detail

AbstractActionManagementProvider

public AbstractActionManagementProvider(Class<? extends T> managedType)
Method Detail

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 type
parameters - the action method's parameters (objects and class names)
Returns:
the action's return value.


Copyright © 2016. All Rights Reserved.