Package org.apache.solr.handler.admin
Class ZookeeperRead
java.lang.Object
org.apache.solr.api.JerseyResource
org.apache.solr.handler.admin.api.AdminAPIBase
org.apache.solr.handler.admin.ZookeeperRead
- All Implemented Interfaces:
ZooKeeperReadApis
v2 API definition exposing read-content in Zookeeper.
This is an expert feature that exposes the data inside the back end zookeeper.This API may change or be removed in future versions. This is not a public API. The data that is returned is not guaranteed to remain same across releases, as the data stored in Zookeeper may change from time to time.
- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
Field Summary
Fields inherited from class org.apache.solr.handler.admin.api.AdminAPIBase
coreContainer, solrQueryRequest, solrQueryResponseFields inherited from class org.apache.solr.api.JerseyResource
containerRequestContext -
Constructor Summary
ConstructorsConstructorDescriptionZookeeperRead(CoreContainer coreContainer, SolrQueryRequest req, SolrQueryResponse rsp) -
Method Summary
Modifier and TypeMethodDescriptionstatic ZooKeeperStatcreateAnnotatedStatFrom(org.apache.zookeeper.data.Stat stat) List the children of a certain zookeeper znodejakarta.ws.rs.core.StreamingOutputRequest contents of a znode, except security.jsonjakarta.ws.rs.core.StreamingOutputRequest contents of the security.json nodeMethods inherited from class org.apache.solr.handler.admin.api.AdminAPIBase
disableResponseCaching, fetchAndValidateZooKeeperAwareCoreContainer, insertIfNotNull, recordCollectionForLogAndTracing, resolveAndValidateAliasIfEnabled, resolveCollectionName, submitRemoteMessageAndHandleResponse, validateZooKeeperAwareCoreContainerMethods inherited from class org.apache.solr.api.JerseyResource
ensureRequiredParameterProvided, ensureRequiredRequestBodyProvided, instantiateJerseyResponse, instantiateJerseyResponse
-
Constructor Details
-
ZookeeperRead
@Inject public ZookeeperRead(CoreContainer coreContainer, SolrQueryRequest req, SolrQueryResponse rsp)
-
-
Method Details
-
readNode
Request contents of a znode, except security.json- Specified by:
readNodein interfaceZooKeeperReadApis
-
readSecurityJsonNode
public jakarta.ws.rs.core.StreamingOutput readSecurityJsonNode()Request contents of the security.json node- Specified by:
readSecurityJsonNodein interfaceZooKeeperReadApis
-
listNodes
public ZooKeeperListChildrenResponse listNodes(String zkPath, Boolean includeChildren) throws Exception List the children of a certain zookeeper znode- Specified by:
listNodesin interfaceZooKeeperReadApis- Throws:
Exception
-
createAnnotatedStatFrom
-