|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jdo.impl.fostore.Reply
Represents the result of processing a request.
Field Summary | |
private boolean |
closed
|
(package private) static org.apache.commons.logging.Log |
logger
Logger |
private static I18NHelper |
msg
I18N support. |
private FOStoreOutput |
out
|
private int |
replyDataPosition
|
private RequestId |
requestId
|
private Status |
status
|
private int |
statusPosition
|
private static boolean |
verbose
|
private static int |
VERSION_NUMBER
The version number of the current protocol. |
Constructor Summary | |
(package private) |
Reply(RequestId requestId,
FOStoreOutput out)
|
Method Summary | |
private void |
assertNotClosed()
|
(package private) int |
beginStash()
|
(package private) void |
endStash(int length,
int pos)
|
(package private) static java.lang.String |
getExceptionMessage(java.lang.Throwable t)
Indicate whether status reported to client is to be verbose or not. |
(package private) int |
getPos()
|
(package private) Status |
getStatus()
|
(package private) void |
setPos(int pos)
|
(package private) void |
setStatus(Status status)
Sets the status of this reply. |
(package private) void |
setStatus(Status status,
java.lang.String message)
Sets the status of this reply. |
(package private) void |
setStatus(Status status,
java.lang.String message,
java.lang.Throwable t)
Sets the status of this reply. |
(package private) void |
setStatus(Status status,
java.lang.Throwable t)
Sets the status of this reply. |
(package private) static void |
verifyVersionNumber(java.io.DataInput in)
Verify the Reply version number. |
void |
write(byte[] b)
|
void |
write(byte[] b,
int off,
int len)
|
void |
write(int b)
|
void |
writeBoolean(boolean v)
|
void |
writeByte(int v)
|
void |
writeBytes(java.lang.String s)
|
void |
writeChar(int v)
|
void |
writeChars(java.lang.String s)
|
(package private) void |
writeCLID(CLID clid)
Writes a CLID in this reply at the current position. |
void |
writeDouble(double v)
|
void |
writeFloat(float v)
|
void |
writeInt(int v)
|
void |
writeLong(long v)
|
(package private) void |
writeOID(OID oid)
Writes an OID in this reply at the current position. |
void |
writeShort(int v)
|
void |
writeUTF(java.lang.String str)
|
(package private) static void |
writeVersionNumber(java.io.DataOutput out)
Write the version number at the current position. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private final RequestId requestId
private final FOStoreOutput out
private Status status
private final int statusPosition
private final int replyDataPosition
private boolean closed
private static final int VERSION_NUMBER
Note that this version number corresponds to that used in the entire stream of reply data, not for an individual reply.
private static final I18NHelper msg
static final org.apache.commons.logging.Log logger
private static boolean verbose
Constructor Detail |
Reply(RequestId requestId, FOStoreOutput out) throws java.io.IOException
Method Detail |
static java.lang.String getExceptionMessage(java.lang.Throwable t)
void setStatus(Status status) throws java.io.IOException
status
- Indication of result of processing a request.
java.io.IOException
void setStatus(Status status, java.lang.Throwable t) throws java.io.IOException
status
- Indication of result of processing a request.t
- Detail on cause of errors.
java.io.IOException
void setStatus(Status status, java.lang.String message, java.lang.Throwable t) throws java.io.IOException
status
- Indication of result of processing a request.message
- detailed message.t
- Detail on cause of errors.
java.io.IOException
void setStatus(Status status, java.lang.String message) throws java.io.IOException
status
- Indication of result of processing a request.message
- Detail on cause of errors.
java.io.IOException
Status getStatus()
static void writeVersionNumber(java.io.DataOutput out) throws java.io.IOException
java.io.IOException
static void verifyVersionNumber(java.io.DataInput in) throws java.io.IOException
javax.jdo.JDOFatalUserException
- if the version number does not match
that in the caller's JVM.
java.io.IOException
void writeOID(OID oid) throws java.io.IOException
oid
- The OID which is written.
java.io.IOException
void writeCLID(CLID clid) throws java.io.IOException
clid
- The CLID which is written.
java.io.IOException
int beginStash() throws java.io.IOException
java.io.IOException
FOStoreOutput.beginStash()
void endStash(int length, int pos) throws java.io.IOException
java.io.IOException
FOStoreOutput.endStash(int, int)
int getPos()
void setPos(int pos) throws java.io.IOException
pos
- New postion in Reply's output stream.
java.io.IOException
public void write(byte[] b) throws java.io.IOException
write
in interface java.io.DataOutput
java.io.IOException
public void write(int b) throws java.io.IOException
write
in interface java.io.DataOutput
java.io.IOException
public void write(byte[] b, int off, int len) throws java.io.IOException
write
in interface java.io.DataOutput
java.io.IOException
public void writeBoolean(boolean v) throws java.io.IOException
writeBoolean
in interface java.io.DataOutput
java.io.IOException
public void writeByte(int v) throws java.io.IOException
writeByte
in interface java.io.DataOutput
java.io.IOException
public void writeBytes(java.lang.String s) throws java.io.IOException
writeBytes
in interface java.io.DataOutput
java.io.IOException
public void writeChar(int v) throws java.io.IOException
writeChar
in interface java.io.DataOutput
java.io.IOException
public void writeChars(java.lang.String s) throws java.io.IOException
writeChars
in interface java.io.DataOutput
java.io.IOException
public void writeDouble(double v) throws java.io.IOException
writeDouble
in interface java.io.DataOutput
java.io.IOException
public void writeFloat(float v) throws java.io.IOException
writeFloat
in interface java.io.DataOutput
java.io.IOException
public void writeInt(int v) throws java.io.IOException
writeInt
in interface java.io.DataOutput
java.io.IOException
public void writeLong(long v) throws java.io.IOException
writeLong
in interface java.io.DataOutput
java.io.IOException
public void writeShort(int v) throws java.io.IOException
writeShort
in interface java.io.DataOutput
java.io.IOException
public void writeUTF(java.lang.String str) throws java.io.IOException
writeUTF
in interface java.io.DataOutput
java.io.IOException
private void assertNotClosed()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |