|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.ulc.util.UlcObject | +--com.ibm.ulc.comm.Request | +--com.ibm.ulc.comm.ORBRequest
Encapsulates a request for a registered object. An ORBRequests consists of a target object id, a request name, and arguments.
Field Summary | |
protected ORBConnection |
fConnection
|
protected Anything |
fData
|
protected IAnythingWriter |
fWriter
|
Constructor Summary | |
ORBRequest(IAnythingWriter writer,
int oid,
java.lang.String request,
Anything args)
Creates a request for the given target. |
|
ORBRequest(IAnythingWriter writer,
int oid,
java.lang.String request,
Anything args,
long contextId)
Creates a request for the given target. |
|
ORBRequest(ORBConnection conn)
Creates a request and associates with the given connection. |
Method Summary | |
void |
dispatch()
Executes the request by looking up the target object in the associated object space. |
void |
dump(java.io.OutputStream os)
Pretty print the request to the given output stream. |
int |
getByteCount()
Gets the number of bytes a request will take up when streamed. |
Anything |
getData()
This method was created in VisualAge. |
java.lang.String |
getName()
Get the name of this request. |
int |
getReplyId()
Returns the id of the request that triggered this request or -1 if undefined. |
int |
getRequestId()
Returns the unique id of this request within the active connection's life cycle. |
boolean |
read(java.io.InputStream is)
Reads a request from the given stream. |
boolean |
readEx(java.io.InputStream is)
Reads a request from the given stream. |
void |
setReplyId(int replyId)
Sets the id of the request that triggered this request. |
void |
setRequestId(int reqId)
Sets the id of this request unique within the connection that it is running in. |
void |
write(java.io.OutputStream os)
Write the request to the given output stream. |
void |
writeEx(java.io.OutputStream os)
Write the request to the given output stream. |
Methods inherited from class com.ibm.ulc.util.UlcObject |
trouble,
trouble2,
trouble2Err,
troubleErr |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected Anything fData
protected ORBConnection fConnection
protected IAnythingWriter fWriter
Constructor Detail |
public ORBRequest(ORBConnection conn)
read(java.io.InputStream)
public ORBRequest(IAnythingWriter writer, int oid, java.lang.String request, Anything args)
public ORBRequest(IAnythingWriter writer, int oid, java.lang.String request, Anything args, long contextId)
Method Detail |
public void dispatch()
public void dump(java.io.OutputStream os)
public int getByteCount()
public Anything getData()
public java.lang.String getName()
public int getReplyId()
public int getRequestId()
public boolean read(java.io.InputStream is)
public boolean readEx(java.io.InputStream is) throws java.io.IOException
public void setReplyId(int replyId)
public void setRequestId(int reqId)
public void write(java.io.OutputStream os)
public void writeEx(java.io.OutputStream os) throws java.io.InterruptedIOException, java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |