public abstract class SpaceProxyLoadBalancingStrategy extends Object
Modifier and Type | Field and Description |
---|---|
protected RemoteOperationsExecutorsCluster |
_cluster |
protected Object |
_lock |
protected org.slf4j.Logger |
_logger |
Constructor and Description |
---|
SpaceProxyLoadBalancingStrategy(RemoteOperationsExecutorsCluster cluster) |
Modifier and Type | Method and Description |
---|---|
RemoteOperationsExecutorProxy |
findActiveMember(RemoteOperationRequest<?> request,
long initialFailureTime,
RemoteOperationsExecutorProxy oldCandidate) |
RemoteOperationsExecutorProxy |
findActiveMemberUninterruptibly(RemoteOperationRequest<?> request,
long initialFailureTime,
RemoteOperationsExecutorProxy proxy) |
RemoteOperationsExecutorProxy |
findAnyAvailableMember(boolean activeOnly) |
abstract RemoteOperationsExecutorProxy |
getCandidate(RemoteOperationRequest<?> request) |
void |
onMemberConnected(RemoteOperationsExecutorProxy connectedMember) |
void |
onMemberDisconnected(String disconnectedMemberName) |
protected abstract void |
updateActiveProxy(RemoteOperationsExecutorProxy newActiveProxy)
This method MUST be called from within a synchronized block.
|
protected final RemoteOperationsExecutorsCluster _cluster
protected final org.slf4j.Logger _logger
protected final Object _lock
public SpaceProxyLoadBalancingStrategy(RemoteOperationsExecutorsCluster cluster)
public abstract RemoteOperationsExecutorProxy getCandidate(RemoteOperationRequest<?> request)
public RemoteOperationsExecutorProxy findActiveMember(RemoteOperationRequest<?> request, long initialFailureTime, RemoteOperationsExecutorProxy oldCandidate) throws InterruptedException
InterruptedException
public RemoteOperationsExecutorProxy findActiveMemberUninterruptibly(RemoteOperationRequest<?> request, long initialFailureTime, RemoteOperationsExecutorProxy proxy)
public RemoteOperationsExecutorProxy findAnyAvailableMember(boolean activeOnly)
public void onMemberConnected(RemoteOperationsExecutorProxy connectedMember)
public void onMemberDisconnected(String disconnectedMemberName)
protected abstract void updateActiveProxy(RemoteOperationsExecutorProxy newActiveProxy)
Copyright © GigaSpaces.