|
Infinispan Distribution 5.2.6.Final-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.infinispan.commands.remote.BaseRpcCommand
org.infinispan.commands.read.ReduceCommand<KOut,VOut>
public class ReduceCommand<KOut,VOut>
ReduceCommand is a container to migrate Reducer
to a remote Infinispan node where it will
get executed and return the result to an invoking/master node.
Field Summary | |
---|---|
static int |
COMMAND_ID
|
Fields inherited from class org.infinispan.commands.remote.BaseRpcCommand |
---|
cacheName |
Constructor Summary | |
---|---|
ReduceCommand(String cacheName)
|
|
ReduceCommand(String taskId,
Reducer<KOut,VOut> reducer,
String cacheName,
Collection<KOut> inputKeys)
|
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
byte |
getCommandId()
Used by marshallers to convert this command into an id for streaming. |
Set<KOut> |
getKeys()
|
Object[] |
getParameters()
Used by marshallers to stream this command across a network |
Reducer<KOut,VOut> |
getReducer()
|
String |
getTaskId()
|
UUID |
getUUID()
Returns UUID of a command |
int |
hashCode()
|
void |
init(MapReduceManager mrManager)
|
boolean |
isEmitCompositeIntermediateKeys()
|
boolean |
isReturnValueExpected()
If true, a return value will be provided when performed remotely. |
Object |
perform(InvocationContext context)
Performs invocation of reduce phase on assigned Infinispan node |
void |
setEmitCompositeIntermediateKeys(boolean emitCompositeIntermediateKeys)
|
void |
setParameters(int commandId,
Object[] args)
Used by the CommandsFactory to create a command from raw data read off a stream. |
String |
toString()
|
Methods inherited from class org.infinispan.commands.remote.BaseRpcCommand |
---|
getCacheName, getOrigin, setOrigin |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.infinispan.commands.remote.CacheRpcCommand |
---|
getCacheName, getOrigin, setOrigin |
Field Detail |
---|
public static final int COMMAND_ID
Constructor Detail |
---|
public ReduceCommand(String cacheName)
public ReduceCommand(String taskId, Reducer<KOut,VOut> reducer, String cacheName, Collection<KOut> inputKeys)
Method Detail |
---|
public void init(MapReduceManager mrManager)
public Object perform(InvocationContext context) throws Throwable
perform
in interface ReplicableCommand
context
- invocation context
Throwable
- in the event of problems.public boolean isEmitCompositeIntermediateKeys()
public void setEmitCompositeIntermediateKeys(boolean emitCompositeIntermediateKeys)
public Set<KOut> getKeys()
public Reducer<KOut,VOut> getReducer()
public String getTaskId()
public byte getCommandId()
ReplicableCommand
getCommandId
in interface ReplicableCommand
public UUID getUUID()
CancellableCommand
getUUID
in interface CancellableCommand
public Object[] getParameters()
ReplicableCommand
getParameters
in interface ReplicableCommand
public void setParameters(int commandId, Object[] args)
ReplicableCommand
CommandsFactory
to create a command from raw data read off a stream.
setParameters
in interface ReplicableCommand
commandId
- command id to set. This is usually unused but *could* be used in the event of a command having
multiple IDs, such as PutKeyValueCommand
.args
- object array of argspublic boolean isReturnValueExpected()
ReplicableCommand
ResponseGenerator
may choose to simply return null to save on marshalling costs.
isReturnValueExpected
in interface ReplicableCommand
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class BaseRpcCommand
|
Infinispan Distribution 5.2.6.Final-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |