|
IBM WebSphereTM eXtreme Scale, Release 8.6 API Specification |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AgentManager
The AgentManager is the primary interface for submitting MapGridAgent
or ReduceGridAgent
instances to the ObjectGrid. Every ObjectMap has an AgentManager and is retrieved using
the ObjectMap.getAgentManager()
method.
When security is enabled, these methods require permission: com.ibm.websphere.objectgrid.security.AgentPermission.
The name of the AgentPermission is the full map name, and the actions are the agent implementation
classes or packages. Refer to AgentPermission
for more
permission details.
Agents run in a transaction separate from the client transaction. Client transactions that are active when invoking the AgentManager methods are rolled-back when any exception occurs.
The MapGridAgent instance may include additional state, such as a query string or parameters, to eliminate some entries.
Method Summary | |
---|---|
Map |
callMapAgent(MapGridAgent agent)
Routes the MapGridAgent instance and invokes the MapGridAgent.processAllEntries(com.ibm.websphere.objectgrid.Session, ObjectMap)
method on all ObjectGrid server partitions and returns each result key and value in a map. |
Map |
callMapAgent(MapGridAgent agent,
Collection keys)
Routes the MapGridAgent instance and invokes the MapGridAgent.process(com.ibm.websphere.objectgrid.Session, ObjectMap, Object)
method on each ObjectGrid server partition associated with the input
keys and returns each result key and value in a Map. |
Object |
callReduceAgent(ReduceGridAgent agent)
This performs performs a multi-level reduce operation on data in a map. |
Object |
callReduceAgent(ReduceGridAgent agent,
Collection keys)
This method performs a multi-level reduce operation on data in a map. |
Method Detail |
---|
Map callMapAgent(MapGridAgent agent, Collection keys)
MapGridAgent.process(com.ibm.websphere.objectgrid.Session, ObjectMap, Object)
method on each ObjectGrid server partition associated with the input
keys and returns each result key and value in a Map.
Required Permission: AgentPermission
agent
- The MapGridAgent instance to invoke on select partitions.keys
- The collection of keys. Each key determines which ObjectGrid server partition to route and invoke the agent.
EntryErrorValue
if there was an error generating a result.Map callMapAgent(MapGridAgent agent)
MapGridAgent.processAllEntries(com.ibm.websphere.objectgrid.Session, ObjectMap)
method on all ObjectGrid server partitions and returns each result key and value in a map.
Required Permission: AgentPermission
agent
- The MapGridAgent instance to invoke on each partition.
EntryErrorValue
if there was an error generating a result.Object callReduceAgent(ReduceGridAgent agent, Collection keys)
ReduceGridAgent.reduce(com.ibm.websphere.objectgrid.Session, ObjectMap, Collection)
method
is invoked on each ObjectGrid server partition associated with the input keys. The data may be further reduced
using the ReduceGridAgent.reduceResults(Collection)
method.
Required Permission: AgentPermission
agent
- The ReduceGridAgent instance to invoke on select partitions.keys
- The collection of keys holding data to reduce.
EntryErrorValue
Object callReduceAgent(ReduceGridAgent agent)
ReduceGridAgent.reduce(com.ibm.websphere.objectgrid.Session, ObjectMap)
method
is invoked on all ObjectGrid server partitions. The data may be further reduced
using the ReduceGridAgent.reduceResults(Collection)
method. The ReduceGridAgent instance may include additional state, such as a query string or parameters, to eliminate some entries.
Required Permission: AgentPermission
agent
- The ReduceGridAgent instance to invoke.
EntryErrorValue
|
IBM WebSphereTM eXtreme Scale, Release 8.6 API Specification |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |