org.omg.FT
Class FTARServerRequestInterceptor
java.lang.Object
|
+--org.omg.CORBA.LocalObject
|
+--org.omg.FT.FTARServerRequestInterceptor
- All Implemented Interfaces:
- org.omg.CORBA.portable.IDLEntity, org.omg.PortableInterceptor.Interceptor, org.omg.PortableInterceptor.InterceptorOperations, org.omg.CORBA.Object, java.io.Serializable, org.omg.PortableInterceptor.ServerRequestInterceptor, org.omg.PortableInterceptor.ServerRequestInterceptorOperations
- public class FTARServerRequestInterceptor
- extends org.omg.CORBA.LocalObject
- implements org.omg.PortableInterceptor.ServerRequestInterceptor
Class instantiated when active replication is used and the corresponding profile is given
It intercepts incoming requests to, an actively replicated group member
- See Also:
- Serialized Form
Method Summary |
private void |
atomic_delivery(int tot_ord_req_id)
|
java.lang.String |
name()
|
private void |
notify_all()
|
void |
receive_request_service_contexts(org.omg.PortableInterceptor.ServerRequestInfo ri)
Method called from a specific interception point, when the active replica group member receives a request from the client (via the gateway)
Operations are performed if the called method is get_state, wait_set_state, activate/deactivate_object,etc. (mainly operations that are not allowed
to reach the application object, because it does not implement those methods |
void |
receive_request(org.omg.PortableInterceptor.ServerRequestInfo ri)
Method called from a specific interception point, when the active replica group member receives a request from the client (via the gateway)
Operations are performed mainly on incoming requests that have to be called on the application object as methods; for active replication
these are dispatched in a total order |
void |
send_exception(org.omg.PortableInterceptor.ServerRequestInfo ri)
Method called from a specific interception point when the replica sends an exception to the client |
void |
send_other(org.omg.PortableInterceptor.ServerRequestInfo ri)
Method called from a specific interception point when the replica sends something similar to an exception to the client |
void |
send_reply(org.omg.PortableInterceptor.ServerRequestInfo ri)
Method called from a specific interception point, when the activelly replicated object group member sends a reply to the client |
private void |
set_meth_table()
|
private void |
set_state_end()
|
private void |
unblock_all_oper_send_exceptions()
|
private void |
wait_set_state()
|
private void |
wait_update_g_s_oper()
|
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, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
Methods inherited from interface org.omg.CORBA.Object |
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_policy, _hash, _is_a, _is_equivalent, _non_existent, _release, _request, _set_policy_override |
info
org.omg.PortableInterceptor.ORBInitInfo info
ft_slot
int ft_slot
location
java.lang.String location
orb
org.omg.CORBA.ORB orb
upd_r_oper_synch
java.lang.Object upd_r_oper_synch
set_state_synch
java.lang.Object set_state_synch
wait_to_be_first
java.lang.Object wait_to_be_first
wait_tot_ord
java.lang.Object wait_tot_ord
wait_for_set_state
boolean wait_for_set_state
get_state_arrived
boolean get_state_arrived
object_deactivated
boolean object_deactivated
ft_dom_name
java.lang.String ft_dom_name
expected_id
int expected_id
nr_to_wait
int nr_to_wait
nr_replies
int nr_replies
thread_vector_s_s
java.util.Vector thread_vector_s_s
method_table
MethSignStr[] method_table
log_rec_ctrl
LoggingRecoveryController log_rec_ctrl
factory
org.omg.IOP.CodecFactory factory
codec
org.omg.IOP.Codec codec
FTARServerRequestInterceptor
public FTARServerRequestInterceptor(org.omg.PortableInterceptor.ORBInitInfo inf,
int ft_s)
- Constructor
- Parameters:
inf
- the ORB info used e.g. to obtain the instance of the ORB on which the CORBA object is running
ft_s the slot of this interceptor
wait_update_g_s_oper
private void wait_update_g_s_oper()
notify_all
private void notify_all()
wait_set_state
private void wait_set_state()
set_state_end
private void set_state_end()
set_meth_table
private void set_meth_table()
unblock_all_oper_send_exceptions
private void unblock_all_oper_send_exceptions()
atomic_delivery
private void atomic_delivery(int tot_ord_req_id)
receive_request_service_contexts
public void receive_request_service_contexts(org.omg.PortableInterceptor.ServerRequestInfo ri)
throws org.omg.PortableInterceptor.ForwardRequest
- Method called from a specific interception point, when the active replica group member receives a request from the client (via the gateway)
Operations are performed if the called method is get_state, wait_set_state, activate/deactivate_object,etc. (mainly operations that are not allowed
to reach the application object, because it does not implement those methods
- Specified by:
receive_request_service_contexts
in interface org.omg.PortableInterceptor.ServerRequestInterceptorOperations
- Parameters:
ri
- the server request information
receive_request
public void receive_request(org.omg.PortableInterceptor.ServerRequestInfo ri)
throws org.omg.PortableInterceptor.ForwardRequest
- Method called from a specific interception point, when the active replica group member receives a request from the client (via the gateway)
Operations are performed mainly on incoming requests that have to be called on the application object as methods; for active replication
these are dispatched in a total order
- Specified by:
receive_request
in interface org.omg.PortableInterceptor.ServerRequestInterceptorOperations
- Parameters:
ri
- the server request information
send_reply
public void send_reply(org.omg.PortableInterceptor.ServerRequestInfo ri)
- Method called from a specific interception point, when the activelly replicated object group member sends a reply to the client
- Specified by:
send_reply
in interface org.omg.PortableInterceptor.ServerRequestInterceptorOperations
- Parameters:
ri
- the server request information
send_exception
public void send_exception(org.omg.PortableInterceptor.ServerRequestInfo ri)
throws org.omg.PortableInterceptor.ForwardRequest
- Method called from a specific interception point when the replica sends an exception to the client
- Specified by:
send_exception
in interface org.omg.PortableInterceptor.ServerRequestInterceptorOperations
- Parameters:
ri
- the server request information
send_other
public void send_other(org.omg.PortableInterceptor.ServerRequestInfo ri)
throws org.omg.PortableInterceptor.ForwardRequest
- Method called from a specific interception point when the replica sends something similar to an exception to the client
- Specified by:
send_other
in interface org.omg.PortableInterceptor.ServerRequestInterceptorOperations
- Parameters:
ri
- the server request information
name
public java.lang.String name()
- Specified by:
name
in interface org.omg.PortableInterceptor.InterceptorOperations