public class OverseerConfigSetMessageHandler extends Object implements OverseerMessageHandler
OverseerMessageHandler
that handles ConfigSets API related
overseer messages.OverseerMessageHandler.ExclusiveMarking
Modifier and Type | Field and Description |
---|---|
static String |
BASE_CONFIGSET
Name of the ConfigSet to copy from for CREATE
|
static String |
CONFIGSETS_ACTION_PREFIX
Prefix to specify an action should be handled by this handler.
|
static String |
PROPERTY_PREFIX
Prefix for properties that should be applied to the ConfigSet for CREATE
|
Constructor and Description |
---|
OverseerConfigSetMessageHandler(ZkStateReader zkStateReader) |
Modifier and Type | Method and Description |
---|---|
OverseerMessageHandler.ExclusiveMarking |
checkExclusiveMarking(String configSetName,
ZkNodeProps message) |
String |
getName() |
String |
getTaskKey(ZkNodeProps message) |
String |
getTimerName(String operation) |
void |
markExclusiveTask(String configSetName,
ZkNodeProps message) |
SolrResponse |
processMessage(ZkNodeProps message,
String operation) |
void |
unmarkExclusiveTask(String configSetName,
String operation,
ZkNodeProps message) |
public static final String CONFIGSETS_ACTION_PREFIX
public static final String BASE_CONFIGSET
public static final String PROPERTY_PREFIX
public OverseerConfigSetMessageHandler(ZkStateReader zkStateReader)
public SolrResponse processMessage(ZkNodeProps message, String operation)
processMessage
in interface OverseerMessageHandler
message
- the message to processoperation
- the operation to processpublic String getName()
getName
in interface OverseerMessageHandler
public String getTimerName(String operation)
getTimerName
in interface OverseerMessageHandler
operation
- the operation to be timedpublic String getTaskKey(ZkNodeProps message)
getTaskKey
in interface OverseerMessageHandler
message
- the message being processedpublic void markExclusiveTask(String configSetName, ZkNodeProps message)
markExclusiveTask
in interface OverseerMessageHandler
configSetName
- the key associated with the task, cached from getTaskKeymessage
- the message being processedpublic void unmarkExclusiveTask(String configSetName, String operation, ZkNodeProps message)
unmarkExclusiveTask
in interface OverseerMessageHandler
configSetName
- the key associated with the taskoperation
- the operation being processedmessage
- the message being processedpublic OverseerMessageHandler.ExclusiveMarking checkExclusiveMarking(String configSetName, ZkNodeProps message)
checkExclusiveMarking
in interface OverseerMessageHandler
configSetName
- the key associated with the taskmessage
- the message being processedCopyright © 2000-2016 Apache Software Foundation. All Rights Reserved.