CarobNS::ControllerInfo Class Reference

Identifies a controller. More...

#include <ConnectionParameters.hpp>

List of all members.

Public Member Functions

 ControllerInfo ()
 Empty constructor to set default values (host="" and port=0).
 ControllerInfo (const ControllerInfo &ci)
 Copy contructor.
 ControllerInfo (const std::wstring &host, in_port_t port)
 Constructs a Controller info with the given name and port.
ControllerInfooperator= (const ControllerInfo &ci)
 Copy operator.
bool operator== (const ControllerInfo &ci) const
 Comparison operator.
bool operator< (const ControllerInfo &ci) const
 Utility lesser than operator for ControllerPoolManager For performance purposes, the comparison is done first on host_port, then on host_name.
bool operator> (const ControllerInfo &ci) const
 Utility greater than operator for ControllerPoolManager For performance purposes, the comparison is done first on host_port, then on host_name.
std::wstring getHostName () const
 Gives the host name.
in_port_t getHostPort () const
 Gives the host port.
 operator std::wstring () const
 Cast to wstring operator to ease printing (for debug/traces).


Detailed Description

Identifies a controller.

For now a controller is identified by an hostname and a port. TODO: In the future, only its sockaddr should be kept (see CAROB-61)


Member Function Documentation

CarobNS::ControllerInfo::operator std::wstring (  )  const

Cast to wstring operator to ease printing (for debug/traces).

Returns:
sql query as a string


The documentation for this class was generated from the following file:
Generated on Tue Oct 24 09:05:38 2006 for Carob by  doxygen 1.5.0