|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.ac.rdg.resc.jstyx.server.StyxFileClient
public class StyxFileClient
Server's representation of a client of a StyxFile; created when a client succesfully opens a StyxFile
| Constructor Summary | |
|---|---|
StyxFileClient(org.apache.mina.protocol.ProtocolSession session,
long fid,
int mode)
A new StyxFileClient |
|
| Method Summary | |
|---|---|
boolean |
canRead()
Checks to see if the client can read from this file (i.e. |
boolean |
canWrite()
Checks to see if the client can write to this file (i.e. |
boolean |
deleteOnClunk()
|
long |
getFid()
|
int |
getNextFileToRead()
|
long |
getOffset()
|
org.apache.mina.protocol.ProtocolSession |
getSession()
|
void |
setNextFileToRead(int nextFileToRead)
|
void |
setOffset(long offset)
|
boolean |
truncate()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StyxFileClient(org.apache.mina.protocol.ProtocolSession session,
long fid,
int mode)
session - The connection the client is usingfid - The client's handle to the file. Remember that clients might
have multiple fids opened on the same filemode - the file mode as it appears in the TopenMessage (including
the OTRUNC and ORCLOSE bits)| Method Detail |
|---|
public org.apache.mina.protocol.ProtocolSession getSession()
public long getFid()
public boolean deleteOnClunk()
public boolean truncate()
public void setOffset(long offset)
public long getOffset()
public boolean canRead()
public boolean canWrite()
public int getNextFileToRead()
public void setNextFileToRead(int nextFileToRead)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||