Class AdminAPIBase

java.lang.Object
org.apache.solr.api.JerseyResource
org.apache.solr.handler.admin.api.AdminAPIBase
Direct Known Subclasses:
AddReplicaProperty, AliasProperty, BackupAPIBase, BalanceReplicas, BalanceShardUnique, ClusterProperty, CollectionProperty, CollectionStatus, CreateAlias, CreateCollection, CreateCollectionSnapshot, CreateReplica, CreateShard, DeleteAlias, DeleteCollection, DeleteCollectionSnapshot, DeleteNode, DeleteReplica, DeleteReplicaProperty, DeleteShard, ForceLeader, InstallShardData, ListAliases, ListCollections, ListCollectionSnapshots, MigrateReplicas, ReloadCollectionAPI, RenameCollection, ReplaceNode, SyncShard, ZookeeperRead

public abstract class AdminAPIBase extends JerseyResource
A common parent for "admin" (i.e. container-level) APIs.
  • Field Details

  • Constructor Details

  • Method Details

    • fetchAndValidateZooKeeperAwareCoreContainer

      protected CoreContainer fetchAndValidateZooKeeperAwareCoreContainer()
    • resolveAndValidateAliasIfEnabled

      protected String resolveAndValidateAliasIfEnabled(String unresolvedCollectionName, boolean aliasResolutionEnabled)
    • validateZooKeeperAwareCoreContainer

      public static void validateZooKeeperAwareCoreContainer(CoreContainer coreContainer)
    • resolveCollectionName

      protected String resolveCollectionName(String collName, boolean followAliases)
    • recordCollectionForLogAndTracing

      public static void recordCollectionForLogAndTracing(String collection, SolrQueryRequest solrQueryRequest)
      TODO Taken from CollectionsHandler.handleRequestBody, but its unclear where (if ever) this gets cleared.
    • disableResponseCaching

      public void disableResponseCaching()
    • submitRemoteMessageAndHandleResponse

      protected org.apache.solr.client.solrj.SolrResponse submitRemoteMessageAndHandleResponse(SubResponseAccumulatingJerseyResponse response, org.apache.solr.common.params.CollectionParams.CollectionAction action, org.apache.solr.common.cloud.ZkNodeProps remoteMessage, String asyncId) throws Exception
      Throws:
      Exception
    • insertIfNotNull

      protected static void insertIfNotNull(Map<String,Object> destination, String key, Object value)