GlobalObjects
|
An object of this class serves as interface between Manager and Base or PrivateBase. More...
#include <GloServerThread.h>
Public Member Functions | |
ServerThread (Server::TcpServerReceiverTransmitter *pTcpServerReceiverTransmitter) | |
~ServerThread () | |
virtual int | assignDBManager (OrderMsg *pOrderMsg) override |
Manager * | DBManager () |
Server::TcpServerReceiverTransmitter * | getTcpServerReceiverTransmitter () |
virtual int | takeOverResult (OrderMsg *pOrderMsg) override |
bool | operator== (const ServerThread &rT) const |
bool | operator!= (const ServerThread &rT) const |
Public Member Functions inherited from glo::Communicator | |
Communicator () | |
virtual | ~Communicator () |
std::string | getClientName () const |
const std::string & | getClientNameAsRef () |
unsigned int | getCommunicatorID () const |
virtual void | setClientName (const std::string &rstrClientName) |
virtual void | setCommunicatorID (unsigned int uiID) |
bool | operator== (const Communicator &rT) const |
bool | operator!= (const Communicator &rT) const |
Public Member Functions inherited from eut::RepeatingThread | |
RepeatingThread () | |
virtual | ~RepeatingThread () |
virtual void | cancel () |
virtual void | finishBreak () |
int | getBreakCounter () |
bool | isInExclusiveAccess () const |
void | setExclusiveAccess () |
void | signalInput () |
virtual int | start () |
RepeatingThread::STATUS | status () const |
virtual void | takeABreak () |
bool | testCancel () |
void | unsetExclusiveAccess () |
void | waitForInput () |
Protected Member Functions | |
virtual void | processServerMsg (OrderMsg *pOrderMsg) const override |
virtual int | sendToDBManager (OrderMsg *pOrderMsg) const override |
Protected Member Functions inherited from glo::Communicator | |
virtual void | work () override |
Protected Member Functions inherited from eut::RepeatingThread | |
ORDER | getOrder () |
STATUS | getStatus () |
void | setStatus (STATUS eStatus) |
void | threadWork () |
void | toOrder (ORDER eOrder) |
Private Member Functions | |
ServerThread () | |
ServerThread (const ServerThread &) | |
ServerThread & | operator= (ServerThread &) |
Private Attributes | |
Manager * | m_pDBManager |
Server::TcpServerReceiverTransmitter * | m_pTcpServerReceiverTransmitter |
Additional Inherited Members | |
Public Types inherited from eut::RepeatingThread | |
enum | EuTHREADERROR { EuTHREAD_ERR_NO_THREAD = -10301 , EuTHREAD_ERR_THREAD_ALREADY_WORKING = -10302 , EuTHREAD_ERR_THREAD_BREAK_COUNT_LESS_THAN_ZERO = -10303 , EuTHREAD_ERR_UNKNOWN = -10400 } |
Error range = -10301 to -10400 More... | |
enum | ORDER { eUNDEFINED , eDO_WORK , eEXIT } |
enum | STATUS { eAT_THE_START , eWORKING , ePAUSING , eENDING , eCOMPLETED } |
Public Attributes inherited from eut::RepeatingThread | |
std::string | m_strDebugInfo |
Protected Attributes inherited from glo::Communicator | |
unsigned int | m_uiOrderCounter |
An object of this class serves as interface between Manager and Base or PrivateBase.
Sends information of the Manager to connected clients.
The remote peer is the ClientThread via the TCP communicators.
|
private |
The standard constructor is not available.
glo::ServerThread::ServerThread | ( | Server::TcpServerReceiverTransmitter * | pTcpServerReceiverTransmitter | ) |
Constructor with parameter passing.
[in] | pTcpServerReceiverTransmitter | Is required because the TCP communication is handled by this server reader writer. |
eut::ErrorNException | An exception is thrown if an error occurs. |
glo::ServerThread::~ServerThread | ( | ) |
Destructor.
|
private |
The copy constructor is not available.
|
overridevirtual |
Sends a job to the Manager and waits for response.
[in] | pOrderMsg | The order for the Manager. |
Reimplemented from glo::Communicator.
Manager * glo::ServerThread::DBManager | ( | ) |
Returns pointers to its Manager.
Server::TcpServerReceiverTransmitter * glo::ServerThread::getTcpServerReceiverTransmitter | ( | ) |
Returns pointers to its TcpServerReceiverTransmitter, which receives or sends the packets.
bool glo::ServerThread::operator!= | ( | const ServerThread & | rT | ) | const |
Comparison operator.
[in] | rT | The object to be compared with this one. |
|
private |
The assignment operator is not available.
bool glo::ServerThread::operator== | ( | const ServerThread & | rT | ) | const |
Comparison operator.
[in] | rT | The object to be compared with this one. |
|
overrideprotectedvirtual |
Processes an order, e.g. from the Manager or a request to transmit information from monitored objects by sending the order or information to the client via TcpServerReceiverTransmitter
[in] | pOrderMsg | The order to be sent. |
Reimplemented from glo::Communicator.
|
overrideprotectedvirtual |
Passes an order directly to the Manager.
[in] | pOrderMsg | The order for the Manager. |
Implements glo::Communicator.
|
overridevirtual |
Adopts a message into its message queue for processing.
[in] | pOrderMsg | The message to be processed. |
Reimplemented from glo::Communicator.
|
private |
The TcpServerReceiverTransmitter, which receives and sends the packets.