Skip to content

Commit

Permalink
Merge pull request #3 from pxsalehi/develop
Browse files Browse the repository at this point in the history
update interface
  • Loading branch information
luigidellaquila authored May 14, 2020
2 parents 98d6a76 + 69a43aa commit 27c4086
Showing 1 changed file with 5 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.ODistributedLifecycleListener;
import com.orientechnologies.orient.server.distributed.listener.ODistributedNodeLifecycleListener;
import com.orientechnologies.orient.server.distributed.ODistributedServerManager;
import com.orientechnologies.orient.server.security.OAuditingService;

Expand All @@ -40,7 +40,7 @@
/**
* Created by Enrico Risa on 10/04/15.
*/
public class ODefaultAuditing implements OAuditingService, ODatabaseLifecycleListener, ODistributedLifecycleListener {
public class ODefaultAuditing implements OAuditingService, ODatabaseLifecycleListener, ODistributedNodeLifecycleListener {
public static final String AUDITING_LOG_CLASSNAME = "OAuditingLog";

private boolean enabled = true;
Expand Down Expand Up @@ -292,7 +292,7 @@ protected void updateConfigOnDisk(final String iDatabaseName, final ODocument cf
}

//////
// ODistributedLifecycleListener
// ODistributedNodeLifecycleListener
public boolean onNodeJoining(String iNode) {
return true;
}
Expand All @@ -307,10 +307,6 @@ 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";
Expand Down Expand Up @@ -436,7 +432,7 @@ public void run() {
Orient.instance().addDbLifecycleListener(this);

if (server.getDistributedManager() != null) {
server.getDistributedManager().registerLifecycleListener(this);
server.getDistributedManager().registerDistributedNodeLifecycleListener(this);
}

if (systemDbImporter != null && systemDbImporter.isEnabled()) {
Expand Down Expand Up @@ -496,7 +492,7 @@ public void dispose() {
}

if (server.getDistributedManager() != null) {
server.getDistributedManager().unregisterLifecycleListener(this);
server.getDistributedManager().unregisterDistributedNodeLifecycleListener(this);
}

Orient.instance().removeDbLifecycleListener(this);
Expand Down

0 comments on commit 27c4086

Please sign in to comment.