TAO_Implementation_Repository  2.3.3
Public Member Functions | Static Public Member Functions | Private Types | Private Attributes | Static Private Attributes | List of all members
LiveEntry Class Reference

#include <LiveCheck.h>

Collaboration diagram for LiveEntry:
Collaboration graph
[legend]

Public Member Functions

 LiveEntry (LiveCheck *owner, const char *server, bool may_ping, ImplementationRepository::ServerObject_ptr ref)
 
 ~LiveEntry (void)
 
void release_callback (void)
 
void add_listener (LiveListener *ll)
 
void remove_listener (LiveListener *ll)
 
LiveStatus status (void) const
 
void status (LiveStatus l)
 
void reset_status (void)
 
void update_listeners (void)
 
bool validate_ping (bool &want_reping, ACE_Time_Value &next)
 
void do_ping (PortableServer::POA_ptr poa)
 
const ACE_Time_Valuenext_check (void) const
 
bool reping_available (void)
 
int next_reping (void)
 
void max_retry_msec (int max)
 
const char * server_name (void) const
 

Static Public Member Functions

static const ACE_TCHARstatus_name (LiveStatus s)
 the current state value as text More...
 
static void set_reping_limit (int max)
 

Private Types

typedef ACE_Unbounded_Set< LiveListener_ptrListen_Set
 

Private Attributes

LiveCheckowner_
 
ACE_CString server_
 
ImplementationRepository::ServerObject_var ref_
 
LiveStatus liveliness_
 
ACE_Time_Value next_check_
 
int repings_
 
int max_retry_
 
bool may_ping_
 
Listen_Set listeners_
 
TAO_SYNCH_MUTEX lock_
 
PortableServer::ServantBase_var callback_
 

Static Private Attributes

static const int reping_msec_ [] = {10, 100, 500, 1000, 1000, 2000, 2000, 5000, 5000}
 
static int reping_limit_ = sizeof (LiveEntry::reping_msec_) / sizeof (int)
 

Member Typedef Documentation

Constructor & Destructor Documentation

LiveEntry::LiveEntry ( LiveCheck owner,
const char *  server,
bool  may_ping,
ImplementationRepository::ServerObject_ptr  ref 
)
LiveEntry::~LiveEntry ( void  )

Member Function Documentation

void LiveEntry::add_listener ( LiveListener ll)
void LiveEntry::do_ping ( PortableServer::POA_ptr  poa)
void LiveEntry::max_retry_msec ( int  max)
const ACE_Time_Value & LiveEntry::next_check ( void  ) const
int LiveEntry::next_reping ( void  )
void LiveEntry::release_callback ( void  )
void LiveEntry::remove_listener ( LiveListener ll)
bool LiveEntry::reping_available ( void  )
void LiveEntry::reset_status ( void  )
const char * LiveEntry::server_name ( void  ) const
void LiveEntry::set_reping_limit ( int  max)
static
LiveStatus LiveEntry::status ( void  ) const
void LiveEntry::status ( LiveStatus  l)
const ACE_TCHAR * LiveEntry::status_name ( LiveStatus  s)
static

the current state value as text

void LiveEntry::update_listeners ( void  )
bool LiveEntry::validate_ping ( bool &  want_reping,
ACE_Time_Value next 
)

Member Data Documentation

PortableServer::ServantBase_var LiveEntry::callback_
private
Listen_Set LiveEntry::listeners_
private
LiveStatus LiveEntry::liveliness_
private
TAO_SYNCH_MUTEX LiveEntry::lock_
private
int LiveEntry::max_retry_
private
bool LiveEntry::may_ping_
private
ACE_Time_Value LiveEntry::next_check_
private
LiveCheck* LiveEntry::owner_
private
ImplementationRepository::ServerObject_var LiveEntry::ref_
private
int LiveEntry::reping_limit_ = sizeof (LiveEntry::reping_msec_) / sizeof (int)
staticprivate
const int LiveEntry::reping_msec_ = {10, 100, 500, 1000, 1000, 2000, 2000, 5000, 5000}
staticprivate
int LiveEntry::repings_
private
ACE_CString LiveEntry::server_
private

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