|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ostore.util.QueueElementRespIF
QueueElementRespIF
is the superclass of the
logical and well defined response to an initial corresponding
request
event
.
QueueElementReqIF
,
QueueElementIF
Field Summary | |
---|---|
protected int |
error
One of the error codes defined by the subclass (or NO_ERROR ). |
static int |
NO_ERROR
An error code that indicates no error occurred. |
Object |
userData
Requestor defined object to be returned in the resp. |
Constructor Summary | |
---|---|
QueueElementRespIF(int e,
Object u)
Constructor: Creates a new QueueElementReqIF . |
Method Summary | |
---|---|
protected void |
BUG(String msg)
BUG outputs a fatal error msg, then terminates the proces. |
int |
getErrorCode()
getErrorCode returns the error code. |
boolean |
successful()
successful returns true iff
getErrorCode() == NO_ERROR . |
String |
toString()
Specified by java.lang.Object |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int NO_ERROR
protected int error
NO_ERROR
).
public Object userData
Constructor Detail |
public QueueElementRespIF(int e, Object u)
QueueElementReqIF
.
e
- One of the error codes defined by the subclass
(or NO_ERROR
).u
- Requestor defined object to be returned in the resp.Method Detail |
public boolean successful()
successful
returns true
iff
getErrorCode()
==
NO_ERROR
.
true
iff
getErrorCode()
==
NO_ERROR
.public int getErrorCode()
getErrorCode
returns the error code.
public String toString()
toString
in class Object
protected void BUG(String msg)
BUG
outputs a fatal error msg, then terminates the proces.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |