|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.omg.CORBA.LocalObject | +--org.openorb.orb.net.AbstractClientRequest | +--org.openorb.orb.net.LocalClientRequest
This is a very hacked version of the IIOPClientRequest to route calls inside the ORB. This is necessary because of some IDL compilers (as JDK1.4) that leave to the ORB all the local calls instead of handling them inside the stubs
Fields inherited from interface org.openorb.orb.net.ClientRequest |
OBJECT_HERE, STATE_COMPLETE, STATE_CREATED, STATE_MARSHAL, STATE_UNMARSHAL, STATE_WAITING, UNKNOWN_OBJECT |
Constructor Summary | |
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 |
Method Summary | |
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. |
Methods inherited from class org.openorb.orb.net.AbstractClientRequest |
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 |
Methods inherited from class org.omg.CORBA.LocalObject |
_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_connection |
Methods inherited from class java.lang.Object |
clone, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.omg.CORBA.Object |
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_interface, _get_policy, _hash, _is_a, _is_equivalent, _non_existent, _release, _request, _set_policy_override |
Constructor Detail |
public 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 targetMethod Detail |
public 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.Object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |