eq::server::Server Class Reference

The Equalizer server. More...

#include <server.h>

Inheritance diagram for eq::server::Server:

Inheritance graph
[legend]
Collaboration diagram for eq::server::Server:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Server ()
 Constructs a new Server.
bool run ()
 Runs the server.
void registerConfig (Config *config)
void addConfig (Config *config)
 Add a new config to this server.
bool removeConfig (Config *config)
 Remove a config from this config.
const ConfigVector & getConfigs () const
net::CommandQueuegetServerThreadQueue ()
VisitorResult accept (ServerVisitor &visitor)
 Traverse this server and all children using a server visitor.
VisitorResult accept (ConstServerVisitor &) const

Protected Member Functions

virtual bool dispatchCommand (net::Command &command)
virtual net::CommandResult invokeCommand (net::Command &command)


Detailed Description

The Equalizer server.

Definition at line 49 of file server/server.h.


Member Function Documentation

bool eq::server::Server::run (  ) 

Runs the server.

Returns:
true if the server did run successfully, false if not.

Definition at line 132 of file server/server.cpp.

References eq::base::disableFlush(), eq::base::enableFlush(), EQERROR, EQINFO, eq::base::exdent(), eq::net::Node::getState(), eq::base::indent(), and eq::net::Node::STATE_LISTENING.

Here is the call graph for this function:

void eq::server::Server::addConfig ( Config config  ) 

Add a new config to this server.

Parameters:
config the config.

Definition at line 150 of file server/server.cpp.

References eq::server::Config::_server.

bool eq::server::Server::removeConfig ( Config config  ) 

Remove a config from this config.

Parameters:
config the config
Returns:
true if the config was removed, false otherwise.

const ConfigVector& eq::server::Server::getConfigs (  )  const [inline]

Returns:
the vector of configurations.

Definition at line 84 of file server/server.h.

net::CommandQueue* eq::server::Server::getServerThreadQueue (  )  [inline]

Returns:
the command queue to the server thread

Definition at line 87 of file server/server.h.

VisitorResult eq::server::Server::accept ( ServerVisitor visitor  ) 

Traverse this server and all children using a server visitor.

Parameters:
visitor the visitor.
Returns:
the result of the visitor traversal.

Definition at line 122 of file server/server.cpp.

bool eq::server::Server::dispatchCommand ( net::Command command  )  [protected, virtual]

See also:
net::Node::dispatchCommand

Reimplemented from eq::net::Node.

Definition at line 171 of file server/server.cpp.

net::CommandResult eq::server::Server::invokeCommand ( net::Command command  )  [protected, virtual]

See also:
net::Node::invokeCommand

Reimplemented from eq::net::Node.

Definition at line 183 of file server/server.cpp.


The documentation for this class was generated from the following files:
Generated on Mon Aug 10 18:58:45 2009 for Equalizer 0.9 by  doxygen 1.5.8