Interface FailureDetection
- All Superinterfaces:
org.jvnet.hk2.config.ConfigBeanProxy
public interface FailureDetection
extends org.jvnet.hk2.config.ConfigBeanProxy
- failure-detection enables its members to periodically monitor other group members to determine their availability in the group.
- group-discovery is used for discovery of group & its members.
- failure-detection.verify-failure-timeout-in-millis verifies suspect instances by adding a verification layer to mark failure suspicion as a confirmed failure.
- Since:
- glassfish v3.1
-
Method Summary
Modifier and TypeMethodDescription@Min(1000L) @Max(120000L) StringGets the value of theheartbeatFrequencyInMillisproperty.@Min(1L) StringGets the value of themaxMissedHeartbeatsproperty.@Min(3000L) @Max(120000L) StringGets the value of theverifyFailureConnectTimeoutInMillis.@Min(1500L) @Max(120000L) StringGets the value of theverifyFailureWaittimeInMillisproperty.voidsetHeartbeatFrequencyInMillis(String heartbeatFrequency) Sets the value ofheartbeatFrequencyInMillisproperty.voidsetMaxMissedHeartbeats(String maxMissedHeartbeats) Sets the value of themaxMissedHeartbeatsproperty.voidsetVerifyFailureConnectTimeoutInMillis(String verifyFailureConnectTimeout) Sets the value of theverifyFailureConnectTimeoutInMillis.voidsetVerifyFailureWaittimeInMillis(String verifyFailureWaittime) Sets the value of theverifyFailureWaittimeInMillisproperty.Methods inherited from interface org.jvnet.hk2.config.ConfigBeanProxy
createChild, deepCopy, getParent, getParent
-
Method Details
-
getMaxMissedHeartbeats
Gets the value of themaxMissedHeartbeatsproperty.Maximum number of attempts to try before GMS confirms that a failure is suspected in the group. Must be a positive integer.
- Returns:
- possible object is
String
-
setMaxMissedHeartbeats
Sets the value of themaxMissedHeartbeatsproperty.- Parameters:
maxMissedHeartbeats- allowed object isString- Throws:
PropertyVetoException
-
getHeartbeatFrequencyInMillis
Gets the value of theheartbeatFrequencyInMillisproperty.Must be a positive integer.
- Returns:
- possible object is
String
-
setHeartbeatFrequencyInMillis
Sets the value ofheartbeatFrequencyInMillisproperty.- Parameters:
heartbeatFrequency- allowed isString- Throws:
PropertyVetoException
-
setVerifyFailureWaittimeInMillis
Sets the value of theverifyFailureWaittimeInMillisproperty.- Parameters:
verifyFailureWaittime- allowed object isString- Throws:
PropertyVetoException
-
getVerifyFailureWaittimeInMillis
Gets the value of theverifyFailureWaittimeInMillisproperty.After this timeout a suspected failure is marked as verified. Must be a positive integer.
- Returns:
- possible object is
String
-
setVerifyFailureConnectTimeoutInMillis
void setVerifyFailureConnectTimeoutInMillis(String verifyFailureConnectTimeout) throws PropertyVetoException Sets the value of theverifyFailureConnectTimeoutInMillis.- Parameters:
verifyFailureConnectTimeout- allowed object isString- Throws:
PropertyVetoException- Since:
- glassfish v3.1
-
getVerifyFailureConnectTimeoutInMillis
Gets the value of theverifyFailureConnectTimeoutInMillis.- Since:
- glassfish v3.1
-