diff options
Diffstat (limited to 'storageapi/src/vespa/storageapi/message/state.h')
-rw-r--r-- | storageapi/src/vespa/storageapi/message/state.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/storageapi/src/vespa/storageapi/message/state.h b/storageapi/src/vespa/storageapi/message/state.h index 86830f86e7b..12a357c1b40 100644 --- a/storageapi/src/vespa/storageapi/message/state.h +++ b/storageapi/src/vespa/storageapi/message/state.h @@ -1,5 +1,9 @@ // Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. - +/** + * @file state.h + * + * State commands. + */ #pragma once #include <vespa/storageapi/messageapi/storagecommand.h> @@ -21,7 +25,9 @@ class GetNodeStateCommand : public StorageCommand { public: explicit GetNodeStateCommand(lib::NodeState::UP expectedState); - const lib::NodeState* getExpectedState() const { return _expectedState.get(); } + const lib::NodeState* getExpectedState() const + { return _expectedState.get(); } + void print(std::ostream& out, bool verbose, const std::string& indent) const override; DECLARE_STORAGECOMMAND(GetNodeStateCommand, onGetNodeState) @@ -65,7 +71,9 @@ class SetSystemStateCommand : public StorageCommand { public: explicit SetSystemStateCommand(const lib::ClusterState&); + const lib::ClusterState& getSystemState() const { return _state; } + void print(std::ostream& out, bool verbose, const std::string& indent) const override; DECLARE_STORAGECOMMAND(SetSystemStateCommand, onSetSystemState) @@ -85,6 +93,7 @@ public: // Not serialized. Available locally const lib::ClusterState& getSystemState() const { return _state; } + void print(std::ostream& out, bool verbose, const std::string& indent) const override; DECLARE_STORAGEREPLY(SetSystemStateReply, onSetSystemStateReply) @@ -92,3 +101,4 @@ public: } // api } // storage + |