Main Page | Modules | Class Hierarchy | Class List | File List | Class Members | File Members

Methods for setting and getting


Functions

void ServerConnection::setQueryServer (const std::string &host, int port)
void ServerConnection::setQueryTimeout (int time)
void ServerConnection::setX509Proxy (const std::string &proxy)
void ServerConnection::setX509Cert (const std::string &cert, const std::string &key)
std::pair< std::string, int > ServerConnection::getQueryServer () const
int ServerConnection::getQueryTimeout () const
std::string ServerConnection::getX509Proxy () const
std::pair< std::string, std::string > ServerConnection::getX509Cert () const
void ServerConnection::setQueryJobsLimit (int max)
void ServerConnection::setQueryEventsLimit (int max)

Detailed Description

connection properties.

These methods are used for setting and obtaining various parameters of the communication (timeouts, user certificates, limits). Both general methods (taking the symbolic name of the parameter as an argument) and convenience methods (for some parameters) are provided.

The methods are local, no communication takes place.


Function Documentation

std::pair<std::string, int> ServerConnection::getQueryServer  )  const [inherited]
 

Get address of the bookkeeping server.

Returns address of the bookkeeping server this instance is bound to.

Returns:
Address (hostname,port).
Exceptions:
LoggingException Getting parameter failed.

int ServerConnection::getQueryTimeout  )  const [inherited]
 

Get query timeout.

Returns the time interval this instance waits for server response.

Returns:
Number of seconds to wait.
Exceptions:
LoggingException Getting parameter failed.

std::pair<std::string, std::string> ServerConnection::getX509Cert  )  const [inherited]
 

Get user's X509 certificate.

Returns filenames of the user's full X509 certificate used to authenticate to the server.

Returns:
Pair of (certificate, key) filenames.
Exceptions:
LoggingException Getting parameter failed.

std::string ServerConnection::getX509Proxy  )  const [inherited]
 

Get user's proxy.

Returns filename of the user's X509 proxy certificate used to authenticate to the server.

Returns:
Filename of the proxy certificate.
Exceptions:
LoggingException Getting parameter failed.

void ServerConnection::setQueryEventsLimit int  max  )  [inherited]
 

Set the soft result set size limit.

Sets the maximum number of results this instance is willing to obtain when querying for Events.

Parameters:
max Maximum number of results.
Exceptions:
LoggingException Setting parameter failed.

void ServerConnection::setQueryJobsLimit int  max  )  [inherited]
 

Set the soft result set size limit.

Sets the maximum number of results this instance is willing to obtain when querying for jobs.

Parameters:
max Maximum number of results.
Exceptions:
LoggingException Setting parameter failed.

void ServerConnection::setQueryServer const std::string &  host,
int  port
[inherited]
 

Set bookkeeping server address.

Directs the instance to query the given bookkeping server.

Parameters:
in] host Hostname of the server.
in] port Service port.
Exceptions:
LoggingException Setting parameters failed.

void ServerConnection::setQueryTimeout int  time  )  [inherited]
 

Set query timeout.

Sets the time interval to wait for server response.

Parameters:
in] time Time in seconds before the query expires.
Exceptions:
LoggingException Setting parameters failed.

void ServerConnection::setX509Cert const std::string &  cert,
const std::string &  key
[inherited]
 

Set user's certificate.

Instructs the instance to authenticate to the server using users's full X509 certificate (which is not a good thing).

Parameters:
in] cert Name of file containing the user's certificate.
in] key Name of file containing the user's private key.
Exceptions:
LoggingException Setting parameters failed.

void ServerConnection::setX509Proxy const std::string &  proxy  )  [inherited]
 

Set user's proxy certificate.

Instructs the instance to authenticate to the server using user's X509 proxy certificate.

Parameters:
in] proxy Name of file containing the user's proxy certificate.
Exceptions:
LoggingException Setting paramater failed.


Generated on Thu May 11 20:44:17 2006 for Glite LB Client: CPP - Interface by doxygen 1.3.5