Interface ODistributedLifecycleListener
- All Known Implementing Classes:
ODefaultAuditing,OEnterpriseProfiler
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 TypeMethodDescriptiondefault voidonDatabaseChangeStatus(String iNode, String iDatabaseName, ODistributedServerManager.DB_STATUS iNewStatus) Called upon change of database status on a node.default voidonNodeJoined(String iNode) Called right after a node joined the cluster.default voidonNodeLeft(String iNode) Called right after a node left the cluster.
-
Method Details
-
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
default 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
-