diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2022-05-18 11:05:54 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2022-05-18 11:05:54 +0000 |
commit | 39443ba7ffe7966fb06555ef832f4eff3756c076 (patch) | |
tree | 5e0a2fd6ab79aa6be435551ea307be9750e69227 /searchcore | |
parent | 36df8bd3d9fd4ee60aadd04af89199a8bc504e68 (diff) |
Move state_server, metrivs and some all executors from staging_vespalib too vespalib.
Diffstat (limited to 'searchcore')
21 files changed, 45 insertions, 52 deletions
diff --git a/searchcore/src/vespa/searchcore/proton/attribute/attribute_manager_explorer.h b/searchcore/src/vespa/searchcore/proton/attribute/attribute_manager_explorer.h index 3d9dbda0cbc..3de4779c77a 100644 --- a/searchcore/src/vespa/searchcore/proton/attribute/attribute_manager_explorer.h +++ b/searchcore/src/vespa/searchcore/proton/attribute/attribute_manager_explorer.h @@ -3,7 +3,7 @@ #pragma once #include "i_attribute_manager.h" -#include <vespa/vespalib/net/state_explorer.h> +#include <vespa/vespalib/net/http/state_explorer.h> namespace proton { @@ -19,10 +19,9 @@ public: AttributeManagerExplorer(const proton::IAttributeManager::SP &mgr); ~AttributeManagerExplorer(); - // Implements vespalib::StateExplorer - virtual void get_state(const vespalib::slime::Inserter &inserter, bool full) const override; - virtual std::vector<vespalib::string> get_children_names() const override; - virtual std::unique_ptr<StateExplorer> get_child(vespalib::stringref name) const override; + void get_state(const vespalib::slime::Inserter &inserter, bool full) const override; + std::vector<vespalib::string> get_children_names() const override; + std::unique_ptr<StateExplorer> get_child(vespalib::stringref name) const override; }; } // namespace proton diff --git a/searchcore/src/vespa/searchcore/proton/attribute/attribute_vector_explorer.h b/searchcore/src/vespa/searchcore/proton/attribute/attribute_vector_explorer.h index f0ad134d2f4..204a81ed629 100644 --- a/searchcore/src/vespa/searchcore/proton/attribute/attribute_vector_explorer.h +++ b/searchcore/src/vespa/searchcore/proton/attribute/attribute_vector_explorer.h @@ -3,7 +3,7 @@ #pragma once #include "exclusive_attribute_read_accessor.h" -#include <vespa/vespalib/net/state_explorer.h> +#include <vespa/vespalib/net/http/state_explorer.h> namespace proton { @@ -19,7 +19,7 @@ public: AttributeVectorExplorer(ExclusiveAttributeReadAccessor::UP attribute); // Implements vespalib::StateExplorer - virtual void get_state(const vespalib::slime::Inserter &inserter, bool full) const override; + void get_state(const vespalib::slime::Inserter &inserter, bool full) const override; }; } // namespace proton diff --git a/searchcore/src/vespa/searchcore/proton/bucketdb/bucket_db_explorer.h b/searchcore/src/vespa/searchcore/proton/bucketdb/bucket_db_explorer.h index 898a8579255..71448e6fad1 100644 --- a/searchcore/src/vespa/searchcore/proton/bucketdb/bucket_db_explorer.h +++ b/searchcore/src/vespa/searchcore/proton/bucketdb/bucket_db_explorer.h @@ -3,7 +3,7 @@ #pragma once #include "bucket_db_owner.h" -#include <vespa/vespalib/net/state_explorer.h> +#include <vespa/vespalib/net/http/state_explorer.h> namespace proton { diff --git a/searchcore/src/vespa/searchcore/proton/docsummary/document_store_explorer.h b/searchcore/src/vespa/searchcore/proton/docsummary/document_store_explorer.h index d3530532c36..9675911d111 100644 --- a/searchcore/src/vespa/searchcore/proton/docsummary/document_store_explorer.h +++ b/searchcore/src/vespa/searchcore/proton/docsummary/document_store_explorer.h @@ -3,7 +3,7 @@ #pragma once #include "isummarymanager.h" -#include <vespa/vespalib/net/state_explorer.h> +#include <vespa/vespalib/net/http/state_explorer.h> namespace proton { @@ -18,8 +18,7 @@ private: public: DocumentStoreExplorer(ISummaryManager::SP mgr); - // Implements vespalib::StateExplorer - virtual void get_state(const vespalib::slime::Inserter &inserter, bool full) const override; + void get_state(const vespalib::slime::Inserter &inserter, bool full) const override; }; } // namespace proton diff --git a/searchcore/src/vespa/searchcore/proton/documentmetastore/document_meta_store_explorer.h b/searchcore/src/vespa/searchcore/proton/documentmetastore/document_meta_store_explorer.h index e4aa7aec44b..978fd0b4a14 100644 --- a/searchcore/src/vespa/searchcore/proton/documentmetastore/document_meta_store_explorer.h +++ b/searchcore/src/vespa/searchcore/proton/documentmetastore/document_meta_store_explorer.h @@ -3,7 +3,7 @@ #pragma once #include "i_document_meta_store_context.h" -#include <vespa/vespalib/net/state_explorer.h> +#include <vespa/vespalib/net/http/state_explorer.h> namespace proton { @@ -18,8 +18,7 @@ private: public: DocumentMetaStoreExplorer(IDocumentMetaStoreContext::IReadGuard::UP metaStore); - // Implements vespalib::StateExplorer - virtual void get_state(const vespalib::slime::Inserter &inserter, bool full) const override; + void get_state(const vespalib::slime::Inserter &inserter, bool full) const override; }; } // namespace proton diff --git a/searchcore/src/vespa/searchcore/proton/flushengine/flush_engine_explorer.h b/searchcore/src/vespa/searchcore/proton/flushengine/flush_engine_explorer.h index 27c3f705dcb..0658ba450e3 100644 --- a/searchcore/src/vespa/searchcore/proton/flushengine/flush_engine_explorer.h +++ b/searchcore/src/vespa/searchcore/proton/flushengine/flush_engine_explorer.h @@ -2,7 +2,7 @@ #pragma once -#include <vespa/vespalib/net/state_explorer.h> +#include <vespa/vespalib/net/http/state_explorer.h> namespace proton { @@ -19,8 +19,7 @@ private: public: FlushEngineExplorer(const FlushEngine &engine); - // Implements vespalib::StateExplorer - virtual void get_state(const vespalib::slime::Inserter &inserter, bool full) const override; + void get_state(const vespalib::slime::Inserter &inserter, bool full) const override; }; } // namespace proton diff --git a/searchcore/src/vespa/searchcore/proton/matchengine/matchengine.h b/searchcore/src/vespa/searchcore/proton/matchengine/matchengine.h index 0cce9be0f85..1fe3a7092ef 100644 --- a/searchcore/src/vespa/searchcore/proton/matchengine/matchengine.h +++ b/searchcore/src/vespa/searchcore/proton/matchengine/matchengine.h @@ -6,7 +6,7 @@ #include <vespa/searchcore/proton/common/handlermap.hpp> #include <vespa/searchcore/proton/common/statusreport.h> #include <vespa/searchlib/engine/searchapi.h> -#include <vespa/vespalib/net/state_explorer.h> +#include <vespa/vespalib/net/http/state_explorer.h> #include <vespa/vespalib/util/threadstackexecutor.h> #include <vespa/vespalib/util/simple_thread_bundle.h> #include <mutex> diff --git a/searchcore/src/vespa/searchcore/proton/matching/session_manager_explorer.h b/searchcore/src/vespa/searchcore/proton/matching/session_manager_explorer.h index 19034472ea3..b9c30de6db8 100644 --- a/searchcore/src/vespa/searchcore/proton/matching/session_manager_explorer.h +++ b/searchcore/src/vespa/searchcore/proton/matching/session_manager_explorer.h @@ -2,7 +2,7 @@ #pragma once -#include <vespa/vespalib/net/state_explorer.h> +#include <vespa/vespalib/net/http/state_explorer.h> namespace proton::matching { @@ -18,9 +18,9 @@ private: public: SessionManagerExplorer(const SessionManager &manager) : _manager(manager) {} - virtual void get_state(const vespalib::slime::Inserter &inserter, bool full) const override; - virtual std::vector<vespalib::string> get_children_names() const override; - virtual std::unique_ptr<vespalib::StateExplorer> get_child(vespalib::stringref name) const override; + void get_state(const vespalib::slime::Inserter &inserter, bool full) const override; + std::vector<vespalib::string> get_children_names() const override; + std::unique_ptr<vespalib::StateExplorer> get_child(vespalib::stringref name) const override; }; } diff --git a/searchcore/src/vespa/searchcore/proton/server/document_db_explorer.h b/searchcore/src/vespa/searchcore/proton/server/document_db_explorer.h index b514a5169e7..763a541ecaa 100644 --- a/searchcore/src/vespa/searchcore/proton/server/document_db_explorer.h +++ b/searchcore/src/vespa/searchcore/proton/server/document_db_explorer.h @@ -2,7 +2,7 @@ #pragma once -#include <vespa/vespalib/net/state_explorer.h> +#include <vespa/vespalib/net/http/state_explorer.h> namespace proton { diff --git a/searchcore/src/vespa/searchcore/proton/server/document_subdb_collection_explorer.h b/searchcore/src/vespa/searchcore/proton/server/document_subdb_collection_explorer.h index 47ea6be1711..6aec86e5378 100644 --- a/searchcore/src/vespa/searchcore/proton/server/document_subdb_collection_explorer.h +++ b/searchcore/src/vespa/searchcore/proton/server/document_subdb_collection_explorer.h @@ -3,7 +3,7 @@ #pragma once #include "documentsubdbcollection.h" -#include <vespa/vespalib/net/state_explorer.h> +#include <vespa/vespalib/net/http/state_explorer.h> namespace proton { @@ -18,10 +18,9 @@ private: public: DocumentSubDBCollectionExplorer(const DocumentSubDBCollection &subDbs); - // Implements vespalib::StateExplorer - virtual void get_state(const vespalib::slime::Inserter &inserter, bool full) const override; - virtual std::vector<vespalib::string> get_children_names() const override; - virtual std::unique_ptr<StateExplorer> get_child(vespalib::stringref name) const override; + void get_state(const vespalib::slime::Inserter &inserter, bool full) const override; + std::vector<vespalib::string> get_children_names() const override; + std::unique_ptr<StateExplorer> get_child(vespalib::stringref name) const override; }; } // namespace proton diff --git a/searchcore/src/vespa/searchcore/proton/server/document_subdb_explorer.h b/searchcore/src/vespa/searchcore/proton/server/document_subdb_explorer.h index f23b6b12c6c..61d0d00d69e 100644 --- a/searchcore/src/vespa/searchcore/proton/server/document_subdb_explorer.h +++ b/searchcore/src/vespa/searchcore/proton/server/document_subdb_explorer.h @@ -3,7 +3,7 @@ #pragma once #include "idocumentsubdb.h" -#include <vespa/vespalib/net/state_explorer.h> +#include <vespa/vespalib/net/http/state_explorer.h> namespace proton { @@ -18,10 +18,9 @@ private: public: DocumentSubDBExplorer(const IDocumentSubDB &subDb); - // Implements vespalib::StateExplorer - virtual void get_state(const vespalib::slime::Inserter &inserter, bool full) const override; - virtual std::vector<vespalib::string> get_children_names() const override; - virtual std::unique_ptr<StateExplorer> get_child(vespalib::stringref name) const override; + void get_state(const vespalib::slime::Inserter &inserter, bool full) const override; + std::vector<vespalib::string> get_children_names() const override; + std::unique_ptr<StateExplorer> get_child(vespalib::stringref name) const override; }; } // namespace proton diff --git a/searchcore/src/vespa/searchcore/proton/server/executor_threading_service_explorer.h b/searchcore/src/vespa/searchcore/proton/server/executor_threading_service_explorer.h index f0bb20ab64e..46071027855 100644 --- a/searchcore/src/vespa/searchcore/proton/server/executor_threading_service_explorer.h +++ b/searchcore/src/vespa/searchcore/proton/server/executor_threading_service_explorer.h @@ -2,7 +2,7 @@ #pragma once -#include <vespa/vespalib/net/state_explorer.h> +#include <vespa/vespalib/net/http/state_explorer.h> namespace searchcorespi::index { struct IThreadingService; } namespace proton { diff --git a/searchcore/src/vespa/searchcore/proton/server/health_adapter.h b/searchcore/src/vespa/searchcore/proton/server/health_adapter.h index 59819400027..98abefe3860 100644 --- a/searchcore/src/vespa/searchcore/proton/server/health_adapter.h +++ b/searchcore/src/vespa/searchcore/proton/server/health_adapter.h @@ -3,7 +3,7 @@ #pragma once #include <vespa/searchcore/proton/common/statusreport.h> -#include <vespa/vespalib/net/health_producer.h> +#include <vespa/vespalib/net/http/health_producer.h> namespace proton { @@ -14,7 +14,7 @@ private: public: HealthAdapter(const StatusProducer &sp); - virtual Health getHealth() const override; + Health getHealth() const override; }; } // namespace proton diff --git a/searchcore/src/vespa/searchcore/proton/server/hw_info_explorer.h b/searchcore/src/vespa/searchcore/proton/server/hw_info_explorer.h index 22c7163e662..f374bc0d678 100644 --- a/searchcore/src/vespa/searchcore/proton/server/hw_info_explorer.h +++ b/searchcore/src/vespa/searchcore/proton/server/hw_info_explorer.h @@ -3,7 +3,7 @@ #pragma once #include <vespa/searchcore/proton/common/hw_info.h> -#include <vespa/vespalib/net/state_explorer.h> +#include <vespa/vespalib/net/http/state_explorer.h> namespace proton { @@ -18,7 +18,7 @@ private: public: HwInfoExplorer(const HwInfo& info); - virtual void get_state(const vespalib::slime::Inserter& inserter, bool full) const override; + void get_state(const vespalib::slime::Inserter& inserter, bool full) const override; }; } diff --git a/searchcore/src/vespa/searchcore/proton/server/maintenance_controller_explorer.h b/searchcore/src/vespa/searchcore/proton/server/maintenance_controller_explorer.h index e7b28232df5..76aef09e58c 100644 --- a/searchcore/src/vespa/searchcore/proton/server/maintenance_controller_explorer.h +++ b/searchcore/src/vespa/searchcore/proton/server/maintenance_controller_explorer.h @@ -3,7 +3,7 @@ #pragma once #include "maintenancejobrunner.h" -#include <vespa/vespalib/net/state_explorer.h> +#include <vespa/vespalib/net/http/state_explorer.h> namespace proton { diff --git a/searchcore/src/vespa/searchcore/proton/server/proton.cpp b/searchcore/src/vespa/searchcore/proton/server/proton.cpp index b5e70a540ec..c6e352e6df7 100644 --- a/searchcore/src/vespa/searchcore/proton/server/proton.cpp +++ b/searchcore/src/vespa/searchcore/proton/server/proton.cpp @@ -37,7 +37,7 @@ #include <vespa/searchlib/transactionlog/translogserverapp.h> #include <vespa/searchlib/util/fileheadertk.h> #include <vespa/vespalib/io/fileutil.h> -#include <vespa/vespalib/net/state_server.h> +#include <vespa/vespalib/net/http/state_server.h> #include <vespa/vespalib/util/blockingthreadstackexecutor.h> #include <vespa/vespalib/util/cpu_usage.h> #include <vespa/vespalib/util/host_name.h> diff --git a/searchcore/src/vespa/searchcore/proton/server/proton.h b/searchcore/src/vespa/searchcore/proton/server/proton.h index 2407f8335da..6e154159ecc 100644 --- a/searchcore/src/vespa/searchcore/proton/server/proton.h +++ b/searchcore/src/vespa/searchcore/proton/server/proton.h @@ -19,11 +19,11 @@ #include <vespa/searchcore/proton/persistenceengine/ipersistenceengineowner.h> #include <vespa/searchlib/common/fileheadercontext.h> #include <vespa/searchlib/engine/monitorapi.h> -#include <vespa/vespalib/net/component_config_producer.h> -#include <vespa/vespalib/net/generic_state_handler.h> -#include <vespa/vespalib/net/json_get_handler.h> -#include <vespa/vespalib/net/json_handler_repo.h> -#include <vespa/vespalib/net/state_explorer.h> +#include <vespa/vespalib/net/http/component_config_producer.h> +#include <vespa/vespalib/net/http/generic_state_handler.h> +#include <vespa/vespalib/net/http/json_get_handler.h> +#include <vespa/vespalib/net/http/json_handler_repo.h> +#include <vespa/vespalib/net/http/state_explorer.h> #include <vespa/vespalib/util/varholder.h> #include <vespa/vespalib/util/cpu_usage.h> #include <mutex> diff --git a/searchcore/src/vespa/searchcore/proton/server/proton_configurer.h b/searchcore/src/vespa/searchcore/proton/server/proton_configurer.h index ddb9c1bed92..0ccf1b1a348 100644 --- a/searchcore/src/vespa/searchcore/proton/server/proton_configurer.h +++ b/searchcore/src/vespa/searchcore/proton/server/proton_configurer.h @@ -6,7 +6,7 @@ #include "i_proton_configurer.h" #include <vespa/document/bucket/bucketspace.h> #include <vespa/searchcore/proton/common/doctypename.h> -#include <vespa/vespalib/net/simple_component_config_producer.h> +#include <vespa/vespalib/net/http/simple_component_config_producer.h> #include <vespa/vespalib/util/monitored_refcount.h> #include <map> #include <mutex> diff --git a/searchcore/src/vespa/searchcore/proton/server/proton_thread_pools_explorer.h b/searchcore/src/vespa/searchcore/proton/server/proton_thread_pools_explorer.h index 2cacdd2c336..2891309fb89 100644 --- a/searchcore/src/vespa/searchcore/proton/server/proton_thread_pools_explorer.h +++ b/searchcore/src/vespa/searchcore/proton/server/proton_thread_pools_explorer.h @@ -2,7 +2,7 @@ #pragma once -#include <vespa/vespalib/net/state_explorer.h> +#include <vespa/vespalib/net/http/state_explorer.h> namespace vespalib { class ISequencedTaskExecutor; diff --git a/searchcore/src/vespa/searchcore/proton/server/resource_usage_explorer.h b/searchcore/src/vespa/searchcore/proton/server/resource_usage_explorer.h index 0c36b19b7ad..64da36807a1 100644 --- a/searchcore/src/vespa/searchcore/proton/server/resource_usage_explorer.h +++ b/searchcore/src/vespa/searchcore/proton/server/resource_usage_explorer.h @@ -2,7 +2,7 @@ #pragma once -#include <vespa/vespalib/net/state_explorer.h> +#include <vespa/vespalib/net/http/state_explorer.h> namespace proton { @@ -22,7 +22,7 @@ public: ResourceUsageExplorer(const DiskMemUsageFilter& usage_filter, const ResourceUsageTracker& usage_tracker); - virtual void get_state(const vespalib::slime::Inserter &inserter, bool full) const override; + void get_state(const vespalib::slime::Inserter &inserter, bool full) const override; }; } // namespace proton diff --git a/searchcore/src/vespa/searchcorespi/index/index_manager_explorer.h b/searchcore/src/vespa/searchcorespi/index/index_manager_explorer.h index 3e52199eeda..90b0bd55615 100644 --- a/searchcore/src/vespa/searchcorespi/index/index_manager_explorer.h +++ b/searchcore/src/vespa/searchcorespi/index/index_manager_explorer.h @@ -3,7 +3,7 @@ #pragma once #include "iindexmanager.h" -#include <vespa/vespalib/net/state_explorer.h> +#include <vespa/vespalib/net/http/state_explorer.h> namespace searchcorespi { @@ -18,8 +18,7 @@ private: public: IndexManagerExplorer(IIndexManager::SP mgr); - // Implements vespalib::StateExplorer - virtual void get_state(const vespalib::slime::Inserter &inserter, bool full) const override; + void get_state(const vespalib::slime::Inserter &inserter, bool full) const override; }; } // namespace searchcorespi |