org.terracotta.management.registry
Interface CapabilityManagement

All Known Implementing Classes:
DefaultCapabilityManagement

public interface CapabilityManagement

Author:
Mathieu Carbou

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

Method Detail

queryStatistic

StatisticQuery.Builder queryStatistic(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(Collection<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(String methodName,
                              Class<T> returnType,
                              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<Void> call(String methodName,
                             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.


Copyright © 2016. All Rights Reserved.