com.gigaspaces.cluster.loadbalance
Class LoadBalancingPolicy
java.lang.Object
com.gigaspaces.cluster.loadbalance.LoadBalancingPolicy
- All Implemented Interfaces:
- Serializable
public class LoadBalancingPolicy
- extends Object
- implements Serializable
Title: The GigaSpaces Platform
Description: Load Balancing Policy class
Copyright: Copyright (c) J-Spaces Team
Company: J-Spaces Technologies
- See Also:
- Serialized Form
m_GroupName
public String m_GroupName
loadBalanceGroupMembersNames
public List<String> loadBalanceGroupMembersNames
loadBalanceGroupMembersURLs
public List<SpaceURL> loadBalanceGroupMembersURLs
m_ImplementationClassName
public String m_ImplementationClassName
m_ApplyOwnership
public boolean m_ApplyOwnership
m_DisableParallelScattering
public boolean m_DisableParallelScattering
m_DisableMultiSpacesBroadcast
public boolean m_DisableMultiSpacesBroadcast
DEFAULT_BROADCAST_THREADPOOL_MIN_SIZE
public static final int DEFAULT_BROADCAST_THREADPOOL_MIN_SIZE
- See Also:
- Constant Field Values
DEFAULT_BROADCAST_THREADPOOL_MAX_SIZE
public static final int DEFAULT_BROADCAST_THREADPOOL_MAX_SIZE
- See Also:
- Constant Field Values
m_broadcastThreadpoolMinSize
public int m_broadcastThreadpoolMinSize
m_broadcastThreadpoolMaxSize
public int m_broadcastThreadpoolMaxSize
m_WriteOperationsPolicy
public LoadBalancingPolicy.LoadBalancingPolicyDescription m_WriteOperationsPolicy
m_ReadOperationsPolicy
public LoadBalancingPolicy.LoadBalancingPolicyDescription m_ReadOperationsPolicy
m_TakeOperationsPolicy
public LoadBalancingPolicy.LoadBalancingPolicyDescription m_TakeOperationsPolicy
m_NotifyOperationsPolicy
public LoadBalancingPolicy.LoadBalancingPolicyDescription m_NotifyOperationsPolicy
m_DefaultPolicy
public LoadBalancingPolicy.LoadBalancingPolicyDescription m_DefaultPolicy
OPERATION_NONE
public static final int OPERATION_NONE
- See Also:
- Constant Field Values
OPERATION_WRITE
public static final int OPERATION_WRITE
- See Also:
- Constant Field Values
OPERATION_READ
public static final int OPERATION_READ
- See Also:
- Constant Field Values
OPERATION_READIE
public static final int OPERATION_READIE
- See Also:
- Constant Field Values
OPERATION_TAKE
public static final int OPERATION_TAKE
- See Also:
- Constant Field Values
OPERATION_TAKEIE
public static final int OPERATION_TAKEIE
- See Also:
- Constant Field Values
OPERATION_NOTIFY
public static final int OPERATION_NOTIFY
- See Also:
- Constant Field Values
OPERATION_COUNT
public static final int OPERATION_COUNT
- See Also:
- Constant Field Values
OPERATION_CLEAR
public static final int OPERATION_CLEAR
- See Also:
- Constant Field Values
OPERATION_WRITE_MULTIPLE
public static final int OPERATION_WRITE_MULTIPLE
- See Also:
- Constant Field Values
OPERATION_READ_MULTIPLE
public static final int OPERATION_READ_MULTIPLE
- See Also:
- Constant Field Values
OPERATION_TAKE_MULTIPLE
public static final int OPERATION_TAKE_MULTIPLE
- See Also:
- Constant Field Values
OPERATION_UPDATE
public static final int OPERATION_UPDATE
- See Also:
- Constant Field Values
OPERATION_UPDATE_MULTIPLE
public static final int OPERATION_UPDATE_MULTIPLE
- See Also:
- Constant Field Values
OPERATION_RENEW
public static final int OPERATION_RENEW
- See Also:
- Constant Field Values
OPERATION_CANCEL
public static final int OPERATION_CANCEL
- See Also:
- Constant Field Values
LoadBalancingPolicy
public LoadBalancingPolicy()
getPolicyTypeFromOperationId
public String getPolicyTypeFromOperationId(int operationId)
- returns current load-balancing policy from desired operation id
getOperationName
public static String getOperationName(int operationId)
- Converts load-balancing operation from int to String
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
public String toString()
- Overrides:
toString
in class Object