ch.ethz.iks.r_osgi.messages
Class LeaseMessage

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

public final class LeaseMessage
extends RemoteOSGiMessage

Lease message. Is exchanged when a channel is established. Leases are the implementations of the statements of supply and demand.

Since:
0.6
Author:
Jan S. Rellermeyer, ETH Zurich

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
LeaseMessage()
          create a new lease message.
 
Method Summary
 java.lang.String[] getServiceIDs()
          get the service IDs.
 java.lang.String[][] getServiceInterfaces()
          get the service interfaces.
 java.util.Dictionary[] getServiceProperties()
          get the service properties.
 java.lang.String[] getTopics()
          get the topics.
 void setServiceIDs(java.lang.String[] serviceIDs)
          set the service IDs.
 void setServiceInterfaces(java.lang.String[][] serviceInterfaces)
          set the service interfaces.
 void setServiceProperties(java.util.Dictionary[] serviceProperties)
          set the service properties.
 void setTopics(java.lang.String[] topics)
          set the topics.
 java.lang.String toString()
          String representation for debug outputs.
 void writeBody(java.io.ObjectOutputStream out)
          write the bytes of the message.
 
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

LeaseMessage

public LeaseMessage()
create a new lease message.

Method Detail

getServiceInterfaces

public java.lang.String[][] getServiceInterfaces()
get the service interfaces.

Returns:
the service interfaces.

setServiceInterfaces

public void setServiceInterfaces(java.lang.String[][] serviceInterfaces)
set the service interfaces.

Parameters:
serviceInterfaces - the service interfaces.

getServiceIDs

public java.lang.String[] getServiceIDs()
get the service IDs.

Returns:
the service IDs.

setServiceIDs

public void setServiceIDs(java.lang.String[] serviceIDs)
set the service IDs.

Parameters:
serviceIDs - the service IDs.

getServiceProperties

public java.util.Dictionary[] getServiceProperties()
get the service properties.

Returns:
the service properties.

setServiceProperties

public void setServiceProperties(java.util.Dictionary[] serviceProperties)
set the service properties.

Parameters:
serviceProperties - the service properties.

getTopics

public java.lang.String[] getTopics()
get the topics.

Returns:
the topics.

setTopics

public void setTopics(java.lang.String[] topics)
set the topics.

Parameters:
topics - the topics.

writeBody

public void writeBody(java.io.ObjectOutputStream out)
               throws java.io.IOException
write the bytes of the message.

Specified by:
writeBody in class RemoteOSGiMessage
Parameters:
out - the output stream
Throws:
java.io.IOException - in case of IO errors.
See Also:
ch.ethz.iks.r_osgi.messages.RemoteOSGiMessage#getBody()

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.