org.jboss.cache.commands.read
Class GetDataMapCommand
java.lang.Object
org.jboss.cache.commands.read.AbstractDataCommand
org.jboss.cache.commands.read.GetDataMapCommand
- All Implemented Interfaces:
- DataCommand, ReplicableCommand, VisitableCommand
public class GetDataMapCommand
- extends AbstractDataCommand
Implements functionality defined by Cache.getData(org.jboss.cache.Fqn)
This is the equivalent of the old MethodCallDefinitions.getDataMapMethodLocal method call from 2.1.x.
- Since:
- 2.2.0
- Author:
- Mircea.Markus@jboss.com
Method Summary |
java.lang.Object |
acceptVisitor(InvocationContext ctx,
Visitor visitor)
Accept a visitor, and return the result of accepting this visitor. |
int |
getCommandId()
Used by marshallers to convert this command into an id for streaming. |
java.lang.Object |
perform(InvocationContext ctx)
Retrieves an unmodifiable map of data contained in a node referenced by the specified Fqn. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
METHOD_ID
public static final int METHOD_ID
- See Also:
- Constant Field Values
GetDataMapCommand
public GetDataMapCommand(Fqn fqn)
GetDataMapCommand
public GetDataMapCommand()
perform
public java.lang.Object perform(InvocationContext ctx)
- Retrieves an unmodifiable map of data contained in a node referenced by the specified Fqn.
- Parameters:
ctx
- invocation context
- Returns:
- an unmodifiable Map of data contained in a node for a given Fqn, or null if the Fqn refers to a node that does not exist.
acceptVisitor
public java.lang.Object acceptVisitor(InvocationContext ctx,
Visitor visitor)
throws java.lang.Throwable
- Description copied from interface:
VisitableCommand
- Accept a visitor, and return the result of accepting this visitor.
- Parameters:
ctx
- invocation contextvisitor
- visitor to accept
- Returns:
- arbitrary return value
- Throws:
java.lang.Throwable
- in the event of problems
getCommandId
public int getCommandId()
- Description copied from interface:
ReplicableCommand
- Used by marshallers to convert this command into an id for streaming.
- Returns:
- the method id of this command. This is compatible with pre-2.2.0 MethodCall ids.
Copyright © 2009 JBoss, a division of Red Hat. All Rights Reserved.