org.terracotta.management.registry
Class DefaultCallQuery<T>
java.lang.Object
org.terracotta.management.registry.DefaultCallQuery<T>
- All Implemented Interfaces:
- CallQuery<T>, Query<ContextualReturn<T>>
public class DefaultCallQuery<T>
- extends Object
- implements CallQuery<T>
- Author:
- Mathieu Carbou
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultCallQuery
public DefaultCallQuery(CapabilityManagementSupport capabilityManagement,
String capabilityName,
String methodName,
Class<T> returnType,
Parameter[] parameters,
Collection<Context> contexts)
getReturnType
public Class<T> getReturnType()
- Specified by:
getReturnType in interface CallQuery<T>
getCapabilityName
public String getCapabilityName()
- Specified by:
getCapabilityName in interface Query<ContextualReturn<T>>
- Returns:
- The capability name used for this query
getContexts
public Collection<Context> getContexts()
- Specified by:
getContexts in interface Query<ContextualReturn<T>>
- Returns:
- The list of context targeted by this query
getMethodName
public String getMethodName()
- Specified by:
getMethodName in interface CallQuery<T>
getParameters
public Parameter[] getParameters()
- Specified by:
getParameters in interface CallQuery<T>
execute
public ResultSet<ContextualReturn<T>> execute()
- Specified by:
execute in interface Query<ContextualReturn<T>>
- Returns:
- The list of results of this query against all contexts, in the same order and same position of the
Query.getContexts() list
Copyright © 2016. All Rights Reserved.