public class Overseer extends Object implements SolrCloseable
Modifier and Type | Class and Description |
---|---|
static class |
Overseer.OverseerThread |
Modifier and Type | Field and Description |
---|---|
static int |
NUM_RESPONSES_TO_STORE |
static String |
OVERSEER_ELECT |
static String |
QUEUE_OPERATION |
static int |
STATE_UPDATE_BATCH_SIZE |
static int |
STATE_UPDATE_DELAY |
static int |
STATE_UPDATE_MAX_QUEUE |
Constructor and Description |
---|
Overseer(HttpShardHandler shardHandler,
UpdateShardHandler updateShardHandler,
String adminPath,
ZkStateReader reader,
ZkController zkController,
CloudConfig config) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
CoreContainer |
getCoreContainer() |
SolrCloudManager |
getSolrCloudManager() |
Stats |
getStats() |
Overseer.OverseerThread |
getTriggerThread()
For tests.
|
Overseer.OverseerThread |
getUpdaterThread()
For tests.
|
ZkStateReader |
getZkStateReader() |
boolean |
isClosed() |
static boolean |
isLegacy(ClusterStateProvider clusterStateProvider) |
static boolean |
isLegacy(ZkStateReader stateReader) |
void |
offerStateUpdate(byte[] data) |
void |
start(String id) |
void |
systemCollectionCompatCheck(BiConsumer<String,Object> consumer) |
public static final String QUEUE_OPERATION
public static final int STATE_UPDATE_DELAY
public static final int STATE_UPDATE_BATCH_SIZE
public static final int STATE_UPDATE_MAX_QUEUE
public static final int NUM_RESPONSES_TO_STORE
public static final String OVERSEER_ELECT
public Overseer(HttpShardHandler shardHandler, UpdateShardHandler updateShardHandler, String adminPath, ZkStateReader reader, ZkController zkController, CloudConfig config) throws org.apache.zookeeper.KeeperException, InterruptedException
org.apache.zookeeper.KeeperException
InterruptedException
public void start(String id)
public void systemCollectionCompatCheck(BiConsumer<String,Object> consumer)
public Stats getStats()
public CoreContainer getCoreContainer()
public SolrCloudManager getSolrCloudManager()
public Overseer.OverseerThread getUpdaterThread()
public Overseer.OverseerThread getTriggerThread()
public void close()
close
in interface Closeable
close
in interface AutoCloseable
public boolean isClosed()
isClosed
in interface SolrCloseable
public static boolean isLegacy(ZkStateReader stateReader)
public static boolean isLegacy(ClusterStateProvider clusterStateProvider)
public ZkStateReader getZkStateReader()
public void offerStateUpdate(byte[] data) throws org.apache.zookeeper.KeeperException, InterruptedException
org.apache.zookeeper.KeeperException
InterruptedException
Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.