|
||||||||
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.AbstractServerRequest
Base class which implements most of the server request functionality. Only protocol specific things are not implemented.
Fields inherited from interface org.openorb.orb.net.ServerRequest |
OBJECT_HERE, STATE_COMPLETE, STATE_CREATED, STATE_FIND_ADAPTER, STATE_PROCESSING, STATE_QUEUED, STATE_REPLY, UNKNOWN_OBJECT |
Constructor Summary | |
AbstractServerRequest(ServerManager serverManager,
ServerChannel channel,
int request_id)
Two pass constructor for locate request. |
|
AbstractServerRequest(ServerManager serverManager,
ServerChannel channel,
int request_id,
byte[] object_key)
One pass constructor for locate request |
|
AbstractServerRequest(ServerManager serverManager,
ServerChannel channel,
int request_id,
org.omg.CORBA.portable.InputStream argument_stream)
Two pass constructor for locate request. |
|
AbstractServerRequest(ServerManager serverManager,
ServerChannel channel,
int request_id,
org.omg.CORBA.portable.InputStream argument_stream,
byte[] object_key,
java.lang.String operation,
byte sync_scope,
org.omg.IOP.ServiceContext[] request_service_contexts)
One pass constructor for request |
Method Summary | |
byte[] |
adapter_id()
Find the adapter ID. |
ObjectAdapter |
adapter()
Server adapter. |
int |
adapter(ObjectAdapter adapter)
Set the object adapter and transfer to the QUEUED state. |
void |
add_reply_service_context(org.omg.IOP.ServiceContext service_context,
boolean replace)
Add a service context to the reply. |
org.omg.CORBA.portable.InputStream |
argument_stream()
Get the request input stream. |
org.omg.Dynamic.Parameter[] |
arguments()
Request Arguments. |
protected abstract org.omg.CORBA.portable.OutputStream |
begin_marshal_reply()
Create a stream for marshaling a successful response. |
protected abstract org.omg.CORBA.portable.OutputStream |
begin_marshal_user_exception()
Create a stream for marshaling a user exception response. |
int |
begin_request()
Called by the worker thread before every attempt to run the request. |
ServerChannel |
channel()
Server channel |
void |
client_cancel()
Client intiated request cancelation. |
protected abstract void |
complete_reply(org.omg.CORBA.portable.OutputStream os)
Complete the marshaling process. |
java.lang.String[] |
contexts()
Request contexts. |
org.omg.CORBA.portable.OutputStream |
createExceptionReply()
Create a stream for marshaling a user exception. |
org.omg.CORBA.portable.OutputStream |
createReply()
Create a stream for marshaling the reply. |
static void |
disableServiceContextExceptions()
Disable exceptions in service context methods. |
void |
dispatch()
Call predispatch to locate the target, enter the PROCESSING state, call the receive_request interception points and dispatch the request through the adapter. |
static void |
enableServiceContextExceptions()
Enable exceptions in service context methods. |
boolean |
equals(java.lang.Object obj)
Equality depends on request IDs and channels. |
org.omg.CORBA.TypeCode[] |
exceptions()
Request exceptions. |
org.omg.IOP.IOR |
forward_reference_ior()
The IOR of the forward reference which will be sent in response to the request. |
org.omg.CORBA.Object |
forward_reference()
The forward reference which will be sent in response to the request. |
org.omg.IOP.ServiceContext |
get_reply_service_context(int id)
Find a reply service context with a given ID. |
org.omg.IOP.ServiceContext[] |
get_reply_service_contexts()
Get a list of all the reply service contexts which been set. |
org.omg.IOP.ServiceContext |
get_request_service_context(int id)
Get reqest service context. |
org.omg.CORBA.Policy |
get_server_policy(int type)
Find the server policy of the specified type. |
org.omg.CORBA.Any |
get_slot(int id)
Access the PI current from interceptors. |
protected org.apache.avalon.framework.logger.Logger |
getLogger()
Return current logger |
int |
hashCode()
Ensure that equal requests have the same hashCode. |
void |
init(byte[] object_key)
Second locate request construction pass. |
void |
init(byte[] object_key,
java.lang.String operation,
byte sync_scope,
org.omg.IOP.ServiceContext[] request_service_contexts)
second constructor pass. |
boolean |
is_locate()
This returns true if this request is a locate request. |
protected abstract void |
marshal_forward_request(org.omg.CORBA.Object target,
boolean permanent)
Send a forward request result. |
protected abstract void |
marshal_locate_reply(boolean object_is_here)
Reply to a locate request. |
protected abstract void |
marshal_system_exception(java.lang.String repo_id,
org.omg.CORBA.SystemException ex)
Send a system exception result. |
byte[] |
object_id()
Find the object ID. |
byte[] |
object_key()
Object Key. |
java.lang.String[] |
operation_context()
Request contexts. |
java.lang.String |
operation()
Operation name. |
org.omg.CORBA.ORB |
orb()
Orb |
protected abstract void |
release_request()
Release any resources associated with the request. |
short |
reply_status()
Get the reply status. |
int |
request_id()
Request ID. |
boolean |
response_expected()
Response is expected to the request. |
org.omg.CORBA.Any |
result()
Request result. |
org.omg.CORBA.Any |
sending_exception()
Exception being sent in reply. |
java.lang.String |
sending_system_exception_id()
Repository ID of the system exception being sent as a reply. |
org.omg.CORBA.SystemException |
sending_system_exception()
System exception being sent as a reply. |
void |
server_cancel(java.lang.Throwable ex)
Server intiated request cancelation. |
void |
set_slot(int id,
org.omg.CORBA.Any data)
Access the PI current from interceptors. |
protected org.omg.CORBA.CompletionStatus |
state_completion_status()
Returns completion status appropriate for the request state. |
int |
state()
Current request state. |
short |
sync_scope()
Message sync scope. |
boolean |
target_is_a(java.lang.String id)
Determine if the target implements the given interface. |
java.lang.String |
target_most_derived_interface()
Most derrived repository ID of the target. |
java.lang.String |
toString()
|
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, finalize, getClass, notify, notifyAll, 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 AbstractServerRequest(ServerManager serverManager, ServerChannel channel, int request_id, org.omg.CORBA.portable.InputStream argument_stream, byte[] object_key, java.lang.String operation, byte sync_scope, org.omg.IOP.ServiceContext[] request_service_contexts)
public AbstractServerRequest(ServerManager serverManager, ServerChannel channel, int request_id, org.omg.CORBA.portable.InputStream argument_stream)
public AbstractServerRequest(ServerManager serverManager, ServerChannel channel, int request_id, byte[] object_key)
public AbstractServerRequest(ServerManager serverManager, ServerChannel channel, int request_id)
Method Detail |
public void init(byte[] object_key, java.lang.String operation, byte sync_scope, org.omg.IOP.ServiceContext[] request_service_contexts)
public void init(byte[] object_key)
public static void disableServiceContextExceptions()
public static void enableServiceContextExceptions()
public org.omg.CORBA.ORB orb()
orb
in interface ServerRequest
public ServerChannel channel()
channel
in interface ServerRequest
public int state()
state
in interface ServerRequest
protected org.omg.CORBA.CompletionStatus state_completion_status()
public boolean is_locate()
is_locate
in interface ServerRequest
public byte[] object_key()
object_key
in interface ServerRequest
public int request_id()
request_id
in interface org.omg.PortableInterceptor.RequestInfoOperations
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String operation()
operation
in interface org.omg.PortableInterceptor.RequestInfoOperations
public boolean response_expected()
response_expected
in interface org.omg.PortableInterceptor.RequestInfoOperations
public short sync_scope()
sync_scope
in interface org.omg.PortableInterceptor.RequestInfoOperations
public org.omg.Dynamic.Parameter[] arguments()
arguments
in interface org.omg.PortableInterceptor.RequestInfoOperations
public org.omg.CORBA.TypeCode[] exceptions()
exceptions
in interface org.omg.PortableInterceptor.RequestInfoOperations
public java.lang.String[] contexts()
contexts
in interface org.omg.PortableInterceptor.RequestInfoOperations
public java.lang.String[] operation_context()
operation_context
in interface org.omg.PortableInterceptor.RequestInfoOperations
public org.omg.CORBA.Any result()
result
in interface org.omg.PortableInterceptor.RequestInfoOperations
public org.omg.CORBA.Any get_slot(int id) throws org.omg.PortableInterceptor.InvalidSlot
get_slot
in interface org.omg.PortableInterceptor.RequestInfoOperations
public void set_slot(int id, org.omg.CORBA.Any data) throws org.omg.PortableInterceptor.InvalidSlot
set_slot
in interface org.omg.PortableInterceptor.ServerRequestInfoOperations
public org.omg.IOP.ServiceContext get_request_service_context(int id)
get_request_service_context
in interface org.omg.PortableInterceptor.RequestInfoOperations
public void client_cancel()
client_cancel
in interface ServerRequest
public void server_cancel(java.lang.Throwable ex)
server_cancel
in interface ServerRequest
public int begin_request()
begin_request
in interface ServerRequest
public int adapter(ObjectAdapter adapter)
adapter
in interface ServerRequest
public ObjectAdapter adapter()
adapter
in interface ServerRequest
public org.omg.CORBA.Policy get_server_policy(int type)
get_server_policy
in interface org.omg.PortableInterceptor.ServerRequestInfoOperations
public byte[] adapter_id()
adapter_id
in interface org.omg.PortableInterceptor.ServerRequestInfoOperations
public byte[] object_id()
object_id
in interface org.omg.PortableInterceptor.ServerRequestInfoOperations
public java.lang.String target_most_derived_interface()
target_most_derived_interface
in interface org.omg.PortableInterceptor.ServerRequestInfoOperations
public boolean target_is_a(java.lang.String id)
target_is_a
in interface org.omg.PortableInterceptor.ServerRequestInfoOperations
public void dispatch() throws AdapterDestroyedException
dispatch
in interface ServerRequest
public org.omg.CORBA.portable.InputStream argument_stream()
argument_stream
in interface ServerRequest
public void add_reply_service_context(org.omg.IOP.ServiceContext service_context, boolean replace)
add_reply_service_context
in interface org.omg.PortableInterceptor.ServerRequestInfoOperations
public org.omg.IOP.ServiceContext get_reply_service_context(int id)
get_reply_service_context
in interface org.omg.PortableInterceptor.RequestInfoOperations
public org.omg.IOP.ServiceContext[] get_reply_service_contexts()
get_reply_service_contexts
in interface ServerRequest
public short reply_status()
reply_status
in interface org.omg.PortableInterceptor.RequestInfoOperations
public org.omg.CORBA.Object forward_reference()
forward_reference
in interface org.omg.PortableInterceptor.RequestInfoOperations
public org.omg.IOP.IOR forward_reference_ior()
forward_reference_ior
in interface ServerRequest
public org.omg.CORBA.Any sending_exception()
sending_exception
in interface org.omg.PortableInterceptor.ServerRequestInfoOperations
public org.omg.CORBA.SystemException sending_system_exception()
sending_system_exception
in interface ServerRequest
public java.lang.String sending_system_exception_id()
sending_system_exception_id
in interface ServerRequest
public org.omg.CORBA.portable.OutputStream createReply()
ServerRequest
createReply
in interface ServerRequest
public org.omg.CORBA.portable.OutputStream createExceptionReply()
ServerRequest
createExceptionReply
in interface ServerRequest
protected abstract void marshal_system_exception(java.lang.String repo_id, org.omg.CORBA.SystemException ex)
protected abstract void marshal_forward_request(org.omg.CORBA.Object target, boolean permanent)
protected abstract void marshal_locate_reply(boolean object_is_here)
protected abstract org.omg.CORBA.portable.OutputStream begin_marshal_reply()
protected abstract org.omg.CORBA.portable.OutputStream begin_marshal_user_exception()
protected abstract void complete_reply(org.omg.CORBA.portable.OutputStream os)
protected abstract void release_request()
protected org.apache.avalon.framework.logger.Logger getLogger()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |