#include <ServerAllocator.hpp>
Instanciador de anna::comm::Server se usa para poder instanciar distintos tipos de anna::comm::Server desde la clase anna::comm::Host.
- See also
- Host::createServer
-
Server
◆ ServerAllocator() [1/2]
anna::comm::ServerAllocator::ServerAllocator |
( |
const std::string & |
name, |
|
|
const Host & |
host, |
|
|
const int |
remotePort, |
|
|
const bool |
autoRecovery, |
|
|
TransportFactory * |
transportFactory = NULL , |
|
|
const bool |
ignoreIncomingMessages = false |
|
) |
| |
|
inline |
Constructor. Recoge los parametros con los que crear el servidor.
- Parameters
-
name | Nombre logico del servidor. |
host | Instancia de la maquina sobre la que esta atendiento peticiones. |
remotePort | Puerto sobre el que atiende peticiones. |
autoRecovery | Indica si en caso de caida se debe intentar la recuperacion automatica de la conexion. |
transportFactory | Factoria de protocolos de transporte usada por los ClientSocket asociados a este proceso servidor. |
ignoreIncomingMessages | Indicador de ignorar mensajes entrantes. |
const int a_remotePort
Definition: ServerAllocator.hpp:105
const bool a_ignoreIncomingMessages
Definition: ServerAllocator.hpp:108
bool autoRecovery() const
Definition: ServerAllocator.hpp:87
bool a_autoRecovery
Definition: ServerAllocator.hpp:106
TransportFactory * a_transportFactory
Definition: ServerAllocator.hpp:107
const Host & a_host
Definition: ServerAllocator.hpp:104
const std::string a_name
Definition: ServerAllocator.hpp:103
◆ ServerAllocator() [2/2]
anna::comm::ServerAllocator::ServerAllocator |
( |
const ServerAllocator & |
other | ) |
|
|
inline |
Constructor copia.
- Parameters
-
other | Instanciador del que copiar. |
const int a_remotePort
Definition: ServerAllocator.hpp:105
const bool a_ignoreIncomingMessages
Definition: ServerAllocator.hpp:108
bool a_autoRecovery
Definition: ServerAllocator.hpp:106
TransportFactory * a_transportFactory
Definition: ServerAllocator.hpp:107
const Host & a_host
Definition: ServerAllocator.hpp:104
const std::string a_name
Definition: ServerAllocator.hpp:103
◆ ~ServerAllocator()
virtual anna::comm::ServerAllocator::~ServerAllocator |
( |
| ) |
|
|
inlinevirtual |
◆ apply()
virtual Server* anna::comm::ServerAllocator::apply |
( |
| ) |
const |
|
virtual |
◆ autoRecovery()
bool anna::comm::ServerAllocator::autoRecovery |
( |
| ) |
const |
|
inline |
Indica si se ha indicado que en caso de caida se debe intentar la recuperacion automatica de la conexion.
- Returns
- true si se ha indicado que en caso de caida se debe intentar la recuperacion automatica de la conexion o false en caso contrario.
bool a_autoRecovery
Definition: ServerAllocator.hpp:106
◆ getIgnoreIncomingMessages()
bool anna::comm::ServerAllocator::getIgnoreIncomingMessages |
( |
| ) |
const |
|
inline |
Devuelve true si el indicador que ignora los mensajes entrantes está activo, o false en otro caso.
- Returns
- true si el indicador que ignora los mensajes entrantes está activo, o false en otro caso.
const bool a_ignoreIncomingMessages
Definition: ServerAllocator.hpp:108
◆ getName()
const std::string& anna::comm::ServerAllocator::getName |
( |
| ) |
const |
|
inline |
Devuelve el nombre logico del servidor.
- Returns
- el nombre logico del servidor.
const std::string a_name
Definition: ServerAllocator.hpp:103
◆ getRemotePort()
int anna::comm::ServerAllocator::getRemotePort |
( |
| ) |
const |
|
inline |
Devuelve el puerto sobre el que atiende peticiones.
- Returns
- el puerto sobre el que atiende peticiones.
const int a_remotePort
Definition: ServerAllocator.hpp:105
◆ a_autoRecovery
bool anna::comm::ServerAllocator::a_autoRecovery |
|
protected |
◆ a_host
const Host& anna::comm::ServerAllocator::a_host |
|
protected |
◆ a_ignoreIncomingMessages
const bool anna::comm::ServerAllocator::a_ignoreIncomingMessages |
|
protected |
◆ a_name
const std::string anna::comm::ServerAllocator::a_name |
|
protected |
◆ a_remotePort
const int anna::comm::ServerAllocator::a_remotePort |
|
protected |
◆ a_transportFactory
The documentation for this class was generated from the following file: