
public class OModifiableDistributedConfiguration extends ODistributedConfiguration
ODistributedConfiguration.NEW_NODE_STRATEGIES, ODistributedConfiguration.ROLESALL_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(com.orientechnologies.orient.core.record.impl.ODocument iConfiguration) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.String> |
addNewNodeInServerList(java.lang.String iNode)
Adds a server in the configuration.
|
OModifiableDistributedConfiguration |
modify() |
void |
override(com.orientechnologies.orient.core.record.impl.ODocument newCfg) |
java.util.List<java.lang.String> |
removeServer(java.lang.String iNode)
Removes a server from the list.
NOTE: It must be executed in distributed database lock. |
java.util.List<java.lang.String> |
setServerOffline(java.lang.String iNode,
java.lang.String newLockManagerServer)
Set a server offline.
|
void |
setServerOwner(java.lang.String iClusterName,
java.lang.String iServerName)
Sets the server as owner for the given cluster.
|
void |
setServerRole(java.lang.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, toStringpublic OModifiableDistributedConfiguration(com.orientechnologies.orient.core.record.impl.ODocument iConfiguration)
public OModifiableDistributedConfiguration modify()
modify in class ODistributedConfigurationpublic void setServerRole(java.lang.String iServerName,
ODistributedConfiguration.ROLES role)
public java.util.List<java.lang.String> addNewNodeInServerList(java.lang.String iNode)
iNode - Server namepublic void setServerOwner(java.lang.String iClusterName,
java.lang.String iServerName)
iClusterName - Cluster name or *. Does not accept null.public java.util.List<java.lang.String> removeServer(java.lang.String iNode)
iNode - Server namepublic java.util.List<java.lang.String> setServerOffline(java.lang.String iNode,
java.lang.String newLockManagerServer)
iNode - Server namenewLockManagerServer - New Lock Manager server namepublic void override(com.orientechnologies.orient.core.record.impl.ODocument newCfg)
Copyright © 2009–2022 OrientDB. All rights reserved.