ch.ethz.iks.r_osgi.messages
Class RequestBundleMessage

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

public class RequestBundleMessage
extends RemoteOSGiMessage

Request the bundle of a service.

Author:
Jan S. Rellermeyer

Field Summary
 
Fields inherited from class ch.ethz.iks.r_osgi.messages.RemoteOSGiMessage
DELIVER_BUNDLE, DELIVER_BUNDLES, DELIVER_SERVICE, LEASE, LEASE_UPDATE, REMOTE_CALL, REMOTE_CALL_RESULT, REMOTE_EVENT, REQUEST_BUNDLE, REQUEST_DEPENDENCIES, REQUEST_SERVICE, STREAM_REQUEST, STREAM_RESULT, TIME_OFFSET, xid
 
Constructor Summary
RequestBundleMessage()
          create a new request bundle message.
RequestBundleMessage(java.io.ObjectInputStream input)
          create a new request bundle message.
 
Method Summary
 java.lang.String getServiceID()
          get the service ID.
 void setServiceID(java.lang.String serviceID)
          get the service ID.
 java.lang.String toString()
          String representation for debug outputs.
protected  void writeBody(java.io.ObjectOutputStream out)
          write the message to the wire.
 
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
 

Constructor Detail

RequestBundleMessage

public RequestBundleMessage()
create a new request bundle message.


RequestBundleMessage

public RequestBundleMessage(java.io.ObjectInputStream input)
                     throws java.io.IOException
create a new request bundle message.

Throws:
java.io.IOException
Method Detail

writeBody

protected void writeBody(java.io.ObjectOutputStream out)
                  throws java.io.IOException
write the message to the wire.

Specified by:
writeBody in class RemoteOSGiMessage
Parameters:
out - the output stream.
Throws:
java.io.IOException - in case of IO failures.

getServiceID

public java.lang.String getServiceID()
get the service ID.

Returns:
the service ID.

setServiceID

public void setServiceID(java.lang.String serviceID)
get the service ID.

Parameters:
serviceID - the service ID.

toString

public java.lang.String toString()
String representation for debug outputs.

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


Copyright © 2009 IKS, ETH Zurich. All Rights Reserved.