Public Member Functions | Friends

LogHost Class Reference

#include <LogHost.h>

Collaboration diagram for LogHost:
Collaboration graph
[legend]

Public Member Functions

 LogHost (const char *object_filename, uint64_t object_signature)
 LogHost (const LogHost &)
 ~LogHost ()
int set_name_or_ipstr (char *name_or_ipstr)
int set_ipstr_port (char *ipstr, unsigned int port)
int set_name_port (char *hostname, unsigned int port)
bool connected (bool ping)
bool connect ()
void disconnect ()
int preproc_and_try_delete (LogBuffer *lb)
void orphan_write_and_try_delete (LogBuffer *lb)
char const * name () const
IpAddr const & ip_addr () const
in_port_t port () const
char const * ipstr () const
void display (FILE *fd=stdout)
LogFileget_orphan_logfile () const
int do_filesystem_checks ()
 LINK (LogHost, link)
 SLINK (LogHost, failover_link)

Friends

class LogCollationClientSM

Detailed Description

Definition at line 36 of file LogHost.h.


Constructor & Destructor Documentation

LogHost::LogHost ( const char *  object_filename,
uint64_t  object_signature 
)

Definition at line 53 of file LogHost.cc.

References LogHost().

Referenced by LogHost().

LogHost::LogHost ( const LogHost rhs  ) 

Definition at line 68 of file LogHost.cc.

References LogHost(), and memcpy.

LogHost::~LogHost (  ) 

Definition at line 84 of file LogHost.cc.

References ats_free().


Member Function Documentation

bool LogHost::connect (  ) 
bool LogHost::connected ( bool  ping  ) 

Definition at line 161 of file LogHost.cc.

References LogSock::is_connected().

Referenced by connect(), and display().

void LogHost::disconnect (  ) 

Definition at line 213 of file LogHost.cc.

References LogSock::close().

Referenced by connect().

void LogHost::display ( FILE *  fd = stdout  ) 

Definition at line 315 of file LogHost.cc.

References connected(), name(), NOPING, and port().

int LogHost::do_filesystem_checks (  )  [inline]

Definition at line 74 of file LogHost.h.

LogFile* LogHost::get_orphan_logfile (  )  const [inline]

Definition at line 72 of file LogHost.h.

Referenced by LogObject::get_file_size_bytes().

IpAddr const& LogHost::ip_addr (  )  const [inline]

Definition at line 66 of file LogHost.h.

Referenced by LogHostList::operator==(), and LogCollationClientSM::send().

char const* LogHost::ipstr (  )  const [inline]

Definition at line 68 of file LogHost.h.

Referenced by LogHostList::operator==().

LogHost::LINK ( LogHost  ,
link   
)
char const* LogHost::name (  )  const [inline]
void LogHost::orphan_write_and_try_delete ( LogBuffer lb  ) 
in_port_t LogHost::port (  )  const [inline]
int LogHost::preproc_and_try_delete ( LogBuffer lb  ) 
int LogHost::set_ipstr_port ( char *  ipstr,
unsigned int  port 
)

Definition at line 117 of file LogHost.cc.

References ats_strdup, Debug, ink_strlcpy(), IpAddr::load(), name(), and Note.

Referenced by set_name_or_ipstr().

int LogHost::set_name_or_ipstr ( char *  name_or_ipstr  ) 
int LogHost::set_name_port ( char *  hostname,
unsigned int  port 
)

Definition at line 98 of file LogHost.cc.

References ats_strdup, Debug, name(), Note, and port().

Referenced by set_name_or_ipstr().

LogHost::SLINK ( LogHost  ,
failover_link   
)

Friends And Related Function Documentation

friend class LogCollationClientSM [friend]

Definition at line 39 of file LogHost.h.

Referenced by preproc_and_try_delete().


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