org.clazzes.remoting.cmd
Class InvocationCmd
java.lang.Object
org.clazzes.remoting.cmd.Cmd
org.clazzes.remoting.cmd.InvocationCmd
- All Implemented Interfaces:
- java.io.Serializable
public class InvocationCmd
- extends Cmd
An invocation command is sent over the wire from the client to the server upon
invocation of a remote call.
The server initiates an InvocationCmd when a broadcast is sent from the server
to all connected clients.
- Author:
- wglas
- See Also:
- Serialized Form
Constructor Summary |
InvocationCmd(java.lang.String subSystem,
java.lang.Object arg,
java.util.Map<java.lang.String,java.lang.Object> metadata)
|
Methods inherited from class org.clazzes.remoting.cmd.Cmd |
acceptCmd |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InvocationCmd
public InvocationCmd(java.lang.String subSystem,
java.lang.Object arg,
java.util.Map<java.lang.String,java.lang.Object> metadata)
- Parameters:
subSystem
- The subSystem being called.arg
- The argument to the call.metadata
- The metadata passed to the call.
getSubSystem
public java.lang.String getSubSystem()
- Returns:
- The subsystem being called.
getArg
public java.lang.Object getArg()
- Returns:
- The argument to the subsystem.
getMetadata
public java.util.Map<java.lang.String,java.lang.Object> getMetadata()
- Returns:
- The metadata passed to the
InvocationHandler
accept
public void accept(CmdVisitor visitor)
- Specified by:
accept
in class Cmd
- Parameters:
visitor
- The visitor representing a polymorphic operation on the command.
Copyright © 2010. All Rights Reserved.