From 2911108c3548057cc997037926414ed2ba1564dc Mon Sep 17 00:00:00 2001 From: Luigi Dell'Aquila Date: Fri, 15 May 2020 09:16:12 +0200 Subject: [PATCH] Revert "update interface" --- .../security/auditing/ODefaultAuditing.java | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/orientechnologies/security/auditing/ODefaultAuditing.java b/src/main/java/com/orientechnologies/security/auditing/ODefaultAuditing.java index c1f5fc5b29c..a2340a9f607 100755 --- a/src/main/java/com/orientechnologies/security/auditing/ODefaultAuditing.java +++ b/src/main/java/com/orientechnologies/security/auditing/ODefaultAuditing.java @@ -29,7 +29,7 @@ import com.orientechnologies.orient.server.OServer; import com.orientechnologies.orient.server.OSystemDatabase; import com.orientechnologies.orient.server.config.OServerConfigurationManager; -import com.orientechnologies.orient.server.distributed.listener.ODistributedNodeLifecycleListener; +import com.orientechnologies.orient.server.distributed.ODistributedLifecycleListener; import com.orientechnologies.orient.server.distributed.ODistributedServerManager; import com.orientechnologies.orient.server.security.OAuditingService; @@ -40,7 +40,7 @@ /** * Created by Enrico Risa on 10/04/15. */ -public class ODefaultAuditing implements OAuditingService, ODatabaseLifecycleListener, ODistributedNodeLifecycleListener { +public class ODefaultAuditing implements OAuditingService, ODatabaseLifecycleListener, ODistributedLifecycleListener { public static final String AUDITING_LOG_CLASSNAME = "OAuditingLog"; private boolean enabled = true; @@ -292,7 +292,7 @@ protected void updateConfigOnDisk(final String iDatabaseName, final ODocument cf } ////// - // ODistributedNodeLifecycleListener + // ODistributedLifecycleListener public boolean onNodeJoining(String iNode) { return true; } @@ -307,6 +307,10 @@ public void onNodeLeft(String iNode) { log(OAuditingOperation.NODELEFT, distribConfig.formatMessage(OAuditingOperation.NODELEFT, iNode)); } + public void onDatabaseChangeStatus(String iNode, String iDatabaseName, ODistributedServerManager.DB_STATUS iNewStatus) { + + } + @Deprecated public static String getClusterName(final String dbName) { return dbName + "_auditing"; @@ -432,7 +436,7 @@ public void run() { Orient.instance().addDbLifecycleListener(this); if (server.getDistributedManager() != null) { - server.getDistributedManager().registerDistributedNodeLifecycleListener(this); + server.getDistributedManager().registerLifecycleListener(this); } if (systemDbImporter != null && systemDbImporter.isEnabled()) { @@ -492,7 +496,7 @@ public void dispose() { } if (server.getDistributedManager() != null) { - server.getDistributedManager().unregisterDistributedNodeLifecycleListener(this); + server.getDistributedManager().unregisterLifecycleListener(this); } Orient.instance().removeDbLifecycleListener(this);