public class ReplicationPolicy extends Object implements Serializable, Externalizable
Modifier and Type | Class and Description |
---|---|
static class |
ReplicationPolicy.ReplicationPolicyDescription
Replication policy description for every member.
|
Constructor and Description |
---|
ReplicationPolicy()
Just for Externalizable.
|
ReplicationPolicy(String clusterName,
String replicationGroupName,
List<String> replicationGroupMembersNames,
List<SpaceURL> replicationGroupMembersURLs,
String ownMemberName,
Hashtable<String,ReplicationPolicy.ReplicationPolicyDescription> replMemberPolicyDescTable,
SyncReplPolicy syncReplPolicy,
MultiBucketReplicationPolicy multiBucketReplicationPolicy,
SwapBacklogConfig swapRedologPolicy) |
public static final String UNICAST_COMMUNICATION_MODE
public static final String MULTICAST_COMMUNICATION_MODE
public static final int UNICAST
public static final int MULTICAST
public static final String ASYNC_REPLICATION_MODE
public static final String SYNC_REPLICATION_MODE
public static final String SYNC_REC_ACK_REPLICATION_MODE
public static final String BLOCK_OPERATIONS_MODE
public static final String DROP_OLDEST_MODE
public static final String RECOVER_MODE
public static final String IGNORE_MODE
public static final String GLOBAL_ORDER_MODE
public static final String MULTI_BUCKET_MODE
public static final String MULTI_SOURCE_MODE
public static final int FULL_REPLICATION
public static final int PARTIAL_REPLICATION
public static final String DEFAULT_REPL_ORIGINAL_STATE
public static final int DEFAULT_REPL_CHUNK_SIZE
public static final int DEFAULT_REPL_INTERVAL_MILLIS
public static final int DEFAULT_REPL_INTERVAL_OPERS
public static final int DEFAULT_REPL_SPACE_FINDER_TIMEOUT
public static final int DEFAULT_REPL_SPACE_FINDER_REPORT_INTERVAL
public static final int DEFAULT_SYNC_ON_COMMIT_TIMEOUT
public static final long DEFAULT_ASYNC_CHANNEL_SHUTDOWN_TIMEOUT
public static final boolean DEFAULT_REPL_NETWORK_COMPRESSION
public static final long DEFAULT_MAX_REDO_LOG_CPACITY
public static final RedoLogCapacityExceededPolicy DEFAULT_REDO_LOG_CAPACITY_EXCEEDED
public static final int DEFAULT_RECOVERY_CHUNK_SIZE
public static final int DEFAULT_RECOVERY_THREAD_POOL_SIZE
public static final int DEFAULT_BLOBSTORE_RECOVERY_THREAD_POOL_SIZE
public static final MissingPacketsPolicy DEFAULT_MISSING_PACKETS
public static final boolean DEFAULT_REPL_FULL_TAKE
public static final boolean DEFAULT_OLD_MODULE
public static final ReplicationProcessingType DEFAULT_PROCESSING_TYPE
public static final long DEFAULT_LOCALVIEW_REDOLOG_CAPACITY
public static final long DEFAULT_LOCALVIEW_MAX_DISCONNECTION_TIME
public static final long DEFAULT_LOCALVIEW_REDOLOG_RECOVERY_CAPACITY
public static final long DEFAULT_DURABLE_NOTIFICATION_REDOLOG_CAPACITY
public static final long DEFAULT_DURABLE_NOTIFICATION_MAX_DISCONNECTION_TIME
public static final long DEFAULT_RELIABLE_ASYNC_STATE_NOTIFY_INTERVAL
public static final long DEFAULT_RELIABLE_ASYNC_STATE_NOTIFY_PACKETS
public static final boolean DEFAULT_REPLICATE_ONE_PHASE_COMMIT
public static final int DEFAULT_CONNECTION_MONITOR_THREAD_POOL_SIZE
public static final String DEFAULT_BACKLOG_WEIGHT_POLICY
public static final RedoLogCompaction DEFAULT_REDO_LOG_COMPACTION
public static final float DEFAULT_DISCARDED_PACKET_WEIGHT_LOAD_FACTOR
public static final float DEFAULT_REDO_LOG_COMPACTION_BATCH_SIZE
public String m_OwnMemberName
public String m_ReplicationGroupName
public boolean m_ReplicateNotifyTemplates
public boolean m_TriggerNotifyTemplates
public boolean m_SyncOnCommit
public String m_ReplicationMode
public int m_PolicyType
public int m_ReplicationChunkSize
public long m_ReplicationIntervalMillis
public int m_ReplicationIntervalOperations
public long m_SpaceFinderTimeout
public long m_SpaceFinderReportInterval
public long m_SyncOnCommitTimeout
public boolean m_ReplicationNetworkCompression
public boolean m_Recovery
public Hashtable<String,ReplicationPolicy.ReplicationPolicyDescription> m_ReplMemberPolicyDescTable
public boolean isOneWayReplication
public boolean m_IsSyncReplicationEnabled
public SyncReplPolicy m_SyncReplPolicy
public String clusterName
public static final String DEFAULT_MIRROR_SERVICE_NAME
public static final String DEFAULT_MIRROR_SERVICE_CONNECTOR_NAME
public ReplicationPolicy()
public ReplicationPolicy(String clusterName, String replicationGroupName, List<String> replicationGroupMembersNames, List<SpaceURL> replicationGroupMembersURLs, String ownMemberName, Hashtable<String,ReplicationPolicy.ReplicationPolicyDescription> replMemberPolicyDescTable, SyncReplPolicy syncReplPolicy, MultiBucketReplicationPolicy multiBucketReplicationPolicy, SwapBacklogConfig swapRedologPolicy)
public void setRedoLogCompaction(RedoLogCompaction redoLogCompaction)
public RedoLogCompaction getRedoLogCompaction()
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
public void setMirrorServiceConfig(MirrorServiceConfig mirrorServiceConfig)
public MirrorServiceConfig getMirrorServiceConfig()
null
if the mirror-service disabledpublic boolean isMirrorServiceEnabled()
public boolean isReliableAsyncRepl()
public boolean shouldReplicate(ReplicationOperationType operType)
public void setPermittedOperations(List<ReplicationOperationType> permittedOperations)
public void setReliableAsyncRepl(boolean reliableAsyncRepl)
reliableAsyncRepl
- true if reliable-async-replication is enabled; false otherwise.public void setMaxRedoLogCapacity(long capacity)
public long getMaxRedoLogCapacity()
public void setMaxRedoLogMemoryCapacity(long capacity)
public void setBacklogWeightPolicy(String backlogWeightPolicy)
public long getMaxRedoLogMemoryCapacity()
public String getBacklogWeightPolicy()
public long getMaxRedoLogRecoveryCapacity()
public void setMaxRedoLogRecoveryCapacity(long capacity)
public void setLocalViewMaxRedologCapacity(Long localViewMaxRedologCapacity)
public long getLocalViewMaxRedologCapacity()
public void setLocalViewMaxDisconnectionTime(long localViewMaxDisconnectionTime)
public long getLocalViewMaxDisconnectionTime()
public void setLocalViewMaxRedologRecoveryCapacity(Long localViewMaxRedologRecoveryCapacity)
public long getLocalViewMaxRedologRecoveryCapacity()
public void setOnRedoLogCapacityExceeded(RedoLogCapacityExceededPolicy policy)
public RedoLogCapacityExceededPolicy getOnRedoLogCapacityExceeded()
public boolean isOwnerMemberHasSyncReplication()
true
if this member has sync-replication to at least one target.public void setPrimarySpaceSelector(LeaderSelector primarySpaceSelector)
public LeaderSelector getPrimarySpaceSelector()
public List<SpaceURL> getRecoverableTargets(List<String> excludeTargets)
excludeTargets
- targets that should be excluded from searchpublic List<SpaceURL> getSyncTargets(List<String> excludeTargets)
This differs from getRecoverableTargets(java.util.List)
in that:
1. all URLs are returned and there is
no multicast URL - We need specific members.
2. The target is chosen only if it
sync-replicates to 'this', in contrast to returning a target which 'this' replicates to.
public List<SpaceURL> getPrimaryTargets(List<String> excludeTargets)
public int getSpaceMemberPosition(String spaceMemberName)
public final int getRecoveryChunkSize()
public void setRecoveryChunkSize(int recoveryChunkSize)
public final boolean isReplicateOriginalState()
public void setReplicatedOriginalState(boolean isReplOriginalState)
public ConflictingOperationPolicy getConflictingOperationPolicy()
public void setConflictingOperationPolicy(ConflictingOperationPolicy conflictingOperationPolicy)
public int getRecoveryThreadPoolSize()
public void setRecoveryThreadPoolSize(int recoveryThreadPoolSize)
public long getAsyncChannelShutdownTimeout()
public void setAsyncChannelShutdownTimeout(long shutdownTimeout)
public void setOnMissingPackets(MissingPacketsPolicy onMissingPackets)
public MissingPacketsPolicy getOnMissingPackets()
public void setReplicateFullTake(boolean replicateFullTake)
public boolean isReplicateFullTake()
public ReplicationProcessingType getProcessingType()
public void setProcessingType(ReplicationProcessingType processingType)
public MultiBucketReplicationPolicy getMultiBucketReplicationPolicy()
public SwapBacklogConfig getSwapRedologPolicy()
public boolean isFullReplication()
public boolean isReplicateLeaseExpirations()
public void setReplicateLeaseExpirations(boolean value)
public int getReplicationTargetsCount()
public void setReliableAsyncCompletionNotifierInterval(long reliableAsyncCompletionNotifierInterval)
public long getReliableAsyncCompletionNotifierInterval()
public long getReliableAsyncCompletionNotifierPacketsThreshold()
public void setReliableAsyncCompletionNotifierPacketsThreshold(long reliableAsyncCompletionNotifierPacketsThreshold)
public boolean isReplicateOnePhaseCommit()
public void setReplicateOnePhaseCommit(boolean replicateOnePhaseCommit)
public long getDurableNotificationMaxRedologCapacity()
public void setDurableNotificationMaxRedologCapacity(Long notificationMaxRedologCapacity)
public long getDurableNotificationMaxDisconnectionTime()
public void setDurableNotificationMaxDisconnectionTime(long notificationMaxDisconnectionTime)
public void setConnectionMonitorThreadPoolSize(int connectionMonitorThreadPoolSize)
public int getConnectionMonitorThreadPoolSize()
public boolean isNetworkCompressionEnabled()
Copyright © GigaSpaces.