|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.ac.rdg.resc.jstyx.messages.StyxMessage
uk.ac.rdg.resc.jstyx.messages.TstatMessage
public class TstatMessage
Message sent to enquire about the attributes of a file on a Styx server
| Field Summary |
|---|
| Fields inherited from class uk.ac.rdg.resc.jstyx.messages.StyxMessage |
|---|
buf, length, lock, name, tag, type |
| Constructor Summary | |
|---|---|
TstatMessage(int length,
short type,
int tag)
Creates a new TstatMessage. |
|
TstatMessage(long fid)
This constructor should be called when constructing a TstatMessage from scratch |
|
| Method Summary | |
|---|---|
protected void |
decodeBody(StyxBuffer buf)
Called when a complete message has arrived; signals that we are ready to interpret the raw bytes in the buffer and turn them into meaningful information. |
protected void |
encodeBody(StyxBuffer buf)
Encode the body of the message into bytes in the underlying buffer |
protected java.lang.String |
getElements()
|
long |
getFid()
|
void |
setFid(long fid)
Sets the fid for this TstatMessage |
java.lang.String |
toFriendlyString()
|
| Methods inherited from class uk.ac.rdg.resc.jstyx.messages.StyxMessage |
|---|
createStyxMessage, dispose, encode, getBuffer, getLength, getName, getTag, getType, readBytesFrom, setTag, toString, write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TstatMessage(int length,
short type,
int tag)
length - The total length of the message (including all header info)type - The type of the message (a number between 100 and 127)tag - The tag that identifies this messagepublic TstatMessage(long fid)
| Method Detail |
|---|
protected final void decodeBody(StyxBuffer buf)
StyxMessage
decodeBody in class StyxMessageprotected final void encodeBody(StyxBuffer buf)
StyxMessage
encodeBody in class StyxMessagepublic long getFid()
getFid in class StyxMessagepublic void setFid(long fid)
fid - the fidprotected java.lang.String getElements()
getElements in class StyxMessagepublic java.lang.String toFriendlyString()
toFriendlyString in class StyxMessage
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||