|
||||||||
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.net.AbstractClientRequest | +--org.openorb.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.net.ClientRequest |
OBJECT_HERE, STATE_COMPLETE, STATE_CREATED, STATE_MARSHAL, STATE_UNMARSHAL, STATE_WAITING, UNKNOWN_OBJECT |
Constructor Summary | |
LocalClientRequest(ORB orb,
int request_id,
Object target,
java.lang.String operation,
boolean response_expected,
Address[] adresses)
Creates a new LocalClientRequest |
Method Summary | |
OutputStream |
begin_marshal()
Begin marshalling arguments. |
boolean |
cancel(SystemException ex)
Cancel the request with the specified system exception reply. |
static LocalClientRequest |
createLocalClientRequest(ORB orb,
Object target,
java.lang.String operation,
boolean response_expected,
Address[] adresses)
This is a factory pattern for creation a new Local Client Request. |
IOR |
forward_reference_ior()
Get the ior associated with a forward reference. |
Object |
forward_reference()
Return and eventually create a forward reference from a LOCATION_FORWARD reply. |
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. |
InputStream |
receive_response()
Get the response output stream. |
java.lang.String |
received_exception_id()
returns the exception id if an exception has been sent by the server |
Any |
received_exception()
returns the forward reference |
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()
Read accessor for response_expected attribute |
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.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 |
getClass, hashCode, 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(ORB orb, int request_id, 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 static LocalClientRequest createLocalClientRequest(ORB orb, Object target, java.lang.String operation, boolean response_expected, Address[] adresses)
orb
- ORBtarget
- 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()
RequestInfoOperations
org.omg.PortableInterceptor.RequestInfoOperations
public java.lang.String operation()
org.omg.PortableInterceptor.RequestInfoOperations
public boolean cancel(SystemException ex)
public OutputStream begin_marshal()
public int send_request()
public boolean poll_response()
public 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 ServiceContext get_reply_service_context(int id)
id
- public Object forward_reference()
public IOR forward_reference_ior()
public SystemException received_system_exception()
public Any received_exception()
org.omg.PortableInterceptor.ClientRequestInfoOperations
public java.lang.String received_exception_id()
org.omg.PortableInterceptor.ClientRequestInfoOperations
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |