public class LocalClientRequest extends AbstractClientRequest
OBJECT_HERE, STATE_COMPLETE, STATE_CREATED, STATE_MARSHAL, STATE_UNMARSHAL, STATE_WAITING, UNKNOWN_OBJECT| Constructor and Description |
|---|
LocalClientRequest(org.omg.CORBA.ORB orb,
int request_id,
org.omg.CORBA.Object target,
java.lang.String operation,
boolean response_expected,
Address[] adresses)
Creates a new LocalClientRequest
|
| Modifier and Type | Method and Description |
|---|---|
org.omg.CORBA.portable.OutputStream |
begin_marshal()
Begin marshalling arguments.
|
boolean |
cancel(org.omg.CORBA.SystemException ex)
Cancel the request with the specified system exception reply.
|
protected void |
finalize()
We define the finalize method so that the request is canceled if a
deferred request is discarded.
|
org.omg.IOP.IOR |
forward_reference_ior()
Get the ior associated with a forward reference.
|
org.omg.CORBA.Object |
forward_reference()
Return and eventually create a forward reference from a LOCATION_FORWARD
reply.
|
org.omg.IOP.ServiceContext |
get_reply_service_context(int id)
Returns the service context of the request.
|
boolean |
is_locate()
This returns true if this request is a locate request.
|
boolean |
is_poll()
Request is a poll.
|
boolean |
is_request()
This returns true if this request is a standard request.
|
java.lang.String |
operation()
Request operation
|
boolean |
poll_response()
Poll to see if a response is available from the target.
|
org.omg.CORBA.portable.InputStream |
receive_response()
Get the response output stream.
|
java.lang.String |
received_exception_id()
Rreturns the exception id if an exception has been sent by the server.
|
org.omg.CORBA.Any |
received_exception()
Returns the forward reference.
|
org.omg.CORBA.SystemException |
received_system_exception()
Get the system exception which would be contained in the any returned
from receive_exception.
|
short |
reply_status()
Returns the reply status of the request
|
boolean |
response_expected() |
int |
send_request()
When this returns the last fragment of the request has been
sent.
|
int |
state()
Current request state.
|
short |
sync_scope()
Returns the sync scope of the request (depends if it is one way or not)
|
int |
wait_for_response(long timeout)
Wait for a response from the server.
|
add_request_service_context, address, arguments, channel, contexts, effective_profile, effective_target_ior, effective_target, equals, exceptions, get_effective_component, get_effective_components, get_request_policy, get_request_service_context, get_request_service_contexts, get_slot, getLogger, hashCode, operation_context, orb, request_id, requestPolicyExists, result, state_completion_status, target_ior, target_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_interface, _get_policy, _hash, _invoke, _is_a, _is_equivalent, _is_local, _non_existent, _orb, _release, _releaseReply, _request, _request, _servant_postinvoke, _servant_preinvoke, _set_policy_override, validate_connectionpublic LocalClientRequest(org.omg.CORBA.ORB orb,
int request_id,
org.omg.CORBA.Object target,
java.lang.String operation,
boolean response_expected,
Address[] adresses)
orb - ORBrequest_id - the current request idtarget - target object for the requestoperation - operationresponse_expected - oneway call or notadresses - all the adresses of the targetpublic int state()
public boolean is_request()
public boolean is_locate()
public boolean is_poll()
public short sync_scope()
public boolean response_expected()
public java.lang.String operation()
public boolean cancel(org.omg.CORBA.SystemException ex)
public org.omg.CORBA.portable.OutputStream begin_marshal()
public int send_request()
public boolean poll_response()
public org.omg.CORBA.portable.InputStream receive_response()
public int wait_for_response(long timeout)
timeout - Maximum amount of time to wait for response.
<=0 to wait forever, > 0 for some timeout (in ms)public short reply_status()
public org.omg.IOP.ServiceContext get_reply_service_context(int id)
id - public org.omg.CORBA.Object forward_reference()
public org.omg.IOP.IOR forward_reference_ior()
public org.omg.CORBA.SystemException received_system_exception()
public org.omg.CORBA.Any received_exception()
public java.lang.String received_exception_id()
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwable