eXo Kernel :: Component :: Common Service 2.4.x-SNAPSHOT

org.exoplatform.services.rpc.impl
Class AbstractRPCService.MessageBody

java.lang.Object
  extended by org.exoplatform.services.rpc.impl.AbstractRPCService.MessageBody
All Implemented Interfaces:
Externalizable, Serializable
Enclosing class:
AbstractRPCService

public static class AbstractRPCService.MessageBody
extends Object
implements Externalizable

This intern class will be used to

See Also:
Serialized Form

Constructor Summary
AbstractRPCService.MessageBody()
           
AbstractRPCService.MessageBody(org.jgroups.Address dest, String commandId, Serializable[] args)
           
 
Method Summary
 boolean accept(org.jgroups.Address address)
          Indicates whether or not the given message body accepts the given address
 Serializable[] getArgs()
           
 String getCommandId()
           
 void readExternal(ObjectInput in)
          
 void writeExternal(ObjectOutput out)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractRPCService.MessageBody

public AbstractRPCService.MessageBody()

AbstractRPCService.MessageBody

public AbstractRPCService.MessageBody(org.jgroups.Address dest,
                                      String commandId,
                                      Serializable[] args)
Parameters:
dest - The destination of the message
commandId - the id of the command to execute
args - the arguments to use
Method Detail

getCommandId

public String getCommandId()

getArgs

public Serializable[] getArgs()

accept

public boolean accept(org.jgroups.Address address)
Indicates whether or not the given message body accepts the given address

Parameters:
address - the address to check
Returns:
true if the message is for everybody or if the given address is the expected address, false otherwise

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException

Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException

Specified by:
writeExternal in interface Externalizable
Throws:
IOException

eXo Kernel :: Component :: Common Service 2.4.x-SNAPSHOT

Copyright © 2015 eXo Platform SAS. All Rights Reserved.