TAO_Implementation_Repository  2.3.3
Public Types | Public Member Functions | Private Attributes | Friends | List of all members
Replicator Class Reference

XML backing store containing all ImR persistent information in multiple files shared between multiple Locators. More...

#include <Replicator.h>

Inheritance diagram for Replicator:
Inheritance graph
[legend]
Collaboration diagram for Replicator:
Collaboration graph
[legend]

Public Types

typedef ImplementationRepository::UpdatePushNotification_var Replica_var
 
typedef ImplementationRepository::UpdatePushNotification_ptr Replica_ptr
 
typedef ACE_Hash_Map_Manager_Ex< ACE_CString, ImplementationRepository::AAM_Status, ACE_Hash< ACE_CString >, ACE_Equal_To< ACE_CString >, ACE_Null_MutexAAM_StatusMap
 
- Public Types inherited from ACE_Event_Handler
typedef long Reference_Count
 

Public Member Functions

 Replicator (Shared_Backing_Store &repo, const Options &opts)
 
virtual ~Replicator (void)
 
virtual int svc (void)
 
virtual int handle_exception (ACE_HANDLE)
 
void stop (void)
 
void send_access_state (const char *name, ImplementationRepository::AAM_Status state)
 
void send_entity (ImplementationRepository::UpdateInfo &info)
 
void init_orb (void)
 
bool init_peer (const ACE_CString &filename)
 
int send_registration (char *&ior)
 
bool peer_available (void)
 
char * ior (void)
 
- Public Member Functions inherited from ACE_Task_Base
 ACE_Task_Base (ACE_Thread_Manager *=0)
 
virtual ~ACE_Task_Base (void)
 
virtual int open (void *args=0)
 
virtual int close (u_long flags=0)
 
virtual int module_closed (void)
 
virtual int put (ACE_Message_Block *, ACE_Time_Value *=0)
 
virtual int activate (long flags=THR_NEW_LWP|THR_JOINABLE|THR_INHERIT_SCHED, int n_threads=1, int force_active=0, long priority=ACE_DEFAULT_THREAD_PRIORITY, int grp_id=-1, ACE_Task_Base *task=0, ACE_hthread_t thread_handles[]=0, void *stack[]=0, size_t stack_size[]=0, ACE_thread_t thread_ids[]=0, const char *thr_name[]=0)
 
virtual int wait (void)
 
virtual int suspend (void)
 
virtual int resume (void)
 
int grp_id (void) const
 
void grp_id (int)
 
ACE_Thread_Managerthr_mgr (void) const
 
void thr_mgr (ACE_Thread_Manager *)
 
int is_reader (void) const
 
int is_writer (void) const
 
size_t thr_count (void) const
 
ACE_thread_t last_thread (void) const
 
- Public Member Functions inherited from ACE_Service_Object
 ACE_Service_Object (ACE_Reactor *=0)
 
virtual ~ACE_Service_Object (void)
 
- Public Member Functions inherited from ACE_Event_Handler
virtual ~ACE_Event_Handler (void)
 
virtual ACE_HANDLE get_handle (void) const
 
virtual void set_handle (ACE_HANDLE)
 
virtual int priority (void) const
 
virtual void priority (int priority)
 
virtual int handle_input (ACE_HANDLE fd=ACE_INVALID_HANDLE)
 
virtual int handle_output (ACE_HANDLE fd=ACE_INVALID_HANDLE)
 
virtual int handle_timeout (const ACE_Time_Value &current_time, const void *act=0)
 
virtual int handle_exit (ACE_Process *)
 
virtual int handle_close (ACE_HANDLE handle, ACE_Reactor_Mask close_mask)
 
virtual int handle_signal (int signum, siginfo_t *=0, ucontext_t *=0)
 
virtual int resume_handler (void)
 
virtual int handle_qos (ACE_HANDLE=ACE_INVALID_HANDLE)
 
virtual int handle_group_qos (ACE_HANDLE=ACE_INVALID_HANDLE)
 
virtual void reactor (ACE_Reactor *reactor)
 
virtual ACE_Reactorreactor (void) const
 
virtual ACE_Reactor_Timer_Interfacereactor_timer_interface (void) const
 
virtual Reference_Count add_reference (void)
 
virtual Reference_Count remove_reference (void)
 
Reference_Counting_Policyreference_counting_policy (void)
 
- Public Member Functions inherited from ACE_Shared_Object
 ACE_Shared_Object (void)
 
virtual ~ACE_Shared_Object (void)
 
virtual int init (int argc, ACE_TCHAR *argv[])
 
virtual int fini (void)
 
virtual int info (ACE_TCHAR **info_string, size_t length=0) const
 

Private Attributes

Replica_var me_
 
Replica_var peer_
 
CORBA::ULongLong seq_num_
 
CORBA::ULongLong replica_seq_num_
 
Shared_Backing_Storerepo_
 
AAM_StatusMap prev_update_
 
CORBA::ORB_var orb_
 
ACE_Reactorreactor_
 
TAO_SYNCH_MUTEX lock_
 
bool notified_
 
ImplementationRepository::UpdateInfoSeq to_send_
 
int debug_
 
ACE_CString endpoint_
 
ACE_Time_Value update_delay_
 

Friends

class UPN_i
 

Additional Inherited Members

- Static Public Member Functions inherited from ACE_Task_Base
static ACE_THR_FUNC_RETURN svc_run (void *)
 
static void cleanup (void *object, void *params)
 
- Static Public Member Functions inherited from ACE_Event_Handler
static ACE_THR_FUNC_RETURN read_adapter (void *event_handler)
 
static int register_stdin_handler (ACE_Event_Handler *eh, ACE_Reactor *reactor, ACE_Thread_Manager *thr_mgr, int flags=THR_DETACHED)
 
static int remove_stdin_handler (ACE_Reactor *reactor, ACE_Thread_Manager *thr_mgr)
 
- Public Attributes inherited from ACE_Event_Handler
 LO_PRIORITY
 
 HI_PRIORITY
 
 NULL_MASK
 
 READ_MASK
 
 WRITE_MASK
 
 EXCEPT_MASK
 
 ACCEPT_MASK
 
 CONNECT_MASK
 
 TIMER_MASK
 
 QOS_MASK
 
 GROUP_QOS_MASK
 
 SIGNAL_MASK
 
 ALL_EVENTS_MASK
 
 RWE_MASK
 
 DONT_CALL
 
 ACE_EVENT_HANDLER_NOT_RESUMED
 
 ACE_REACTOR_RESUMES_HANDLER
 
 ACE_APPLICATION_RESUMES_HANDLER
 
- Protected Types inherited from ACE_Event_Handler
typedef ACE_Atomic_Op< ACE_SYNCH_MUTEX, Reference_CountAtomic_Reference_Count
 
- Protected Member Functions inherited from ACE_Event_Handler
 ACE_Event_Handler (ACE_Reactor *=0, int priority=ACE_Event_Handler::LO_PRIORITY)
 
- Protected Attributes inherited from ACE_Task_Base
size_t thr_count_
 
ACE_Thread_Managerthr_mgr_
 
u_long flags_
 
int grp_id_
 
ACE_thread_t last_thread_id_
 
- Protected Attributes inherited from ACE_Event_Handler
Atomic_Reference_Count reference_count_
 

Detailed Description

XML backing store containing all ImR persistent information in multiple files shared between multiple Locators.

Member Typedef Documentation

typedef ImplementationRepository::UpdatePushNotification_ptr Replicator::Replica_ptr
typedef ImplementationRepository::UpdatePushNotification_var Replicator::Replica_var

Constructor & Destructor Documentation

Replicator::Replicator ( Shared_Backing_Store repo,
const Options opts 
)
Replicator::~Replicator ( void  )
virtual

Member Function Documentation

int Replicator::handle_exception ( ACE_HANDLE  )
virtual

Reimplemented from ACE_Event_Handler.

void Replicator::init_orb ( void  )
bool Replicator::init_peer ( const ACE_CString filename)
char * Replicator::ior ( void  )
bool Replicator::peer_available ( void  )
void Replicator::send_access_state ( const char *  name,
ImplementationRepository::AAM_Status  state 
)
void Replicator::send_entity ( ImplementationRepository::UpdateInfo &  info)
int Replicator::send_registration ( char *&  ior)
void Replicator::stop ( void  )
int Replicator::svc ( void  )
virtual

Reimplemented from ACE_Task_Base.

Friends And Related Function Documentation

friend class UPN_i
friend

Member Data Documentation

int Replicator::debug_
private
ACE_CString Replicator::endpoint_
private
TAO_SYNCH_MUTEX Replicator::lock_
private
Replica_var Replicator::me_
private
bool Replicator::notified_
private
CORBA::ORB_var Replicator::orb_
private
Replica_var Replicator::peer_
private
AAM_StatusMap Replicator::prev_update_
private
ACE_Reactor* Replicator::reactor_
private
CORBA::ULongLong Replicator::replica_seq_num_
private
Shared_Backing_Store& Replicator::repo_
private
CORBA::ULongLong Replicator::seq_num_
private
ImplementationRepository::UpdateInfoSeq Replicator::to_send_
private
ACE_Time_Value Replicator::update_delay_
private

The documentation for this class was generated from the following files: