|
||||||||||
| 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.TwalkMessage
public class TwalkMessage
Message sent to traverse a directory tree
| Field Summary |
|---|
| Fields inherited from class uk.ac.rdg.resc.jstyx.messages.StyxMessage |
|---|
buf, length, lock, name, tag, type |
| Constructor Summary | |
|---|---|
TwalkMessage(int length,
short type,
int tag)
Creates a new TwalkMessage. |
|
TwalkMessage(long fid,
long newFid,
java.lang.String path)
This constructor should be called when constructing a TwalkMessage from scratch |
|
| Method Summary | |
|---|---|
void |
addPathElement(java.lang.String s)
Add an element to the array of path elements |
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()
|
long |
getNewFid()
|
int |
getNumPathElements()
|
java.lang.String |
getPath()
|
java.lang.String[] |
getPathElements()
|
void |
setFid(long fid)
|
void |
setNewFid(long newFid)
|
void |
setPath(java.lang.String path)
|
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 TwalkMessage(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 message
public TwalkMessage(long fid,
long newFid,
java.lang.String path)
fid - The fid representing the start point of the traversalnewFid - The fid that will represent the end point of the traversalpath - The /-delimited path| 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)
public long getNewFid()
public void setNewFid(long newFid)
public java.lang.String getPath()
public void setPath(java.lang.String path)
path - The /-delimited path (if this starts with a / it is an
absolute path, otherwise it is a relative path (relative to the file
represented by fid)public int getNumPathElements()
public java.lang.String[] getPathElements()
public void addPathElement(java.lang.String s)
protected 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 | |||||||||