public class Overseer extends Object implements Closeable
Modifier and Type | Class and Description |
---|---|
static class |
Overseer.FailedOp |
static class |
Overseer.Stat |
static class |
Overseer.Stats
Used to hold statistics about overseer operations.
|
Modifier and Type | Field and Description |
---|---|
static int |
NUM_RESPONSES_TO_STORE |
static String |
QUEUE_OPERATION |
static int |
STATE_UPDATE_DELAY |
Constructor and Description |
---|
Overseer(ShardHandler shardHandler,
UpdateShardHandler updateShardHandler,
String adminPath,
ZkStateReader reader,
ZkController zkController,
CloudConfig config) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
static DistributedQueue |
getInQueue(SolrZkClient zkClient)
Get queue that can be used to send messages to Overseer.
|
Overseer.Stats |
getStats() |
org.apache.solr.cloud.Overseer.OverseerThread |
getUpdaterThread()
For tests.
|
ZkStateReader |
getZkStateReader() |
static boolean |
isLegacy(Map clusterProps) |
void |
start(String id) |
public static final String QUEUE_OPERATION
public static final int STATE_UPDATE_DELAY
public static final int NUM_RESPONSES_TO_STORE
public Overseer(ShardHandler 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 Overseer.Stats getStats()
public org.apache.solr.cloud.Overseer.OverseerThread getUpdaterThread()
public void close()
close
in interface Closeable
close
in interface AutoCloseable
public static DistributedQueue getInQueue(SolrZkClient zkClient)
public static boolean isLegacy(Map clusterProps)
public ZkStateReader getZkStateReader()
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.