aboutsummaryrefslogtreecommitdiffstats
path: root/storageapi
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2021-01-18 12:48:23 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2021-01-18 12:48:23 +0000
commit908c551a7dd02303beed75878a8a5eba7d3ed911 (patch)
tree172f997f6db8071808ae37d20fb625dbdc0dc74c /storageapi
parent63ae63e1751179b30858936126506cefb40c0f22 (diff)
Improve readability.
Diffstat (limited to 'storageapi')
-rw-r--r--storageapi/src/vespa/storageapi/messageapi/messagehandler.h281
1 files changed, 73 insertions, 208 deletions
diff --git a/storageapi/src/vespa/storageapi/messageapi/messagehandler.h b/storageapi/src/vespa/storageapi/messageapi/messagehandler.h
index 27ee509e859..fd0087d6f91 100644
--- a/storageapi/src/vespa/storageapi/messageapi/messagehandler.h
+++ b/storageapi/src/vespa/storageapi/messageapi/messagehandler.h
@@ -15,8 +15,7 @@
#include <memory>
-namespace storage {
-namespace api {
+namespace storage::api {
// Commands
@@ -120,215 +119,81 @@ class RemoveLocationReply;
class MessageHandler {
public:
- // Basic operations
- virtual bool onGet(const std::shared_ptr<api::GetCommand>&)
- { return false; }
- virtual bool onGetReply(const std::shared_ptr<api::GetReply>&)
- { return false; }
- virtual bool onPut(const std::shared_ptr<api::PutCommand>&)
- { return false; }
- virtual bool onPutReply(const std::shared_ptr<api::PutReply>&)
- { return false; }
- virtual bool onUpdate(const std::shared_ptr<api::UpdateCommand>&)
- { return false; }
- virtual bool onUpdateReply(const std::shared_ptr<api::UpdateReply>&)
- { return false; }
- virtual bool onRemove(const std::shared_ptr<api::RemoveCommand>&)
- { return false; }
- virtual bool onRemoveReply(const std::shared_ptr<api::RemoveReply>&)
- { return false; }
- virtual bool onRevert(const std::shared_ptr<api::RevertCommand>&)
- { return false; }
- virtual bool onRevertReply(const std::shared_ptr<api::RevertReply>&)
- { return false; }
-
- // Visiting
- virtual bool onCreateVisitor(
- const std::shared_ptr<api::CreateVisitorCommand>&)
- { return false; }
- virtual bool onCreateVisitorReply(
- const std::shared_ptr<api::CreateVisitorReply>&)
- { return false; }
- virtual bool onDestroyVisitor(
- const std::shared_ptr<api::DestroyVisitorCommand>&)
- { return false; }
- virtual bool onDestroyVisitorReply(
- const std::shared_ptr<api::DestroyVisitorReply>&)
- { return false; }
- virtual bool onVisitorInfo(
- const std::shared_ptr<api::VisitorInfoCommand>&)
- { return false; }
- virtual bool onVisitorInfoReply(
- const std::shared_ptr<api::VisitorInfoReply>&)
- { return false; }
- virtual bool onMapVisitor(
- const std::shared_ptr<api::MapVisitorCommand>&)
- { return false; }
- virtual bool onMapVisitorReply(
- const std::shared_ptr<api::MapVisitorReply>&)
- { return false; }
- virtual bool onSearchResult(
- const std::shared_ptr<api::SearchResultCommand>&)
- { return false; }
- virtual bool onSearchResultReply(
- const std::shared_ptr<api::SearchResultReply>&)
- { return false; }
- virtual bool onQueryResult(
- const std::shared_ptr<api::QueryResultCommand>&)
- { return false; }
- virtual bool onQueryResultReply(
- const std::shared_ptr<api::QueryResultReply>&)
- { return false; }
- virtual bool onDocumentSummary(
- const std::shared_ptr<api::DocumentSummaryCommand>&)
- { return false; }
- virtual bool onDocumentSummaryReply(
- const std::shared_ptr<api::DocumentSummaryReply>&)
- { return false; }
- virtual bool onEmptyBuckets(
- const std::shared_ptr<api::EmptyBucketsCommand>&)
- { return false; }
- virtual bool onEmptyBucketsReply(
- const std::shared_ptr<api::EmptyBucketsReply>&)
- { return false; }
-
-
- virtual bool onInternal(const std::shared_ptr<api::InternalCommand>&)
- { return false; }
- virtual bool onInternalReply(
- const std::shared_ptr<api::InternalReply>&)
- { return false; }
-
- virtual bool onCreateBucket(
- const std::shared_ptr<api::CreateBucketCommand>&)
- { return false; }
- virtual bool onCreateBucketReply(
- const std::shared_ptr<api::CreateBucketReply>&)
- { return false; }
- virtual bool onDeleteBucket(
- const std::shared_ptr<api::DeleteBucketCommand>&)
- { return false; }
- virtual bool onDeleteBucketReply(
- const std::shared_ptr<api::DeleteBucketReply>&)
- { return false; }
- virtual bool onMergeBucket(
- const std::shared_ptr<api::MergeBucketCommand>&)
- { return false; }
- virtual bool onMergeBucketReply(
- const std::shared_ptr<api::MergeBucketReply>&)
- { return false; }
- virtual bool onGetBucketDiff(
- const std::shared_ptr<api::GetBucketDiffCommand>&)
- { return false; }
- virtual bool onGetBucketDiffReply(
- const std::shared_ptr<api::GetBucketDiffReply>&)
- { return false; }
- virtual bool onApplyBucketDiff(
- const std::shared_ptr<api::ApplyBucketDiffCommand>&)
- { return false; }
- virtual bool onApplyBucketDiffReply(
- const std::shared_ptr<api::ApplyBucketDiffReply>&)
- { return false; }
- virtual bool onSplitBucket(
- const std::shared_ptr<api::SplitBucketCommand>&)
- { return false; }
- virtual bool onSplitBucketReply(
- const std::shared_ptr<api::SplitBucketReply>&)
- { return false; }
- virtual bool onJoinBuckets(
- const std::shared_ptr<api::JoinBucketsCommand>&)
- { return false; }
- virtual bool onJoinBucketsReply(
- const std::shared_ptr<api::JoinBucketsReply>&)
- { return false; }
- virtual bool onSetBucketState(
- const std::shared_ptr<api::SetBucketStateCommand>&)
- { return false; }
- virtual bool onSetBucketStateReply(
- const std::shared_ptr<api::SetBucketStateReply>&)
- { return false; }
-
- virtual bool onRequestBucketInfo(
- const std::shared_ptr<api::RequestBucketInfoCommand>&)
- { return false; }
- virtual bool onRequestBucketInfoReply(
- const std::shared_ptr<api::RequestBucketInfoReply>&)
- { return false; }
- virtual bool onNotifyBucketChange(
- const std::shared_ptr<api::NotifyBucketChangeCommand>&)
- { return false; }
- virtual bool onNotifyBucketChangeReply(
- const std::shared_ptr<api::NotifyBucketChangeReply>&)
- { return false; }
- virtual bool onSetNodeState(
- const std::shared_ptr<api::SetNodeStateCommand>&)
- { return false; }
- virtual bool onSetNodeStateReply(
- const std::shared_ptr<api::SetNodeStateReply>&)
- { return false; }
- virtual bool onGetNodeState(
- const std::shared_ptr<api::GetNodeStateCommand>&)
- { return false; }
- virtual bool onGetNodeStateReply(
- const std::shared_ptr<api::GetNodeStateReply>&)
- { return false; }
- virtual bool onSetSystemState(
- const std::shared_ptr<api::SetSystemStateCommand>&)
- { return false; }
- virtual bool onSetSystemStateReply(
- const std::shared_ptr<api::SetSystemStateReply>&)
- { return false; }
- virtual bool onActivateClusterStateVersion(
- const std::shared_ptr<api::ActivateClusterStateVersionCommand>&)
- { return false; }
- virtual bool onActivateClusterStateVersionReply(
- const std::shared_ptr<api::ActivateClusterStateVersionReply>&)
- { return false; }
- virtual bool onGetSystemState(
- const std::shared_ptr<api::GetSystemStateCommand>&)
- { return false; }
- virtual bool onGetSystemStateReply(
- const std::shared_ptr<api::GetSystemStateReply>&)
- { return false; }
- virtual bool onBucketsAdded(
- const std::shared_ptr<api::BucketsAddedCommand>&)
- { return false; }
- virtual bool onBucketsAddedReply(
- const std::shared_ptr<api::BucketsAddedReply>&)
- { return false; }
- virtual bool onBucketsRemoved(
- const std::shared_ptr<api::BucketsRemovedCommand>&)
- { return false; }
- virtual bool onBucketsRemovedReply(
- const std::shared_ptr<api::BucketsRemovedReply>&)
- { return false; }
-
- virtual bool onStatBucket(
- const std::shared_ptr<api::StatBucketCommand>&)
- { return false; }
- virtual bool onStatBucketReply(
- const std::shared_ptr<api::StatBucketReply>&)
- { return false; }
-
- virtual bool onGetBucketList(
- const std::shared_ptr<api::GetBucketListCommand>&)
- { return false; }
- virtual bool onGetBucketListReply(
- const std::shared_ptr<api::GetBucketListReply>&)
- { return false; }
-
- virtual bool onRemoveLocation(
- const std::shared_ptr<api::RemoveLocationCommand>&)
- { return false; }
-
- virtual bool onRemoveLocationReply(
- const std::shared_ptr<api::RemoveLocationReply>&)
- { return false; }
+ // Basic operations
+ virtual bool onGet(const std::shared_ptr<api::GetCommand>&) { return false; }
+ virtual bool onGetReply(const std::shared_ptr<api::GetReply>&) { return false; }
+ virtual bool onPut(const std::shared_ptr<api::PutCommand>&) { return false; }
+ virtual bool onPutReply(const std::shared_ptr<api::PutReply>&) { return false; }
+ virtual bool onUpdate(const std::shared_ptr<api::UpdateCommand>&) { return false; }
+ virtual bool onUpdateReply(const std::shared_ptr<api::UpdateReply>&) { return false; }
+ virtual bool onRemove(const std::shared_ptr<api::RemoveCommand>&) { return false; }
+ virtual bool onRemoveReply(const std::shared_ptr<api::RemoveReply>&) { return false; }
+ virtual bool onRevert(const std::shared_ptr<api::RevertCommand>&) { return false; }
+ virtual bool onRevertReply(const std::shared_ptr<api::RevertReply>&) { return false; }
+
+ // Visiting
+ virtual bool onCreateVisitor(const std::shared_ptr<api::CreateVisitorCommand>&) { return false; }
+ virtual bool onCreateVisitorReply(const std::shared_ptr<api::CreateVisitorReply>&) { return false; }
+ virtual bool onDestroyVisitor(const std::shared_ptr<api::DestroyVisitorCommand>&) { return false; }
+ virtual bool onDestroyVisitorReply(const std::shared_ptr<api::DestroyVisitorReply>&) { return false; }
+ virtual bool onVisitorInfo(const std::shared_ptr<api::VisitorInfoCommand>&) { return false; }
+ virtual bool onVisitorInfoReply(const std::shared_ptr<api::VisitorInfoReply>&) { return false; }
+ virtual bool onMapVisitor(const std::shared_ptr<api::MapVisitorCommand>&) { return false; }
+ virtual bool onMapVisitorReply(const std::shared_ptr<api::MapVisitorReply>&) { return false; }
+ virtual bool onSearchResult(const std::shared_ptr<api::SearchResultCommand>&) { return false; }
+ virtual bool onSearchResultReply(const std::shared_ptr<api::SearchResultReply>&) { return false; }
+ virtual bool onQueryResult(const std::shared_ptr<api::QueryResultCommand>&) { return false; }
+ virtual bool onQueryResultReply(const std::shared_ptr<api::QueryResultReply>&) { return false; }
+ virtual bool onDocumentSummary(const std::shared_ptr<api::DocumentSummaryCommand>&) { return false; }
+ virtual bool onDocumentSummaryReply(const std::shared_ptr<api::DocumentSummaryReply>&) { return false; }
+ virtual bool onEmptyBuckets(const std::shared_ptr<api::EmptyBucketsCommand>&) { return false; }
+ virtual bool onEmptyBucketsReply(const std::shared_ptr<api::EmptyBucketsReply>&) { return false; }
+ virtual bool onInternal(const std::shared_ptr<api::InternalCommand>&) { return false; }
+ virtual bool onInternalReply(const std::shared_ptr<api::InternalReply>&) { return false; }
+ virtual bool onCreateBucket(const std::shared_ptr<api::CreateBucketCommand>&) { return false; }
+ virtual bool onCreateBucketReply(const std::shared_ptr<api::CreateBucketReply>&) { return false; }
+ virtual bool onDeleteBucket(const std::shared_ptr<api::DeleteBucketCommand>&) { return false; }
+ virtual bool onDeleteBucketReply(const std::shared_ptr<api::DeleteBucketReply>&) { return false; }
+ virtual bool onMergeBucket(const std::shared_ptr<api::MergeBucketCommand>&) { return false; }
+ virtual bool onMergeBucketReply(const std::shared_ptr<api::MergeBucketReply>&) { return false; }
+ virtual bool onGetBucketDiff(const std::shared_ptr<api::GetBucketDiffCommand>&) { return false; }
+ virtual bool onGetBucketDiffReply(const std::shared_ptr<api::GetBucketDiffReply>&) { return false; }
+ virtual bool onApplyBucketDiff(const std::shared_ptr<api::ApplyBucketDiffCommand>&) { return false; }
+ virtual bool onApplyBucketDiffReply(const std::shared_ptr<api::ApplyBucketDiffReply>&) { return false; }
+ virtual bool onSplitBucket(const std::shared_ptr<api::SplitBucketCommand>&) { return false; }
+ virtual bool onSplitBucketReply(const std::shared_ptr<api::SplitBucketReply>&) { return false; }
+ virtual bool onJoinBuckets(const std::shared_ptr<api::JoinBucketsCommand>&) { return false; }
+ virtual bool onJoinBucketsReply(const std::shared_ptr<api::JoinBucketsReply>&) { return false; }
+ virtual bool onSetBucketState(const std::shared_ptr<api::SetBucketStateCommand>&) { return false; }
+ virtual bool onSetBucketStateReply(const std::shared_ptr<api::SetBucketStateReply>&) { return false; }
+ virtual bool onRequestBucketInfo(const std::shared_ptr<api::RequestBucketInfoCommand>&) { return false; }
+ virtual bool onRequestBucketInfoReply(const std::shared_ptr<api::RequestBucketInfoReply>&) { return false; }
+ virtual bool onNotifyBucketChange(const std::shared_ptr<api::NotifyBucketChangeCommand>&) { return false; }
+ virtual bool onNotifyBucketChangeReply(const std::shared_ptr<api::NotifyBucketChangeReply>&) { return false; }
+ virtual bool onSetNodeState(const std::shared_ptr<api::SetNodeStateCommand>&) { return false; }
+ virtual bool onSetNodeStateReply(const std::shared_ptr<api::SetNodeStateReply>&) { return false; }
+ virtual bool onGetNodeState(const std::shared_ptr<api::GetNodeStateCommand>&) { return false; }
+ virtual bool onGetNodeStateReply(const std::shared_ptr<api::GetNodeStateReply>&) { return false; }
+ virtual bool onSetSystemState(const std::shared_ptr<api::SetSystemStateCommand>&) { return false; }
+ virtual bool onSetSystemStateReply(const std::shared_ptr<api::SetSystemStateReply>&) { return false; }
+ virtual bool onActivateClusterStateVersion(const std::shared_ptr<api::ActivateClusterStateVersionCommand>&) { return false; }
+ virtual bool onActivateClusterStateVersionReply(const std::shared_ptr<api::ActivateClusterStateVersionReply>&) { return false; }
+ virtual bool onGetSystemState(const std::shared_ptr<api::GetSystemStateCommand>&) { return false; }
+ virtual bool onGetSystemStateReply(const std::shared_ptr<api::GetSystemStateReply>&) { return false; }
+ virtual bool onBucketsAdded(const std::shared_ptr<api::BucketsAddedCommand>&) { return false; }
+ virtual bool onBucketsAddedReply(const std::shared_ptr<api::BucketsAddedReply>&) { return false; }
+ virtual bool onBucketsRemoved(const std::shared_ptr<api::BucketsRemovedCommand>&) { return false; }
+ virtual bool onBucketsRemovedReply(const std::shared_ptr<api::BucketsRemovedReply>&) { return false; }
+ virtual bool onStatBucket(const std::shared_ptr<api::StatBucketCommand>&) { return false; }
+ virtual bool onStatBucketReply(const std::shared_ptr<api::StatBucketReply>&) { return false; }
+ virtual bool onGetBucketList(const std::shared_ptr<api::GetBucketListCommand>&) { return false; }
+ virtual bool onGetBucketListReply(const std::shared_ptr<api::GetBucketListReply>&) { return false; }
+ virtual bool onRemoveLocation(const std::shared_ptr<api::RemoveLocationCommand>&) { return false; }
+ virtual bool onRemoveLocationReply(const std::shared_ptr<api::RemoveLocationReply>&) { return false; }
virtual ~MessageHandler() {}
};
#undef ON_M
-} // api
-} // storage
+}