org.clazzes.remoting.cmd
Class InvocationCmd

java.lang.Object
  extended by org.clazzes.remoting.cmd.Cmd
      extended by 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)
           
 
Method Summary
 void accept(CmdVisitor visitor)
           
 java.lang.Object getArg()
           
 java.util.Map<java.lang.String,java.lang.Object> getMetadata()
           
 java.lang.String getSubSystem()
           
 
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
 

Constructor Detail

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.
Method Detail

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.