Skip to content

Commit

Permalink
Rename distributed network manager
Browse files Browse the repository at this point in the history
  • Loading branch information
luigidellaquila authored and tglman committed Jan 3, 2019
1 parent aed9cc6 commit 1fbc4c0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
Expand Up @@ -108,12 +108,12 @@ public abstract class ODistributedAbstractPlugin extends OServerPluginAbstract
protected File defaultDatabaseConfigFile; protected File defaultDatabaseConfigFile;
protected final ConcurrentMap<String, ODistributedStorage> storages = new ConcurrentHashMap<String, ODistributedStorage>(); protected final ConcurrentMap<String, ODistributedStorage> storages = new ConcurrentHashMap<String, ODistributedStorage>();
protected volatile NODE_STATUS status = NODE_STATUS.OFFLINE; protected volatile NODE_STATUS status = NODE_STATUS.OFFLINE;
protected long lastClusterChangeOn; protected long lastClusterChangeOn;
protected List<ODistributedLifecycleListener> listeners = new ArrayList<ODistributedLifecycleListener>(); protected List<ODistributedLifecycleListener> listeners = new ArrayList<ODistributedLifecycleListener>();
protected ORemoteServerManager remoteServerManager; protected ODistributedNetworkManager remoteServerManager;
protected TimerTask publishLocalNodeConfigurationTask = null; protected TimerTask publishLocalNodeConfigurationTask = null;
protected TimerTask haStatsTask = null; protected TimerTask haStatsTask = null;
protected OClusterHealthChecker healthCheckerTask = null; protected OClusterHealthChecker healthCheckerTask = null;


// LOCAL MSG COUNTER // LOCAL MSG COUNTER
protected AtomicLong localMessageIdCounter = new AtomicLong(); protected AtomicLong localMessageIdCounter = new AtomicLong();
Expand Down Expand Up @@ -190,7 +190,7 @@ public void config(OServer oServer, OServerParameterConfiguration[] iParams) {
throw OException.wrapException(new OConfigurationException("Error on deleting 'replicator' user"), e); throw OException.wrapException(new OConfigurationException("Error on deleting 'replicator' user"), e);
} }


this.remoteServerManager = new ORemoteServerManager(nodeName, new ORemoteServerAvailabilityCheck() { this.remoteServerManager = new ODistributedNetworkManager(nodeName, new ORemoteServerAvailabilityCheck() {
@Override @Override
public boolean isNodeAvailable(String node) { public boolean isNodeAvailable(String node) {
return ODistributedAbstractPlugin.this.isNodeAvailable(node); return ODistributedAbstractPlugin.this.isNodeAvailable(node);
Expand Down
Expand Up @@ -7,13 +7,13 @@
import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap; import java.util.concurrent.ConcurrentMap;


public class ORemoteServerManager { public class ODistributedNetworkManager {


private final ConcurrentMap<String, ORemoteServerController> remoteServers = new ConcurrentHashMap<String, ORemoteServerController>(); private final ConcurrentMap<String, ORemoteServerController> remoteServers = new ConcurrentHashMap<String, ORemoteServerController>();
private final String localNodeName; private final String localNodeName;
private final ORemoteServerAvailabilityCheck check; private final ORemoteServerAvailabilityCheck check;


public ORemoteServerManager(String localNodeName, ORemoteServerAvailabilityCheck check) { public ODistributedNetworkManager(String localNodeName, ORemoteServerAvailabilityCheck check) {
this.localNodeName = localNodeName; this.localNodeName = localNodeName;
this.check = check; this.check = check;
} }
Expand Down

0 comments on commit 1fbc4c0

Please sign in to comment.