org.terracotta.management.registry
Class DefaultCallQuery<T>

java.lang.Object
  extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.terracotta.management.registry.CallQuery
CallQuery.Builder<T>
 
Constructor Summary
DefaultCallQuery(CapabilityManagementSupport capabilityManagement, String capabilityName, String methodName, Class<T> returnType, Parameter[] parameters, Collection<Context> contexts)
           
 
Method Summary
 ResultSet<ContextualReturn<T>> execute()
           
 String getCapabilityName()
           
 Collection<Context> getContexts()
           
 String getMethodName()
           
 Parameter[] getParameters()
           
 Class<T> getReturnType()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultCallQuery

public DefaultCallQuery(CapabilityManagementSupport capabilityManagement,
                        String capabilityName,
                        String methodName,
                        Class<T> returnType,
                        Parameter[] parameters,
                        Collection<Context> contexts)
Method Detail

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.