Class AbstractRPCService.MessageBody
- java.lang.Object
-
- 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
Constructors Constructor Description MessageBody()MessageBody(org.jgroups.Address dest, String commandId, Serializable[] args)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccept(org.jgroups.Address address)Indicates whether or not the given message body accepts the given addressSerializable[]getArgs()StringgetCommandId()voidreadExternal(ObjectInput in)voidwriteExternal(ObjectOutput out)
-
-
-
Constructor Detail
-
MessageBody
public MessageBody()
-
MessageBody
public MessageBody(org.jgroups.Address dest, String commandId, Serializable[] args)- Parameters:
dest- The destination of the messagecommandId- the id of the command to executeargs- 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:
trueif the message is for everybody or if the given address is the expected address,falseotherwise
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
-