Class RemoteOperationsExecutorsCluster
java.lang.Object
com.gigaspaces.internal.remoting.routing.clustered.RemoteOperationsExecutorsCluster
- Since:
- 9.0.0
- Author:
- Niv Ingberg
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionRemoteOperationsExecutorsCluster(SpaceProxyImpl spaceProxy, String name, SpaceClusterInfo clusterInfo, int partitionId, Collection<String> members, RemoteOperationsExecutorsClusterConfig config, IAsyncHandlerProvider asyncHandlerProvider, RemoteOperationsExecutorProxyLocator proxyLocator, RemoteOperationsExecutorProxy defaultMember) RemoteOperationsExecutorsCluster(String name, SpaceClusterInfo clusterInfo, int partitionId, Collection<String> members, RemoteOperationsExecutorsClusterConfig config, IAsyncHandlerProvider asyncHandlerProvider, RemoteOperationsExecutorProxyLocator proxyLocator, RemoteOperationsExecutorProxy defaultMember) -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(RemoteOperationsExecutorProxy proxy) voidclose()createTimeoutError(long initialFailureTime, RemoteOperationRequest<?> request) The error for an active server lookup that timed out.voidfind(String member, LookupType lookupType) generateTimeoutErrorMessage(long initialFailureTime, RemoteOperationRequest<?> request) voidgetAllAvailableMembers(List<RemoteOperationsExecutorProxy> availableMembers) getAvailableMember(boolean activeOnly, long timeout) getElapsedTime(long initialFailureTime) org.slf4j.LoggergetName()intlonggetRemainingTime(RemoteOperationRequest<?> request, long initialFailureTime) voidvoid
-
Constructor Details
-
RemoteOperationsExecutorsCluster
public RemoteOperationsExecutorsCluster(SpaceProxyImpl spaceProxy, String name, SpaceClusterInfo clusterInfo, int partitionId, Collection<String> members, RemoteOperationsExecutorsClusterConfig config, IAsyncHandlerProvider asyncHandlerProvider, RemoteOperationsExecutorProxyLocator proxyLocator, RemoteOperationsExecutorProxy defaultMember) -
RemoteOperationsExecutorsCluster
public RemoteOperationsExecutorsCluster(String name, SpaceClusterInfo clusterInfo, int partitionId, Collection<String> members, RemoteOperationsExecutorsClusterConfig config, IAsyncHandlerProvider asyncHandlerProvider, RemoteOperationsExecutorProxyLocator proxyLocator, RemoteOperationsExecutorProxy defaultMember)
-
-
Method Details
-
getName
-
getLogger
public org.slf4j.Logger getLogger() -
getClusterInfo
-
getPartitionId
public int getPartitionId() -
getPartitionDesc
-
getMembersNames
-
getLoadBalancer
-
getConfig
-
getAvailableMember
public RemoteOperationsExecutorProxy getAvailableMember(boolean activeOnly, long timeout) throws InterruptedException, RemoteOperationRouterException -
getAllAvailableMembers
-
refreshConnectedMembers
public void refreshConnectedMembers() -
refreshDisconnectedMembers
public void refreshDisconnectedMembers() -
find
-
add
-
disconnect
-
close
public void close() -
getRemainingTime
-
generateTimeoutErrorMessage
public String generateTimeoutErrorMessage(long initialFailureTime, RemoteOperationRequest<?> request) -
createTimeoutError
public RemoteException createTimeoutError(long initialFailureTime, RemoteOperationRequest<?> request) The error for an active server lookup that timed out. A quiesced primary is alive and still active, but refuses operations, so the lookup skips it and times out exactly as if the partition had no primary at all. When that is the reason, the quiesce is attached as the cause so callers can tell maintenance from an outage. Only runs once the lookup has already failed, so it costs nothing on the normal path.Checking the members only now is not enough on its own: when the primary is unquiesced just as the lookup times out, it is no longer quiesced by the time it is asked, and a lookup that failed purely because of the quiesce would be reported as an outage. So a quiesce the lookup itself ran into since
initialFailureTimecounts as well. -
getElapsedTime
-