fulmine.rpc.events
Class SendRpcEvent

java.lang.Object
  extended by fulmine.event.AbstractEvent
      extended by fulmine.event.system.AbstractSystemEvent
          extended by fulmine.rpc.events.SendRpcEvent
All Implemented Interfaces:
IEvent, ISystemEvent, IAddressable, IDescriptor, Cloneable

public final class SendRpcEvent
extends AbstractSystemEvent

Raised by the sending context to send the RPC to the remote context.

Author:
Ramon Servadei
See Also:
RpcInvokeEvent

Constructor Summary
SendRpcEvent(IEventManager context, String remoteContextIdentity, byte[] rpcData)
          Construct the event to encapsulate the RPC to send
 
Method Summary
protected  String getAdditionalToString()
          Delegate method for subclasses to provide additional toString information.
 String getRemoteContextIdentity()
          Get the identity of the remote context to send the RPC to
 byte[] getRpcData()
          Get the raw bytes to send to the remote context
 
Methods inherited from class fulmine.event.system.AbstractSystemEvent
hideSourceFromToString
 
Methods inherited from class fulmine.event.AbstractEvent
clone, equals, getAddress, getDomain, getDrivingFrame, getFrame, getIdentity, getSource, getTriggerEvent, getType, hashCode, setAddress, setDrivingFrame, setFrame, setSource, setTriggerEvent, toDetailedString, toIdentityString, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface fulmine.event.IEvent
clone, getDrivingFrame, getFrame, getSource, getTriggerEvent, setTriggerEvent
 
Methods inherited from interface fulmine.IDescriptor
toDetailedString, toIdentityString
 
Methods inherited from interface fulmine.IAddressable
getAddress, getDomain, getIdentity, getType
 

Constructor Detail

SendRpcEvent

public SendRpcEvent(IEventManager context,
                    String remoteContextIdentity,
                    byte[] rpcData)
Construct the event to encapsulate the RPC to send

Parameters:
context - the local context
remoteContextIdentity - the remote context that the RPC is targetted at
rpcData - the RPC data in its byte[] form
Method Detail

getRemoteContextIdentity

public String getRemoteContextIdentity()
Get the identity of the remote context to send the RPC to

Returns:
the identity of the remote context to send the RPC to

getRpcData

public byte[] getRpcData()
Get the raw bytes to send to the remote context

Returns:
the raw bytes to send to the remote context

getAdditionalToString

protected String getAdditionalToString()
Description copied from class: AbstractEvent
Delegate method for subclasses to provide additional toString information. This should be a comma separated string, e.g. "one, two, three"

Overrides:
getAdditionalToString in class AbstractSystemEvent
Returns:
the additional toString information in comma separated format


Copyright © 2007-2009. All Rights Reserved.