|
||||||||||
| 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.StreamRequestMessage
public final class StreamRequestMessage
Stream request message.
| Field Summary | |
|---|---|
static byte |
READ
operation identifier for simple read operation on stream. |
static byte |
READ_ARRAY
operation identifier for read operation reading more than one byte at once. |
static byte |
WRITE
operation identifier for simple write operation on stream. |
static byte |
WRITE_ARRAY
operation identifier for write operation writing more than one byte at once. |
| 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 | |
|---|---|
StreamRequestMessage()
creates a new StreamRequestMessage. |
|
| Method Summary | |
|---|---|
byte[] |
getData()
get the data array. |
int |
getLenOrVal()
get the length (read op) or value (write op) field. |
byte |
getOp()
get the operation code. |
short |
getStreamID()
get the ID of the stream. |
void |
setData(byte[] b)
set the data array. |
void |
setLenOrVal(int lenOrVal)
set the length (read op) or value (write op) field. |
void |
setOp(byte op)
set the operation code. |
void |
setStreamID(short streamID)
set the ID of the stream. |
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 byte READ
public static final byte READ_ARRAY
public static final byte WRITE
public static final byte WRITE_ARRAY
| Constructor Detail |
|---|
public StreamRequestMessage()
| 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.impl.RemoteOSGiMessageImpl#getBody()public short getStreamID()
public void setStreamID(short streamID)
streamID - the ID of the stream.public byte getOp()
public void setOp(byte op)
op - the operation code.public int getLenOrVal()
public void setLenOrVal(int lenOrVal)
lenOrVal - the length or value.public byte[] getData()
public void setData(byte[] b)
b - the data array to store.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 | |||||||||