|
||||||||||
| 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_SERVICE, FETCH_SERVICE, INVOKE_METHOD, LEASE, LEASE_UPDATE, METHOD_RESULT, REMOTE_EVENT, STREAM_REQUEST, STREAM_RESULT, TIME_OFFSET, xid |
| Constructor Summary | |
|---|---|
LeaseUpdateMessage()
creates a new LeaseUpdateMessage for topic updates. |
|
| Method Summary | |
|---|---|
Object[] |
getPayload()
get the payload of the message. |
String |
getServiceID()
get the service ID. |
short |
getType()
get the type of the message. |
void |
setPayload(Object[] payload)
set the payload of the message. |
void |
setServiceID(String serviceID)
set the service ID. |
void |
setType(short type)
set the type of the message. |
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 |
|---|
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(ObjectOutputStream out)
throws IOException
writeBody in class RemoteOSGiMessageout - the ObjectOutputStream.
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 String getServiceID()
public void setServiceID(String serviceID)
serviceID - the service ID.public Object[] getPayload()
public void setPayload(Object[] payload)
payload - the payload.public String toString()
toString in class ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||