Interface ODistributedLifecycleListener
- All Known Implementing Classes:
ODefaultAuditing
public interface ODistributedLifecycleListener
Distributed lifecycle interface to catch event from the distributed cluster.
- Author:
- Luca Garulli (l.garulli--(at)--orientdb.com)
-
Method Summary
Modifier and TypeMethodDescriptionvoidonDatabaseChangeStatus(String iNode, String iDatabaseName, ODistributedServerManager.DB_STATUS iNewStatus) Called upon change of database status on a node.default voidonMessageAfterOp(String op, ODistributedRequestId requestId) default voidonMessageBeforeOp(String op, ODistributedRequestId requestId) default voidonMessageCurrentPayload(ODistributedRequestId requestId, Object responsePayload) default voidonMessagePartitionCalculated(ODistributedRequest request, Set<Integer> involvedWorkerQueues) default voidonMessageProcessEnd(ODistributedRequest iRequest, Object responsePayload) default voidonMessageProcessStart(ODistributedRequest message) default voidonMessageReceived(ODistributedRequest request) voidonNodeJoined(String iNode) Called right after a node joined the cluster.booleanonNodeJoining(String iNode) Called when a node is joining the cluster.voidonNodeLeft(String iNode) Called right after a node left the cluster.
-
Method Details
-
onNodeJoining
Called when a node is joining the cluster. Return false to deny the join.- Parameters:
iNode- Node name that is joining- Returns:
- true to allow the join, otherwise false
-
onNodeJoined
Called right after a node joined the cluster.- Parameters:
iNode- Node name that is joining
-
onNodeLeft
Called right after a node left the cluster.- Parameters:
iNode- Node name that left
-
onDatabaseChangeStatus
void onDatabaseChangeStatus(String iNode, String iDatabaseName, ODistributedServerManager.DB_STATUS iNewStatus) Called upon change of database status on a node. Available statuses are defined in ODistributedServerManager.DB_STATUS.- Parameters:
iNode- The node nameiDatabaseName- Database nameiNewStatus- The new status- Since:
- 2.2.0
-
onMessageReceived
-
onMessagePartitionCalculated
default void onMessagePartitionCalculated(ODistributedRequest request, Set<Integer> involvedWorkerQueues) -
onMessageBeforeOp
-
onMessageAfterOp
-
onMessageProcessStart
-
onMessageCurrentPayload
-
onMessageProcessEnd
-