public class OverseerConfigSetMessageHandler extends Object implements OverseerMessageHandler
OverseerMessageHandler
that handles ConfigSets API related
overseer messages.OverseerMessageHandler.Lock
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 |
---|---|
String |
getName() |
String |
getTaskKey(ZkNodeProps message) |
String |
getTimerName(String operation) |
OverseerMessageHandler.Lock |
lockTask(ZkNodeProps message,
OverseerTaskProcessor.TaskBatch taskBatch)
Try to provide an exclusive lock for this particular task
return null if locking is not possible.
|
SolrResponse |
processMessage(ZkNodeProps message,
String operation) |
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 OverseerMessageHandler.Lock lockTask(ZkNodeProps message, OverseerTaskProcessor.TaskBatch taskBatch)
OverseerMessageHandler
lockTask
in interface OverseerMessageHandler
public String getTaskKey(ZkNodeProps message)
getTaskKey
in interface OverseerMessageHandler
message
- the message being processedCopyright © 2000-2018 Apache Software Foundation. All Rights Reserved.