Package org.apache.solr.cloud
Interface OverseerMessageHandler
- All Known Implementing Classes:
OverseerCollectionMessageHandler,OverseerConfigSetMessageHandler
public interface OverseerMessageHandler
Interface for processing messages received by an
OverseerTaskProcessor-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptiongetName()getTaskKey(org.apache.solr.common.cloud.ZkNodeProps message) getTimerName(String operation) lockTask(org.apache.solr.common.cloud.ZkNodeProps message, long batchSessionId) Grabs an exclusive lock for this particular task.processMessage(org.apache.solr.common.cloud.ZkNodeProps message, String operation)
-
Method Details
-
processMessage
OverseerSolrResponse processMessage(org.apache.solr.common.cloud.ZkNodeProps message, String operation) - Parameters:
message- the message to processoperation- the operation to process- Returns:
- response
-
getName
String getName()- Returns:
- the name of the OverseerMessageHandler
-
getTimerName
- Parameters:
operation- the operation to be timed- Returns:
- the name of the timer to use for the operation
-
lockTask
OverseerMessageHandler.Lock lockTask(org.apache.solr.common.cloud.ZkNodeProps message, long batchSessionId) Grabs an exclusive lock for this particular task.- Returns:
nullif locking is not possible.
-
getTaskKey
- Parameters:
message- the message being processed- Returns:
- the taskKey for the message for handling task exclusivity
-