Package com.j_spaces.core.cluster
Class ClusterXML
java.lang.Object
com.j_spaces.core.cluster.ClusterXML
Copyright (c) 2010 GigaSpaces Technologies Ltd. All rights reserved
The software source code is proprietary and confidential information of GigaSpaces. You may use
the software source code solely under the terms and limitations of The license agreement granted
to you by GigaSpaces.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringactive election fault detectorstatic final Stringstatic final Stringstatic final Stringactive election manager tagsstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringtrue if cluster interacts with a central-data-source; default: false.static final Stringstatic final Stringtrue if cluster holds at least one external data-source; default: false.static final Stringstatic final Stringcluster-wise cache-loader tagsstatic final Stringstatic final Stringstatic final StringBy default we use jini: with multicast protocol as prefix to each of the cluster members created dynamically.static final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringThis tag is located in the XXX-cluster.xml (the static cluster members file) file, which is used in conjunction with the XXX-cluster-schema.xsl and which points to its name.static final Stringstatic final Stringstatic final Stringhaving such file suffix indicates that we use a static list of cluster members defined in this xml file.static final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringfail over tagsstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringmirror service default valuesstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringmirror service tagsstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringsync/async replicationstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
ConstructorsConstructorDescriptionClusterXML(int _totalMembers, int _backupMembers, String _clusterSchemaName, String _clusterName, String _distCacheConfigName) SEMI-DYNAMIC CLUSTERING ONLY !!! =================================== Constructor- Used when the cluster is setuped using the SpaceFinder and The cluster_schema etc.ClusterXML(SpaceURL spaceURL, String clusterConfigUrl, String spaceName) This constructor is used for both cases: when cluster parameters are passed viw SpaceFinder and for the case when cluster URL is passed.ClusterXML(String clusterConfigURLs) Constructor.ClusterXML(Document doc, String clusterConfigFile) This constructor should receive a root document object that represent the cluster xml file. -
Method Summary
Modifier and TypeMethodDescriptionvoidAddtargetMembermember in the same replication group ofownerMemberNamemember and update Cluster XML file.static booleancalculateOneWayReplicationValue(String replicationMode) static StringcalculateReplicationMode(boolean isSyncReplication, boolean isOneWayReplication) static booleancalculateSyncReplicationValue(String replicationMode) voidchangeMember(String sourceMember, String targetMember, String targetMemberURL) Change member info in replication group and update xml file.createClusterPolicy(String clusterMemberName) Creating cluster policy object.createReplDescPolicy(String sourceMemberName, Element groupMemberNode, List<String> groupMemList) Creates replication policy description for every repl group member.returns current cluster config file.String[]Return theStringarray objects that contain all cluster member names.Return cluster schema name.static ElementgetFirstMatchElement(Element elem, String elemName) String[]Return theStringarray objects that contain all cluster member names for all groups.static StringgetNodeValueIfExists(Document doc, String nodeName) static StringgetNodeValueIfExists(Element parentNode, String nodeName) static StringgetNodeValueIfExists(Element parentNode, String nodeName, String defaultValue) return rootDocumentof parsed XML file.booleanvoidremoveMember(String targetMemberName) RemovetargetMemberNamemember from replication group and update Cluster XML file.static booleansupportsBackup(String clusterSchema) booleanReturntrueif used cluster schema, otherwisefalse.
-
Field Details
-
CLUSTER_MEMBER_URL_PROTOCOL_PREFIX
- See Also:
-
CLUSTER_MEMBER_URL_PROTOCOL_PREFIX_DEF
By default we use jini: with multicast protocol as prefix to each of the cluster members created dynamically. If the -Dcom.gs.cluster.url-protocol-prefix is passed we use this prefix instead. e.g. when defining -Dcom.gs.cluster.url-protocol-prefix=rmi://pc-gershon:10098/ will have this protocol prefix for all the cluster member urls- See Also:
-
CLUSTER_SCHEMA_NAME_TAG
This tag is located in the XXX-cluster.xml (the static cluster members file) file, which is used in conjunction with the XXX-cluster-schema.xsl and which points to its name. e.g. <cluster-schema-name>LB</cluster-schema-name> means that this cluster xml file is using the cluster schema xsl file name: LB-cluster-schema.xsl- See Also:
-
CLUSTER_SCHEMA_DESCRIPTION_TAG
- See Also:
-
CLUSTER_XML_FILE_SUFFIX
having such file suffix indicates that we use a static list of cluster members defined in this xml file. In that file, we will have <schema-name> attribute which will reference to the cluster topology xsl file to be used with the members xml to transformate and produce final version of cluster config document.- See Also:
-
CLUSTER_XML_DYNAMIC_MEMBERS_TAG
- See Also:
-
CLUSTER_SCHEMA_XSL_FILE_SUFFIX
- See Also:
-
CLUSTER_SCHEMA_NAME_ASYNC_REPLICATED
- See Also:
-
CLUSTER_SCHEMA_NAME_ASYNC_REPLICATED_SYNC2BACKUP
- See Also:
-
CLUSTER_SCHEMA_NAME_SYNC_REPLICATED
- See Also:
-
CLUSTER_SCHEMA_NAME_PRIMARY_BACKUP
- See Also:
-
CLUSTER_SCHEMA_NAME_PARTITIONED
- See Also:
-
CLUSTER_SCHEMA_NAME_PARTITIONED_SYNC2BACKUP
- See Also:
-
CLUSTER_CONFIG_TAG
- See Also:
-
GROUP_TAG
- See Also:
-
GROUPS_TAG
- See Also:
-
GROUPS_MEMBERS
- See Also:
-
GROUP_NAME_TAG
- See Also:
-
MEMBER_TAG
- See Also:
-
PARAM_TAG
- See Also:
-
PARAM_NAME_TAG
- See Also:
-
PARAM_VALUE_TAG
- See Also:
-
MEMBER_NAME_TAG
- See Also:
-
MEMBER_URL_TAG
- See Also:
-
FAIL_OVER_POLICY_TAG
- See Also:
-
FAIL_OVER_FIND_TIMEOUT_TAG
- See Also:
-
FAIL_OVER_FAILBACK_TAG
- See Also:
-
ACTIVE_ELECTION_TAG
active election manager tags- See Also:
-
ACTIVE_ELECTION_RETRY_COUNT_TAG
- See Also:
-
ACTIVE_ELECTION_YIELD_TIME_TAG
- See Also:
-
ACTIVE_ELECTION_RESOLUTION_TIMEOUT_TAG
- See Also:
-
ACTIVE_ELECTION_FD_TAG
active election fault detector- See Also:
-
ACTIVE_ELECTION_FD_INVOCATION_DELAY_TAG
- See Also:
-
ACTIVE_ELECTION_FD_RETRY_COUNT_TAG
- See Also:
-
ACTIVE_ELECTION_FD_RETRY_TIMEOUT_TAG
- See Also:
-
FAIL_OVER_BACKUP_MEMBER_TAG
fail over tags- See Also:
-
FAIL_OVER_BACKUP_MEMBERS_TAG
- See Also:
-
FAIL_OVER_BACKUP_MEMBERS_ONLY_TAG
- See Also:
-
FAIL_OVER_BACKUP_MEMBER_ONLY_TAG
- See Also:
-
FAIL_OVER_SOURCE_MEMBER_TAG
- See Also:
-
POLICY_TYPE_TAG
- See Also:
-
BROADCAST_CONDITION_TAG
- See Also:
-
CLUSTER_MEMBERS_TAG
- See Also:
-
CLUSTER_NAME_TAG
- See Also:
-
MIRROR_SERVICE_TAG
mirror service tags- See Also:
-
MIRROR_SERVICE_URL_TAG
- See Also:
-
MIRROR_SERVICE_BULK_SIZE_TAG
- See Also:
-
MIRROR_SERVICE_INTERVAL_MILLIS_TAG
- See Also:
-
MIRROR_SERVICE_INTERVAL_OPERS_TAG
- See Also:
-
MIRROR_SERVICE_REDO_LOG_CAPACITY_EXCEEDED_TAG
- See Also:
-
MIRROR_SERVICE_REDO_LOG_CAPACITY_TAG
- See Also:
-
MIRROR_SERVICE_SUPPORTS_PARTIAL_UPDATE_TAG
- See Also:
-
MIRROR_SERVICE_SUPPORTS_CHANGE_TAG
- See Also:
-
MIRROR_SERVICE_CHANGE_SUPPORT_NONE_VALUE
- See Also:
-
MIRROR_SERVICE_ENABLED_DEFAULT_VALUE
mirror service default values -
MIRROR_SERVICE_URL_DEFAULT_VALUE
- See Also:
-
MIRROR_SERVICE_BULK_SIZE_DEFAULT_VALUE
-
MIRROR_SERVICE_INTERVAL_MILLIS_DEFAULT_VALUE
-
MIRROR_SERVICE_INTERVAL_OPERS_DEFAULT_VALUE
-
PROXY_BROADCAST_THREADPOOL_MIN_SIZE_DEFAULT_VALUE
-
PROXY_BROADCAST_THREADPOOL_MAX_SIZE_DEFAULT_VALUE
-
CACHE_LOADER_TAG
cluster-wise cache-loader tags- See Also:
-
CACHE_LOADER_EXTERNAL_DATA_SOURCE
true if cluster holds at least one external data-source; default: false. when true, replication transfers meta-data; otherwise transfers only uid.- See Also:
-
CACHE_LOADER_CENTRAL_DATA_SOURCE
true if cluster interacts with a central-data-source; default: false. when true, CacheAdapter ignores operations arriving from replication.- See Also:
-
CACHE_LOADER_EXTERNAL_DATA_SOURCE_DEFAULT_VALUE
- See Also:
-
CACHE_LOADER_CENTRAL_DATA_SOURCE_DEFAULT_VALUE
- See Also:
-
ASYNC_REPLICATION_TAG
- See Also:
-
REPL_POLICY_TAG
- See Also:
-
REPL_SYNC_ON_COMMIT_TAG
- See Also:
-
REPL_SYNC_ON_COMMIT_TIMEOUT_TAG
- See Also:
-
REPL_NOTIFY_TEMPLATE_TAG
- See Also:
-
REPL_TRIGGER_NOTIFY_TEMPLATES_TAG
- See Also:
-
REPL_LEASE_EXPIRATIONS_TAG
- See Also:
-
REPL_CHUNK_SIZE_TAG
- See Also:
-
REPL_INTERVAL_MILLIS_TAG
- See Also:
-
REPL_INTERVAL_OPERS_TAG
- See Also:
-
REPL_FIND_TIMEOUT_TAG
- See Also:
-
REPL_FIND_REPORT_INTERVAL_TAG
- See Also:
-
REPL_MEMORY_RECOVERY_TAG
- See Also:
-
REPL_ORIGINAL_STATE_TAG
- See Also:
-
REPL_NETWORK_COMPRESSION_TAG
- See Also:
-
REPL_REDO_LOG_CAPACITY_TAG
- See Also:
-
REPL_REDO_LOG_MEMORY_CAPACITY_TAG
- See Also:
-
REPL_REDO_LOG_COMPACTION_TAG
- See Also:
-
REPL_REDO_LOG_BACKLOG_WEIGHT_POLICY
- See Also:
-
REPL_REDO_LOG_RECOVERY_CAPACITY_TAG
- See Also:
-
REPL_REDO_LOG_LOCALVIEW_CAPACITY_TAG
- See Also:
-
REPL_REDO_LOG_LOCALVIEW_RECOVERY_CAPACITY_TAG
- See Also:
-
REPL_REDO_LOG_DURABLE_NOTIFICATION_CAPACITY_TAG
- See Also:
-
REPL_LOCALVIEW_MAX_DISCONNECTION_TIME_TAG
- See Also:
-
REPL_DURABLE_NOTIFICATION_MAX_DISCONNECTION_TIME_TAG
- See Also:
-
REPL_REDO_LOG_CAPACITY_EXCEEDED_TAG
- See Also:
-
REPL_ONRECOVERY_REDO_LOG_EXCEEDED_BLOCK_PRIMARY
- See Also:
-
REPL_TOLERATE_MISSING_PACKETS_TAG
- See Also:
-
REPL_ON_CONFLICTING_PACKETS_TAG
- See Also:
-
REPL_FULL_TAKE_TAG
- See Also:
-
RECOVERY_CHUNK_SIZE_TAG
- See Also:
-
RECOVERY_THREAD_POOL_SIZE
- See Also:
-
REPL_ONE_PHASE_COMMIT_TAG
- See Also:
-
CONNECTION_MONITOR_THREAD_POOL_SIZE
- See Also:
-
RELIABLE_ASYNC_REPL_TAG
- See Also:
-
RELIABLE_ASYNC_STATE_NOTIFY_INTERVAL_TAG
- See Also:
-
RELIABLE_ASYNC_STATE_NOTIFY_PACKETS_TAG
- See Also:
-
REPL_ASYNC_CHANNEL_SHUTDOWN_TIMEOUT_TAG
- See Also:
-
REPL_FIND_REPORT_INTERVAL_DEFAULT_VALUE
-
REPL_REDO_LOG_CAPACITY_DEFAULT_VALUE
-
RECOVERY_CHUNK_SIZE_DEFAULT_VALUE
-
RECOVERY_THREAD_POOL_SIZE_DEFAULT_VALUE
- See Also:
-
REPL_PESRISTENT_BLOBSTORE_REDO_LOG_CAPACITY_DEFAULT_VALUE
- See Also:
-
REPL_PESRISTENT_BLOBSTORE_MEMORY_REDO_LOG_CAPACITY_DEFAULT_VALUE
- See Also:
-
REPL_FILTERS_TAG
- See Also:
-
REPL_INPUT_FILTER_CLASSNAME_TAG
- See Also:
-
REPL_INPUT_FILTER_PARAM_URL_TAG
- See Also:
-
REPL_OUTPUT_FILTER_CLASSNAME_TAG
- See Also:
-
REPL_OUTPUT_FILTER_PARAM_URL_TAG
- See Also:
-
REPL_ACTIVE_WHEN_BACKUP_TAG
- See Also:
-
REPL_SHUTDOWN_SPACE_ON_INIT_FAILURE_TAG
- See Also:
-
REPL_ACTIVE_WHEN_BACKUP_DEFAULT
- See Also:
-
REPL_SHUTDOWN_SPACE_ON_INIT_FAILURE_DEFAULT
- See Also:
-
REPL_MEMBER_RECOVERY_TAG
- See Also:
-
ENABLED_TAG
- See Also:
-
REPL_SOURCE_MEMBER_URL_TAG
- See Also:
-
LOAD_BAL_TAG
- See Also:
-
APPLY_OWNERSHIP_TAG
- See Also:
-
DISABLE_PARALLEL_SCATTERING_TAG
- See Also:
-
PROXY_BROADCAST_THREADPOOL_MIN_SIZE_TAG
- See Also:
-
PROXY_BROADCAST_THREADPOOL_MAX_SIZE_TAG
- See Also:
-
NOTIFY_RECOVERY_TAG
- See Also:
-
NOTIFY_RECOVERY_DEFAULT_VALUE
-
WRITE_TAG
- See Also:
-
READ_TAG
- See Also:
-
TAKE_TAG
- See Also:
-
NOTIFY_TAG
- See Also:
-
DEFAULT_TAG
- See Also:
-
REPL_RECEIVER_ACK_POSTFIX
sync/async replication- See Also:
-
REPLICATION_MODE_TAG
- See Also:
-
PERMITTED_OPERATIONS_TAG
- See Also:
-
COMMUNICATION_MODE_TAG
- See Also:
-
SYNC_REPL_UNICAST_TAG
- See Also:
-
SYNC_REPL_MULTICAST_TAG
- See Also:
-
SYNC_REPLICATION_TAG
- See Also:
-
MIN_WORK_THREADS_TAG
- See Also:
-
MAX_WORK_THREADS_TAG
- See Also:
-
TODO_QUEUE_TIMEOUT_TAG
- See Also:
-
HOLD_TXN_LOCK_TAG
- See Also:
-
MULTIPLE_OPERS_CHUNK_SIZE
- See Also:
-
THROTTLE_WHEN_INACTIVE_TAG
- See Also:
-
MAX_THROTTLE_TP_WHEN_INACTIVE_TAG
- See Also:
-
MIN_THROTTLE_WHEN_INACTIVE_TAG
- See Also:
-
TARGET_CONSUME_TIMEOUT_TAG
- See Also:
-
CONSISTENCY_LEVEL_TAG
- See Also:
-
REPLICATION_PROCESSING_TYPE
- See Also:
-
REPLICATION_MULTI_BUCKET_CONFIG
- See Also:
-
REPLICATION_MULTI_BUCKET_COUNT
- See Also:
-
REPLICATION_MULTI_BUCKET_BATCH_PARALLEL_FACTOR
- See Also:
-
REPLICATION_MULTI_BUCKET_BATCH_PARALLEL_THRESHOLD
- See Also:
-
SWAP_REDOLOG_TAG
- See Also:
-
SWAP_REDOLOG_STORAGE_TYPE
- See Also:
-
SQLITE_REDO_LOG_FLUSH_BUFFER_PACKET_COUNT
- See Also:
-
SWAP_REDOLOG_FLUSH_BUFFER_PACKET_COUNT
- See Also:
-
SWAP_REDOLOG_FETCH_BUFFER_PACKET_COUNT
- See Also:
-
SWAP_REDOLOG_SEGMENT_SIZE
- See Also:
-
SWAP_REDOLOG_MAX_SCAN_LENGTH
- See Also:
-
SWAP_REDOLOG_MAX_OPEN_CURSORS
- See Also:
-
SWAP_REDOLOG_WRITER_BUFFER_SIZE
- See Also:
-
IP_GROUP_TAG
- See Also:
-
PORT_TAG
- See Also:
-
TTL_TAG
- See Also:
-
TTL_DEFAULT_VALUE
-
ADAPTIVE_MULTICAST_TAG
- See Also:
-
HOLD_TXN_LOCK_DEFAULT_VALUE
-
FAIL_IN_GROUP
- See Also:
-
FAIL_TO_BACKUP
- See Also:
-
FAIL_TO_ALTERNATE
- See Also:
-
FULL_REPLICATION
- See Also:
-
PARTIAL_REPLICATION
- See Also:
-
DCACHE_TAG
- See Also:
-
DCACHE_CONFIG_NAME_TAG
- See Also:
-
FIRST_AVAILABLE_MEMBER
- See Also:
-
BC_BROADCAST_IF_NULL_VALUES
- See Also:
-
BC_BROADCAST_UNCONDITIONAL
- See Also:
-
BC_BROADCAST_DISABLED
- See Also:
-
BC_BROADCAST_IF_ROUTING_INDEX_IS_NULL
- See Also:
-
BC_BROADCAST_ALWAYS
- See Also:
-
BC_BROADCAST_NEVER
- See Also:
-
-
Constructor Details
-
ClusterXML
public ClusterXML(SpaceURL spaceURL, String clusterConfigUrl, String spaceName) throws IOException, SAXException, ParserConfigurationException, CreateException This constructor is used for both cases: when cluster parameters are passed viw SpaceFinder and for the case when cluster URL is passed. -
ClusterXML
public ClusterXML(int _totalMembers, int _backupMembers, String _clusterSchemaName, String _clusterName, String _distCacheConfigName) throws IOException, SAXException, ParserConfigurationException, CreateException SEMI-DYNAMIC CLUSTERING ONLY !!! =================================== Constructor- Used when the cluster is setuped using the SpaceFinder and The cluster_schema etc. attributes are passed as well. In this case we do not load any cluster xml file from the resource bundle but we build a Dom tree in the memory using the inputs from the SpaceFinder. Then, together with the cluster schema XSL file (which is loaded from the resource bundle, using the cluster_schema name) we execute the XSLT parser and get the Cluster config dom tree, used as input in the ClusterXML existed logic.- Parameters:
_totalMembers- stands for the SpaceURL primary instances part of the ?total_numbers option_backupMembers- stands for the SpaceURL backups part of the ?total_numbers option, total_members={number of primary instances, number of backup instances per primary} In this example the value is 4,2 which means that this cluster contains up to 4 primary instances each containing 2 backup instances._clusterSchemaName- stands for the SpaceURL ?cluster_schema option_clusterName- stands for the SpaceURL space/container ?schema option- Throws:
IOExceptionSAXExceptionParserConfigurationExceptionCreateException- See Also:
-
com.j_spaces.kernel.JSpaceUtilities.buildClusterXMLDom()
-
ClusterXML
public ClusterXML(String clusterConfigURLs) throws IOException, SAXException, ParserConfigurationException, CreateException Constructor.- Parameters:
clusterConfigURLs- The URLs is a (white space separated) list of URLs that indicate the location of the cluster configuration file.- Throws:
IOExceptionSAXExceptionParserConfigurationExceptionCreateException
-
ClusterXML
This constructor should receive a root document object that represent the cluster xml file.
-
-
Method Details
-
useClusterSchema
public boolean useClusterSchema()Returntrueif used cluster schema, otherwisefalse. -
isGenerateMembersDynamically
public boolean isGenerateMembersDynamically() -
getClusterSchemaName
Return cluster schema name.- Returns:
- If used return
Stringvalue, otherwisenull
-
getClusterMemberNames
Return theStringarray objects that contain all cluster member names. -
getGroupMemberNames
Return theStringarray objects that contain all cluster member names for all groups. -
createClusterPolicy
Creating cluster policy object.- Parameters:
clusterMemberName- Cluster member name for creating- Throws:
CreateException
-
getFirstMatchElement
-
getNodeValueIfExists
-
getNodeValueIfExists
-
getNodeValueIfExists
-
calculateOneWayReplicationValue
-
calculateSyncReplicationValue
-
calculateReplicationMode
public static String calculateReplicationMode(boolean isSyncReplication, boolean isOneWayReplication) -
createReplDescPolicy
public ReplicationPolicy.ReplicationPolicyDescription createReplDescPolicy(String sourceMemberName, Element groupMemberNode, List<String> groupMemList) throws CreateException Creates replication policy description for every repl group member.- Parameters:
sourceMemberName- Name of member for which creating ReplicationPolicyDescriptiongroupMemberNode- Member XML Element- Returns:
- ReplicationPolicy.ReplicationPolicyDescription
- Throws:
CreateException
-
getXMLRootDocument
return rootDocumentof parsed XML file. -
getClusterFileURL
returns current cluster config file. -
addMember
public void addMember(String ownerMemberName, String targetMemberName, String targetMemberURL) throws ClusterException AddtargetMembermember in the same replication group ofownerMemberNamemember and update Cluster XML file.- Parameters:
ownerMemberName- The owner member.targetMemberName- The target member to add.targetMemberURL- The target member URL.- Throws:
ClusterException- Throws ifownderMemberNamenot found in no replication group, or failed to update cluster xml file.
-
removeMember
RemovetargetMemberNamemember from replication group and update Cluster XML file.- Parameters:
targetMemberName- The member to remove from XML file.- Throws:
ClusterException- Throws if thetargetMemberNamenot found in no replication group or failed to update Cluster XML file.
-
changeMember
public void changeMember(String sourceMember, String targetMember, String targetMemberURL) throws ClusterException Change member info in replication group and update xml file.- Parameters:
sourceMember- Source member name.targetMember- Target nametargetMemberURL- Target URL- Throws:
ClusterException- Throws ifsourceMembernot found in XML file.- See Also:
-
getClusterConfigDebugOutput
- Returns:
- Returns the clusterConfigDebugOutput of the Cluster Configuration structure if debug mode is turned on.
-
supportsBackup
-
getFailOverPolicies
-