|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectch.ethz.iks.r_osgi.messages.RemoteOSGiMessage
ch.ethz.iks.r_osgi.messages.LeaseUpdateMessage
public final class LeaseUpdateMessage
Lease update message. Sent whenever the information expressed in the original lease message has changed. This can be that either a service has been added/modified/removed, or that the topic space has changed.
| Field Summary | |
|---|---|
static short |
SERVICE_ADDED
a service has been added. |
static short |
SERVICE_MODIFIED
a service has been modified. |
static short |
SERVICE_REMOVED
a service has been removed. |
static short |
TOPIC_UPDATE
the update is a topic update. |
| 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 | |
|---|---|
LeaseUpdateMessage()
creates a new LeaseUpdateMessage for topic updates. |
|
| Method Summary | |
|---|---|
java.lang.Object[] |
getPayload()
get the payload of the message. |
java.lang.String |
getServiceID()
get the service ID. |
short |
getType()
get the type of the message. |
void |
setPayload(java.lang.Object[] payload)
set the payload of the message. |
void |
setServiceID(java.lang.String serviceID)
set the service ID. |
void |
setType(short type)
set the type of the message. |
java.lang.String |
toString()
String representation for debug outputs. |
void |
writeBody(java.io.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 |
|---|
public static final short TOPIC_UPDATE
public static final short SERVICE_ADDED
public static final short SERVICE_MODIFIED
public static final short SERVICE_REMOVED
| Constructor Detail |
|---|
public LeaseUpdateMessage()
| Method Detail |
|---|
public void writeBody(java.io.ObjectOutputStream out)
throws java.io.IOException
writeBody in class RemoteOSGiMessageout - the ObjectOutputStream.
java.io.IOException - in case of IO failures.ch.ethz.iks.r_osgi.messages.RemoteOSGiMessage#getBody()public short getType()
public void setType(short type)
type - the type.public java.lang.String getServiceID()
public void setServiceID(java.lang.String serviceID)
serviceID - the service ID.public java.lang.Object[] getPayload()
public void setPayload(java.lang.Object[] payload)
payload - the payload.public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||