public class ActiveElectionConfig extends Object implements Externalizable
ActiveElectionManager
.ActiveElectionManager
,
Serialized FormModifier and Type | Field and Description |
---|---|
static long |
DEFAULT_FAULTDETECTOR_INVOCATION_DELAY
fault detector configuration
|
static int |
DEFAULT_FAULTDETECTOR_RETRY_COUNT |
static long |
DEFAULT_FAULTDETECTOR_RETRY_TIMEOUT |
static int |
DEFAULT_RETRY_COUNT |
static long |
DEFAULT_YIELD_TIME |
static long |
RESOLUTION_TIMEOUT_DEFAULT |
Constructor and Description |
---|
ActiveElectionConfig() |
Modifier and Type | Method and Description |
---|---|
long |
getFaultDetectorInvocationDelay() |
int |
getFaultDetectorRetryCount() |
long |
getFaultDetectorRetryTimeout() |
String[] |
getFDHConfig()
Get fault detection configuration
|
long |
getResolutionTimeout() |
int |
getRetryConnection() |
long |
getYieldTime() |
void |
readExternal(ObjectInput in) |
void |
setFaultDetectorInvocationDelay(long detectorInvocationDelay)
Set amount of time in milliseconds to wait between
IJSpace.ping()
method invocations. |
void |
setFaultDetectorRetryCount(int detectorRetryCount)
Set number of times to retry connecting to the service when invoking the
IJSpace.ping() method. |
void |
setFaultDetectorRetryTimeout(long detectorRetryTimeout)
Set how long to wait between retries (in milliseconds).
|
void |
setResolutionTimeout(long resolutionTimeout) |
void |
setRetryConnection(int retryConnection)
Set number of retry connections with
INamingService ,
default naming service is LookupService. |
void |
setYieldTime(long yieldTime)
Time to yield to other participants between every election phase(total 3) before aquire
Primary or Backup state.
|
String |
toString() |
void |
writeExternal(ObjectOutput out) |
public static final int DEFAULT_RETRY_COUNT
public static final long DEFAULT_YIELD_TIME
public static final long RESOLUTION_TIMEOUT_DEFAULT
public static final long DEFAULT_FAULTDETECTOR_INVOCATION_DELAY
public static final int DEFAULT_FAULTDETECTOR_RETRY_COUNT
public static final long DEFAULT_FAULTDETECTOR_RETRY_TIMEOUT
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
public int getRetryConnection()
INamingService
,
default naming service is LookupService.public long getYieldTime()
public void setRetryConnection(int retryConnection)
INamingService
,
default naming service is LookupService.retryConnection
- number of retry connections.public void setYieldTime(long yieldTime)
yieldTime
- time in milliseconds.public long getFaultDetectorInvocationDelay()
IJSpace.ping()
method invocations.public void setFaultDetectorInvocationDelay(long detectorInvocationDelay)
IJSpace.ping()
method invocations.detectorInvocationDelay
- delay time in ms.public int getFaultDetectorRetryCount()
IJSpace.ping()
method. If the service cannot be reached within the retry
count specified the service will be determined to be unreachable.public void setFaultDetectorRetryCount(int detectorRetryCount)
IJSpace.ping()
method. If the service cannot be reached within the retry
count specified the service will be determined to be unreachable.detectorRetryCount
- connection retry count.public long getFaultDetectorRetryTimeout()
public void setFaultDetectorRetryTimeout(long detectorRetryTimeout)
detectorRetryTimeout
- retry timeout in ms.public long getResolutionTimeout()
public void setResolutionTimeout(long resolutionTimeout)
public String[] getFDHConfig()
Copyright © GigaSpaces.