Package com.gigaspaces.cluster
Class ClusterFailureDetector
java.lang.Object
com.gigaspaces.cluster.ClusterFailureDetector
- All Implemented Interfaces:
IFailureDetector,FaultDetectionListener
public class ClusterFailureDetector
extends Object
implements FaultDetectionListener, IFailureDetector
Monitors cluster members proxies and detects proxy disconnections. Once proxy was disconnected it
is removed from monitoring. When disconnected member reconnects it will be re-registered as a new
service.
- Since:
- 7.0
- Author:
- anna
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longstatic final intstatic final long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidregister(FaultDetectionListener listener, ServiceID serviceId, Object service) voidregisterRemoteSpace(FaultDetectionListener listener, ServiceID serviceId, IRemoteSpace spaceProxy) voidserviceFailure(Object service, Object serviceID) Notify the FaultDetectionListener that the service has failedvoid
-
Field Details
-
DEFAULT_RETRY_COUNT
public static final int DEFAULT_RETRY_COUNT- See Also:
-
DEFAULT_RETRY_TIMEOUT
public static final long DEFAULT_RETRY_TIMEOUT- See Also:
-
DEFAULT_INVOCATION_DELAY
public static final long DEFAULT_INVOCATION_DELAY- See Also:
-
-
Constructor Details
-
ClusterFailureDetector
public ClusterFailureDetector() -
ClusterFailureDetector
-
-
Method Details
-
registerRemoteSpace
public void registerRemoteSpace(FaultDetectionListener listener, ServiceID serviceId, IRemoteSpace spaceProxy) throws Exception - Specified by:
registerRemoteSpacein interfaceIFailureDetector- Throws:
Exception
-
register
public void register(FaultDetectionListener listener, ServiceID serviceId, Object service) throws Exception - Throws:
Exception
-
serviceFailure
Description copied from interface:FaultDetectionListenerNotify the FaultDetectionListener that the service has failed- Specified by:
serviceFailurein interfaceFaultDetectionListener- Parameters:
service- The service that has failedserviceID- An Object representing a unique service identifier of the service that has failed
-
terminate
public void terminate()
-