ch.ethz.iks.r_osgi.messages
Class RemoteEventMessage

java.lang.Object
  extended by ch.ethz.iks.r_osgi.messages.RemoteOSGiMessage
      extended by ch.ethz.iks.r_osgi.messages.RemoteEventMessage

public final class RemoteEventMessage
extends RemoteOSGiMessage

RemoteEventMessage transfers RemoteEvents via multicast to all listening peers.

Since:
0.2
Author:
Jan S. Rellermeyer, ETH Z�rich

Field Summary
static String EVENT_SENDER_URI
          the event property contains the sender's uri.
 
Fields inherited from class ch.ethz.iks.r_osgi.messages.RemoteOSGiMessage
DELIVER_BUNDLE, DELIVER_SERVICE, FETCH_SERVICE, INVOKE_METHOD, LEASE, LEASE_UPDATE, METHOD_RESULT, REMOTE_EVENT, STREAM_REQUEST, STREAM_RESULT, TIME_OFFSET, xid
 
Constructor Summary
RemoteEventMessage()
          creates a new RemoteEventMessage from RemoteEvent.
 
Method Summary
 Dictionary getProperties()
          get the properties.
 String getTopic()
          get the topic.
 void setProperties(Dictionary properties)
          set the properties.
 void setTopic(String topic)
          set the topic.
 String toString()
          String representation for debug outputs.
 void writeBody(ObjectOutputStream out)
          write the body of the message to a stream.
 
Methods inherited from class ch.ethz.iks.r_osgi.messages.RemoteOSGiMessage
getFuncID, getXID, parse, readBytes, readStringArray, send, setXID, writeBytes, writeStringArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

EVENT_SENDER_URI

public static final String EVENT_SENDER_URI
the event property contains the sender's uri.

See Also:
Constant Field Values
Constructor Detail

RemoteEventMessage

public RemoteEventMessage()
creates a new RemoteEventMessage from RemoteEvent.

Method Detail

getTopic

public String getTopic()
get the topic.

Returns:
the topic.

setTopic

public void setTopic(String topic)
set the topic.

Parameters:
topic -

getProperties

public Dictionary getProperties()
get the properties.

Returns:
the properties.

setProperties

public void setProperties(Dictionary properties)
set the properties.

Parameters:
properties - the properties.

writeBody

public void writeBody(ObjectOutputStream out)
               throws IOException
write the body of the message to a stream.

Specified by:
writeBody in class RemoteOSGiMessage
Parameters:
out - the ObjectOutputStream.
Throws:
IOException - in case of IO failures.

toString

public String toString()
String representation for debug outputs.

Overrides:
toString in class Object
Returns:
a string representation.
See Also:
Object.toString()