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 (ServerVisitor &visitor) const
int64_t getTime () 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 48 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 136 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 154 of file server/server.cpp.

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 83 of file server/server.h.

net::CommandQueue* eq::server::Server::getServerThreadQueue (  )  [inline]
Returns:
the command queue to the server thread

Definition at line 86 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 126 of file server/server.cpp.

int64_t eq::server::Server::getTime (  )  const [inline]
Returns:
the global time in milliseconds.

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

References eq::base::Clock::getTime64().

Here is the call graph for this function:

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

Reimplemented from eq::net::Node.

Definition at line 175 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 187 of file server/server.cpp.


The documentation for this class was generated from the following files:
Generated on Sat Feb 6 13:14:35 2010 for Equalizer 0.9.1 by  doxygen 1.6.1