public class FailOverPolicy extends Object implements Serializable, SmartExternalizable
Modifier and Type | Class and Description |
---|---|
static class |
FailOverPolicy.FailOverPolicyDescription |
Modifier and Type | Field and Description |
---|---|
int |
_numberOfBackups
For dynamic clustering - if >0
|
static int |
DEFAULT_FAILOVER_SPACE_FINDER_TIMEOUT |
List<String> |
failOverGroupMembersNames |
List<SpaceURL> |
failOverGroupMembersURLs |
String |
failOverGroupName |
FailOverPolicy.FailOverPolicyDescription |
m_DefaultFOPolicy |
FailOverPolicy.FailOverPolicyDescription |
m_NotifyFOPolicy |
FailOverPolicy.FailOverPolicyDescription |
m_ReadFOPolicy |
FailOverPolicy.FailOverPolicyDescription |
m_TakeFOPolicy |
FailOverPolicy.FailOverPolicyDescription |
m_WriteFOPolicy |
static int |
POLICY_TYPE_FAIL_TO_AVAILABLE |
static int |
POLICY_TYPE_FAIL_TO_BACKUP |
long |
spaceFinderTimeout |
Constructor and Description |
---|
FailOverPolicy() |
Modifier and Type | Method and Description |
---|---|
void |
buildElectionGroups(String spaceName)
Build all the election groups in fail-over group.
|
ActiveElectionConfig |
getActiveElectionConfig() |
List<String> |
getElectionGroupMembers()
Get election group members
|
String |
getElectionGroupName() |
List<SpaceURL> |
getRecoverableTargets(String memberName)
Returns a list of URLs or an empty list of primary targets for given member.
|
boolean |
isFailBackEnabled() |
void |
readExternal(ObjectInput in) |
void |
setActiveElectionConfig(ActiveElectionConfig activeElectConfig)
Set active election configuration.
|
void |
setFailBackEnabled(boolean isFailBackEnabled) |
String |
toString() |
void |
writeExternal(ObjectOutput out) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
enabledSmartExternalizableWithReference
public int _numberOfBackups
public String failOverGroupName
public long spaceFinderTimeout
public FailOverPolicy.FailOverPolicyDescription m_WriteFOPolicy
public FailOverPolicy.FailOverPolicyDescription m_ReadFOPolicy
public FailOverPolicy.FailOverPolicyDescription m_TakeFOPolicy
public FailOverPolicy.FailOverPolicyDescription m_NotifyFOPolicy
public FailOverPolicy.FailOverPolicyDescription m_DefaultFOPolicy
public static final int POLICY_TYPE_FAIL_TO_AVAILABLE
public static final int POLICY_TYPE_FAIL_TO_BACKUP
public static final int DEFAULT_FAILOVER_SPACE_FINDER_TIMEOUT
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 boolean isFailBackEnabled()
public void setFailBackEnabled(boolean isFailBackEnabled)
public void buildElectionGroups(String spaceName)
public String getElectionGroupName()
public void setActiveElectionConfig(ActiveElectionConfig activeElectConfig)
public ActiveElectionConfig getActiveElectionConfig()
public List<SpaceURL> getRecoverableTargets(String memberName)
memberName
- member that looks for a list of primary targets.Copyright © GigaSpaces.