Package org.apache.solr.handler
Class ClusterAPI
- java.lang.Object
-
- org.apache.solr.handler.ClusterAPI
-
public class ClusterAPI extends Object
All V2 APIs that have a prefix of /api/cluster/
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
ClusterAPI.Commands
class
ClusterAPI.ConfigSetCommands
static class
ClusterAPI.RoleInfo
-
Field Summary
Fields Modifier and Type Field Description ClusterAPI.Commands
commands
ClusterAPI.ConfigSetCommands
configSetCommands
-
Constructor Summary
Constructors Constructor Description ClusterAPI(CollectionsHandler ch, ConfigSetsHandler configSetsHandler)
-
Method Summary
-
-
-
Field Detail
-
commands
public final ClusterAPI.Commands commands
-
configSetCommands
public final ClusterAPI.ConfigSetCommands configSetCommands
-
-
Constructor Detail
-
ClusterAPI
public ClusterAPI(CollectionsHandler ch, ConfigSetsHandler configSetsHandler)
-
-
Method Detail
-
roles
public void roles(SolrQueryRequest req, SolrQueryResponse rsp) throws Exception
- Throws:
Exception
-
nodesWithRole
public void nodesWithRole(SolrQueryRequest req, SolrQueryResponse rsp) throws Exception
- Throws:
Exception
-
rolesForNode
public void rolesForNode(SolrQueryRequest req, SolrQueryResponse rsp) throws Exception
- Throws:
Exception
-
supportedRoles
public void supportedRoles(SolrQueryRequest req, SolrQueryResponse rsp) throws Exception
- Throws:
Exception
-
nodesWithRoleMode
public void nodesWithRoleMode(SolrQueryRequest req, SolrQueryResponse rsp) throws Exception
- Throws:
Exception
-
getNodesByRole
public static List<String> getNodesByRole(NodeRoles.Role role, String mode, DistribStateManager zk) throws InterruptedException, IOException, org.apache.zookeeper.KeeperException
- Throws:
InterruptedException
IOException
org.apache.zookeeper.KeeperException
-
aliases
public void aliases(SolrQueryRequest req, SolrQueryResponse rsp) throws Exception
- Throws:
Exception
-
getOverseerStatus
public void getOverseerStatus(SolrQueryRequest req, SolrQueryResponse rsp) throws Exception
- Throws:
Exception
-
getCluster
public void getCluster(SolrQueryRequest req, SolrQueryResponse rsp) throws Exception
- Throws:
Exception
-
deleteCommandStatus
public void deleteCommandStatus(SolrQueryRequest req, SolrQueryResponse rsp) throws Exception
- Throws:
Exception
-
flushCommandStatus
public void flushCommandStatus(SolrQueryRequest req, SolrQueryResponse rsp) throws Exception
- Throws:
Exception
-
deleteConfigSet
public void deleteConfigSet(SolrQueryRequest req, SolrQueryResponse rsp) throws Exception
- Throws:
Exception
-
listConfigSet
public void listConfigSet(SolrQueryRequest req, SolrQueryResponse rsp) throws Exception
- Throws:
Exception
-
uploadConfigSet
public void uploadConfigSet(SolrQueryRequest req, SolrQueryResponse rsp) throws Exception
- Throws:
Exception
-
insertIntoConfigSet
public void insertIntoConfigSet(SolrQueryRequest req, SolrQueryResponse rsp) throws Exception
- Throws:
Exception
-
wrapParams
public static SolrQueryRequest wrapParams(SolrQueryRequest req, Object... def)
-
wrapParams
public static SolrQueryRequest wrapParams(SolrQueryRequest req, Map<String,Object> m)
-
getCommandStatus
public void getCommandStatus(SolrQueryRequest req, SolrQueryResponse rsp) throws Exception
- Throws:
Exception
-
getNodes
public void getNodes(SolrQueryRequest req, SolrQueryResponse rsp)
-
-