public class OModifiableDistributedConfiguration extends ODistributedConfiguration
ODistributedConfiguration.NEW_NODE_STRATEGIES, ODistributedConfiguration.ROLES
ALL_WILDCARD, AUTO_DEPLOY, CLUSTERS, configuration, DCS, DEFAULT_CLUSTER_NAME, DEFAULT_READ_QUORUM, DEFAULT_WRITE_QUORUM, EXECUTION_MODE, EXECUTION_MODE_SYNCHRONOUS, NEW_NODE_STRATEGY, NEW_NODE_TAG, OWNER, QUORUM_ALL, QUORUM_LOCAL_DC, QUORUM_MAJORITY, READ_QUORUM, READ_YOUR_WRITES, SERVERS, VERSION, WRITE_QUORUM
Constructor and Description |
---|
OModifiableDistributedConfiguration(ODocument iConfiguration) |
Modifier and Type | Method and Description |
---|---|
List<String> |
addNewNodeInServerList(String iNode)
Adds a server in the configuration.
|
OModifiableDistributedConfiguration |
modify() |
void |
override(ODocument newCfg) |
List<String> |
removeServer(String iNode)
Removes a server from the list.
NOTE: It must be executed in distributed database lock. |
List<String> |
setServerOffline(String iNode,
String newLockManagerServer)
Set a server offline.
|
void |
setServerOwner(String iClusterName,
String iServerName)
Sets the server as owner for the given cluster.
|
void |
setServerRole(String iServerName,
ODistributedConfiguration.ROLES role)
Sets the server role between MASTER (default) and REPLICA.
|
clearForceWriteQuorum, forceWriteQuorum, getAllConfiguredServers, getClusterConfiguration, getClusterNames, getClusterOwner, getClustersOnServer, getClustersOwnedByServer, getConfiguredClusterOwner, getConfiguredServers, getDataCenterOfServer, getDataCenters, getDataCenterServers, getDataCenterWriteQuorum, getDefaultServerRole, getDocument, getGlobalReadQuorum, getMasterServers, getNewNodeStrategy, getOwnedClustersByServer, getReadQuorum, getRegisteredServers, getServerClusterMap, getServerRole, getServers, getServers, getVersion, getWriteQuorum, hasDataCenterConfiguration, isAutoDeploy, isExecutionModeSynchronous, isLocalDataCenterWriteQuorum, isReadYourWrites, isReplicationActive, isServerContainingAllClusters, isServerContainingCluster, isSharded, toString
public OModifiableDistributedConfiguration(ODocument iConfiguration)
public OModifiableDistributedConfiguration modify()
modify
in class ODistributedConfiguration
public void setServerRole(String iServerName, ODistributedConfiguration.ROLES role)
public List<String> addNewNodeInServerList(String iNode)
iNode
- Server namepublic void setServerOwner(String iClusterName, String iServerName)
iClusterName
- Cluster name or *. Does not accept null.public List<String> removeServer(String iNode)
iNode
- Server namepublic List<String> setServerOffline(String iNode, String newLockManagerServer)
iNode
- Server namenewLockManagerServer
- New Lock Manager server namepublic void override(ODocument newCfg)
Copyright © 2009–2020 OrientDB. All rights reserved.