public class ClusterFailureDetector extends Object implements FaultDetectionListener, IFailureDetector
Modifier and Type | Field and Description |
---|---|
static long |
DEFAULT_INVOCATION_DELAY |
static int |
DEFAULT_RETRY_COUNT |
static long |
DEFAULT_RETRY_TIMEOUT |
Constructor and Description |
---|
ClusterFailureDetector() |
ClusterFailureDetector(String[] config) |
Modifier and Type | Method and Description |
---|---|
void |
register(FaultDetectionListener listener,
ServiceID serviceId,
Object service) |
void |
registerRemoteSpace(FaultDetectionListener listener,
ServiceID serviceId,
IRemoteSpace spaceProxy) |
void |
serviceFailure(Object service,
Object serviceID)
Notify the FaultDetectionListener that the service has failed
|
void |
terminate() |
public static final int DEFAULT_RETRY_COUNT
public static final long DEFAULT_RETRY_TIMEOUT
public static final long DEFAULT_INVOCATION_DELAY
public ClusterFailureDetector()
public ClusterFailureDetector(String[] config)
public void registerRemoteSpace(FaultDetectionListener listener, ServiceID serviceId, IRemoteSpace spaceProxy) throws Exception
registerRemoteSpace
in interface IFailureDetector
Exception
public void register(FaultDetectionListener listener, ServiceID serviceId, Object service) throws Exception
Exception
public void serviceFailure(Object service, Object serviceID)
FaultDetectionListener
serviceFailure
in interface FaultDetectionListener
service
- The service that has failedserviceID
- An Object representing a unique service identifier of the service that has
failedpublic void terminate()
Copyright © GigaSpaces.