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 String |
QUEUE_OPERATION |
static String |
REMOVECOLLECTION
Deprecated.
|
static String |
REMOVESHARD
Deprecated.
|
static int |
STATE_UPDATE_DELAY |
Constructor and Description |
---|
Overseer(ShardHandler shardHandler,
UpdateShardHandler updateShardHandler,
String adminPath,
ZkStateReader reader,
ZkController zkController,
ConfigSolr 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
@Deprecated public static final String REMOVECOLLECTION
CollectionParams.CollectionAction.DELETE
@Deprecated public static final String REMOVESHARD
CollectionParams.CollectionAction.DELETESHARD
public static final int STATE_UPDATE_DELAY
public Overseer(ShardHandler shardHandler, UpdateShardHandler updateShardHandler, String adminPath, ZkStateReader reader, ZkController zkController, ConfigSolr 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.