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 Details

    • onNodeJoined

      default void onNodeJoined(String iNode)
      Called right after a node joined the cluster.
      Parameters:
      iNode - Node name that is joining
    • onNodeLeft

      default void onNodeLeft(String iNode)
      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 name
      iDatabaseName - Database name
      iNewStatus - The new status
      Since:
      2.2.0