#include <gridclientshareddata.hpp>
Public Member Functions | |
| GridClientSharedData (const GridClientUuid &pClientId, const GridClientConfiguration &cfg, std::shared_ptr< GridClientCommandExecutorPrivate > exec) | |
| virtual | ~GridClientSharedData () |
| std::string | clientUniqueId () const |
| GridClientUuid & | clientUniqueUuid () |
| GridClientUuid | clientUuid () const |
| TGridClientTopologyPtr | topology () const |
| std::shared_ptr < GridClientCommandExecutorPrivate > | executor () const |
| const TGridClientLoadBalancerPtr | loadBalancer () const |
| const GridClientProtocolConfiguration | protocolCfg () const |
| GridClientProtocol | protocol () const |
| std::vector < GridClientSocketAddress > | servers () const |
| const GridClientConfiguration & | clientConfiguration () const |
Protected Attributes | |
| GridClientUuid | clientId |
| TGridClientTopologyPtr | top |
| GridClientConfiguration | clientCfg |
| std::shared_ptr < GridClientCommandExecutorPrivate > | executor_ |
Common client data.
| GridClientSharedData::GridClientSharedData | ( | const GridClientUuid & | pClientId, | |
| const GridClientConfiguration & | cfg, | |||
| std::shared_ptr< GridClientCommandExecutorPrivate > | exec | |||
| ) | [inline] |
Public constructor.
| pClientId | Client id. | |
| cfg | Grid client configuration. | |
| exec | Command executor. |
| virtual GridClientSharedData::~GridClientSharedData | ( | ) | [inline, virtual] |
Public destructor.
| const GridClientConfiguration& GridClientSharedData::clientConfiguration | ( | ) | const [inline] |
Returns a constant reference to current client configuration.
| std::string GridClientSharedData::clientUniqueId | ( | ) | const [inline] |
Returns the unique id of the client.
| GridClientUuid& GridClientSharedData::clientUniqueUuid | ( | ) | [inline] |
Returns the unique id of the client.
| GridClientUuid GridClientSharedData::clientUuid | ( | ) | const [inline] |
Method for accessing client UUID.
| std::shared_ptr<GridClientCommandExecutorPrivate> GridClientSharedData::executor | ( | ) | const [inline] |
Returns the reference to the command executor - class which allows to execute any client commands based on the configured communication layer.
| const TGridClientLoadBalancerPtr GridClientSharedData::loadBalancer | ( | ) | const [inline] |
Method for retrieving current load balancer.
| GridClientProtocol GridClientSharedData::protocol | ( | ) | const [inline] |
Return protocol currently used.
| const GridClientProtocolConfiguration GridClientSharedData::protocolCfg | ( | ) | const [inline] |
Method for retrieving current protocol configuration.
| std::vector<GridClientSocketAddress> GridClientSharedData::servers | ( | ) | const [inline] |
Get the list of servers, specified by client for initial connection.
| TGridClientTopologyPtr GridClientSharedData::topology | ( | ) | const [inline] |
Returns the actual version of the topology.
Configuration of the client
GridClientUuid GridClientSharedData::clientId [protected] |
Unique Id of the client
std::shared_ptr<GridClientCommandExecutorPrivate> GridClientSharedData::executor_ [protected] |
The main interface for execution of commands via the communication layer.
TGridClientTopologyPtr GridClientSharedData::top [protected] |
Actual version of the topology.
1.7.1