Class LoadBalancingPolicy
java.lang.Object
com.gigaspaces.cluster.loadbalance.LoadBalancingPolicy
- All Implemented Interfaces:
SmartExternalizable,Externalizable,Serializable
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.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intbooleanintintboolean -
Constructor Summary
Constructors -
Method Summary
Methods 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
-
DEFAULT_BROADCAST_THREADPOOL_MIN_SIZE
public static final int DEFAULT_BROADCAST_THREADPOOL_MIN_SIZE- See Also:
-
DEFAULT_BROADCAST_THREADPOOL_MAX_SIZE
public static final int DEFAULT_BROADCAST_THREADPOOL_MAX_SIZE- See Also:
-
m_GroupName
-
loadBalanceGroupMembersNames
-
loadBalanceGroupMembersURLs
-
m_ApplyOwnership
public boolean m_ApplyOwnership -
m_DisableParallelScattering
public boolean m_DisableParallelScattering -
m_broadcastThreadpoolMinSize
public int m_broadcastThreadpoolMinSize -
m_broadcastThreadpoolMaxSize
public int m_broadcastThreadpoolMaxSize -
m_WriteOperationsPolicy
-
m_ReadOperationsPolicy
-
m_TakeOperationsPolicy
-
m_NotifyOperationsPolicy
-
m_DefaultPolicy
-
-
Constructor Details
-
LoadBalancingPolicy
public LoadBalancingPolicy()
-
-
Method Details
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
getRecoverableTargets
public List<SpaceURL> getRecoverableTargets(String clusterName, String myMemberName, List<String> excludeTargets) Finds all the recovery targets in cluster. If jini URLs are used, the first target will always be multicast url. only if it fails the unicast and rmi URLs will be used.- Parameters:
clusterName- the cluster to recover in.myMemberName- the member of the cluster that needs to be recovered.excludeTargets- targets that should be excluded from recovery- Returns:
- a list of recoverable members SpaceURLs. returns empty list if recovery is disabled.
-
toString
-