The command line interface for the tool. More...
#include <Loop.h>

Public Member Functions | |
| Loop (Endpoint *endpoint, LogBuffer *logBuffer) | |
| Construct a new Loop object. More... | |
| void | Run () |
| Run the command loop. More... | |
Private Member Functions | |
| data::Variant | ConvertToVariant (const std::string &value) |
| Convert a string parameter to a variant. More... | |
| bool | ExecuteCommand (const std::string &command) |
| Execute a command given by the user. More... | |
| void | ExecuteEventCommand (const Command &command) |
| Execute an 'event' command. More... | |
| void | ExecuteGetCommand (const Command &command) |
| Execute an 'get' command. More... | |
| void | ExecuteInfoCommand (const Command &command) |
| Execute an 'info' command. More... | |
| void | ExecuteLogCommand (const Command &command) |
| Execute an 'log' command. More... | |
| void | ExecuteMembersCommand (const Command &command) |
| Execute a 'members' command. More... | |
| void | ExecutePingCommand (const Command &command) |
| Execute a 'ping' command. More... | |
| void | ExecuteRediscoverCommand (const Command &command) |
| Execute an 'rediscover' command. More... | |
| void | ExecuteSelectCommand (const Command &command) |
| Execute a 'select' command. More... | |
| void | ExecuteSetCommand (const Command &command) |
| Execute an 'set' command. More... | |
| void | ExecuteSubscribeCommand (const Command &command) |
| Execute a 'subscribe' command. More... | |
| void | ExecuteSubscriptionsCommand (const Command &command) |
| Execute a 'subscriptions' command. More... | |
| void | ExecuteUnsubscribeCommand (const Command &command) |
| Execute an 'unsubscribe' command. More... | |
| std::string | GetPrompt () |
| Build prompt string. More... | |
| virtual void | NodeWasDiscovered (const Node *node) noexceptoverride |
| Called when a new Node has been discovered. More... | |
Private Member Functions inherited from swarmio::profiles::ClientProfile | |
| virtual void | CachedDiscoveryResponseWasUpdated (const Node *node, const data::discovery::Response &response) override |
| Receives notifications when discovery information becomes available. More... | |
| ClientProfile (Endpoint *endpoint) | |
| Construct a new ClientProfile. More... | |
| virtual | ~ClientProfile () override |
| Destructor. More... | |
Private Member Functions inherited from swarmio::profiles::Profile | |
| swarmio::services::discovery::Service & | GetDiscoveryService () |
| Get a reference for the Discovery service. More... | |
| swarmio::services::ping::Service & | GetPingService () |
| Get a reference for the Ping service. More... | |
| swarmio::services::telemetry::Service & | GetTelemetryService () |
| Get a reference for the Telemetry service. More... | |
| virtual | ~Profile () |
| Destroy the Profile object. More... | |
| Profile (Endpoint *endpoint, bool performActiveDiscovery) | |
| Construct a new Profile. More... | |
Private Member Functions inherited from swarmio::Mailbox | |
| virtual void | Disconnect () |
| Disconnect this Mailbox from the Endpoint. More... | |
| Endpoint * | GetEndpoint () |
| Get the associated Endpoint. More... | |
| Mailbox (const Mailbox &)=delete | |
| Remove copy constructor. More... | |
| virtual void | MailboxWasConnected () noexcept |
| Called when the mailbox is attached to an already running endpoint or if the attached endpoint has just started. More... | |
| virtual void | MailboxWillBeDisconnected () noexcept |
| Called right before the mailbox is disconnected from its endpoint or if the attached endpoint is about to stop. More... | |
| virtual void | NodeDidJoin (const Node *node) noexcept |
| Called when a new Node has joined the group. More... | |
| virtual void | NodeWillLeave (const Node *node) noexcept |
| Called when a Node signals that it will leave. More... | |
| Mailbox & | operator= (const Mailbox &)=delete |
| Remove assignment operator. More... | |
| virtual bool | ReceiveMessage (const Node *sender, const data::Message *message) |
| Delivery point of all messages. More... | |
| virtual | ~Mailbox () |
| Destroy the Mailbox object. More... | |
| void | FinishConstruction () |
| Called when the last constructor has finished its job. More... | |
| void | FinishMovingTo (Mailbox *other) |
| Called when message handling should be passed onto the new instance. More... | |
| Mailbox () | |
| Construct a disconnected Mailbox. More... | |
| Mailbox (Endpoint *endpoint) | |
| Construct a new Mailbox object. More... | |
| Mailbox (Mailbox &&other) | |
| Move a Mailbox object. More... | |
Private Attributes | |
| LogBuffer * | _logBuffer = nullptr |
| Log buffer. More... | |
| std::mutex | _mutex |
| Mutex to protect nodes vector. More... | |
| std::vector< const Node * > | _nodes |
| Nodes and their indices. More... | |
| replxx::Replxx | _repl |
| REPL interface. More... | |
| const Node * | _selectedNode = nullptr |
| Selected node. More... | |
| std::list< services::telemetry::UpdateAwaiter > | _subscriptions |
| Currently held subscriptions. More... | |
Private Attributes inherited from swarmio::profiles::Profile | |
| swarmio::services::discovery::Service | _discoveryService |
| Discovery service. More... | |
| swarmio::services::ping::Service | _pingService |
| Ping service. More... | |
| swarmio::services::telemetry::Service | _telemetryService |
| Telemetry service. More... | |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
overrideprivatevirtualnoexcept |
Called when a new Node has been discovered.
| node | The node that has been discovered |
Reimplemented from swarmio::Mailbox.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |