public class OverseerCollectionMessageHandler extends Object implements OverseerMessageHandler
OverseerMessageHandler that handles Collections API related
overseer messages.OverseerMessageHandler.ExclusiveMarking| Modifier and Type | Field and Description |
|---|---|
static String |
ASYNC |
static String |
COLL_CONF |
static String |
COLL_PROP_PREFIX |
static Map<String,Object> |
COLL_PROPS |
static String |
CREATE_NODE_SET |
static String |
CREATEALIAS |
static String |
CREATECOLLECTION |
static String |
CREATESHARD |
static String |
DELETEALIAS |
static String |
DELETECOLLECTION |
static String |
DELETEREPLICA |
static String |
DELETESHARD |
static String |
MAX_SHARDS_PER_NODE |
static String |
MIGRATE |
static String |
NUM_SLICES |
static String |
RELOADCOLLECTION |
static String |
REPLICATION_FACTOR |
static String |
REQUESTID |
static String |
ROUTER |
static String |
SHARDS_PROP |
static String |
SPLITSHARD |
| Constructor and Description |
|---|
OverseerCollectionMessageHandler(ZkStateReader zkStateReader,
String myId,
ShardHandlerFactory shardHandlerFactory,
String adminPath,
Overseer.Stats stats,
OverseerNodePrioritizer overseerPrioritizer) |
| Modifier and Type | Method and Description |
|---|---|
OverseerMessageHandler.ExclusiveMarking |
checkExclusiveMarking(String collectionName,
ZkNodeProps message) |
String |
getName() |
String |
getTaskKey(ZkNodeProps message) |
String |
getTimerName(String operation) |
void |
markExclusiveTask(String collectionName,
ZkNodeProps message) |
SolrResponse |
processMessage(ZkNodeProps message,
String operation) |
void |
unmarkExclusiveTask(String collectionName,
String operation,
ZkNodeProps message) |
public static final String NUM_SLICES
public static final String REPLICATION_FACTOR
public static final String MAX_SHARDS_PER_NODE
public static final String CREATE_NODE_SET
public static final String DELETECOLLECTION
public static final String CREATECOLLECTION
public static final String RELOADCOLLECTION
public static final String CREATEALIAS
public static final String DELETEALIAS
public static final String SPLITSHARD
public static final String DELETESHARD
public static final String ROUTER
public static final String SHARDS_PROP
public static final String ASYNC
public static final String CREATESHARD
public static final String DELETEREPLICA
public static final String MIGRATE
public static final String REQUESTID
public static final String COLL_CONF
public static final String COLL_PROP_PREFIX
public OverseerCollectionMessageHandler(ZkStateReader zkStateReader, String myId, ShardHandlerFactory shardHandlerFactory, String adminPath, Overseer.Stats stats, OverseerNodePrioritizer overseerPrioritizer)
public SolrResponse processMessage(ZkNodeProps message, String operation)
processMessage in interface OverseerMessageHandlermessage - the message to processoperation - the operation to processpublic String getName()
getName in interface OverseerMessageHandlerpublic String getTimerName(String operation)
getTimerName in interface OverseerMessageHandleroperation - the operation to be timedpublic String getTaskKey(ZkNodeProps message)
getTaskKey in interface OverseerMessageHandlermessage - the message being processedpublic void markExclusiveTask(String collectionName, ZkNodeProps message)
markExclusiveTask in interface OverseerMessageHandlercollectionName - the key associated with the task, cached from getTaskKeymessage - the message being processedpublic void unmarkExclusiveTask(String collectionName, String operation, ZkNodeProps message)
unmarkExclusiveTask in interface OverseerMessageHandlercollectionName - the key associated with the taskoperation - the operation being processedmessage - the message being processedpublic OverseerMessageHandler.ExclusiveMarking checkExclusiveMarking(String collectionName, ZkNodeProps message)
checkExclusiveMarking in interface OverseerMessageHandlercollectionName - the key associated with the taskmessage - the message being processedCopyright © 2000-2016 Apache Software Foundation. All Rights Reserved.