Package com.j_spaces.core.cluster
Class ReplicationPolicy.ReplicationPolicyDescription
java.lang.Object
com.j_spaces.core.cluster.ReplicationPolicy.ReplicationPolicyDescription
- All Implemented Interfaces:
SmartExternalizable,Externalizable,Serializable
- Enclosing class:
- ReplicationPolicy
public static class ReplicationPolicy.ReplicationPolicyDescription
extends Object
implements SmartExternalizable
Replication policy description for every member.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanbooleanboolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetTargetTransmissionMatrix(String targetMember) Extracts the transmission policy from this source to the requested target.voidtoString()booleanIf transmission policy was defined in cluster xml, thentrueis returned; otherwisefalseindicating that there is no transmission policy.voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.gigaspaces.serialization.SmartExternalizable
enabledSmartExternalizableWithReference
-
Field Details
-
replTransmissionPolicies
-
sourceMemberRecovery
-
memberRecovery
public boolean memberRecovery -
inputReplicationFilterClassName
-
inputReplicationFilterParamUrl
-
outputReplicationFilterClassName
-
outputReplicationFilterParamUrl
-
activeWhenBackup
public boolean activeWhenBackup -
shutdownSpaceOnInitFailure
public boolean shutdownSpaceOnInitFailure
-
-
Constructor Details
-
ReplicationPolicyDescription
public ReplicationPolicyDescription()
-
-
Method Details
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
getTargetTransmissionMatrix
Extracts the transmission policy from this source to the requested target. Note the ambiguity: returns null if no transmission policy is defined or if the parameter is not a replicated target by this source member.- Parameters:
targetMember- the replicated target to extract the transmission policy for.- Returns:
- null if not a replicated target from this source or if no transmission policy defined.
-
transmissionPolicyDefined
public boolean transmissionPolicyDefined()If transmission policy was defined in cluster xml, thentrueis returned; otherwisefalseindicating that there is no transmission policy.- Returns:
trueif transmission policy was defined;falseotherwise.
-
toString
-