org.ehcache.management
Interface CapabilityManagement


public interface CapabilityManagement


Method Summary
<T> CallQuery.Builder<T>
call(java.lang.String methodName, java.lang.Class<T> returnType, org.terracotta.management.call.Parameter... parameters)
          Call an action of a managed object's capability.
 CallQuery.Builder<java.lang.Void> call(java.lang.String methodName, org.terracotta.management.call.Parameter... parameters)
          Call an action of a managed object's capability.
 StatisticQuery.Builder queryStatistic(java.lang.String statisticName)
          Create a query builder to collect statistics
 StatisticQuery.Builder queryStatistics(java.util.Collection<java.lang.String> statisticNames)
          Create a query builder to collect statistics
 

Method Detail

queryStatistic

StatisticQuery.Builder queryStatistic(java.lang.String statisticName)
Create a query builder to collect statistics

Parameters:
statisticName - The statistic name to collec
Returns:
a builder for the query

queryStatistics

StatisticQuery.Builder queryStatistics(java.util.Collection<java.lang.String> statisticNames)
Create a query builder to collect statistics

Parameters:
statisticNames - The statistic names to collect
Returns:
a builder for the query

call

<T> CallQuery.Builder<T> call(java.lang.String methodName,
                              java.lang.Class<T> returnType,
                              org.terracotta.management.call.Parameter... parameters)
Call an action of a managed object's capability.

Parameters:
methodName - the action's method name.
parameters - the action method's parameters (objects and class names)
returnType - The expected return type
Returns:
the action method's return value.

call

CallQuery.Builder<java.lang.Void> call(java.lang.String methodName,
                                       org.terracotta.management.call.Parameter... parameters)
Call an action of a managed object's capability. We do not care about the return type.

Parameters:
methodName - the action's method name.
parameters - the action method's parameters (objects and class names)
Returns:
the action method's return value.