management
package instead@Deprecated public interface CacheHealthConfig
Cache
.
If any of the following criteria is true, then a cache member is considered to be in
OKAY_HEALTH
.
netSearch
operations take too long to
complete.load
operations take too long to
complete.hitRatio
is too smallevent delivery queue
is too
large.FULL_ACCESS
on role loss.POOR_HEALTH
.
NO_ACCESS
on role loss.LIMITED_ACCESS
on role loss.Modifier and Type | Field and Description |
---|---|
static long |
DEFAULT_MAX_EVENT_QUEUE_SIZE
Deprecated.
The default maximum number of entries in the event delivery queue of a healthy cache member.
|
static long |
DEFAULT_MAX_LOAD_TIME
Deprecated.
The default maximum number of milliseconds a cache
load operation can take before
the cache member is considered to be unhealthy. |
static long |
DEFAULT_MAX_NET_SEARCH_TIME
Deprecated.
The default maximum number of milliseconds a
netSearch operation can take before
the cache member is considered to be unhealthy. |
static double |
DEFAULT_MIN_HIT_RATIO
Deprecated.
The default minimum hit ratio of a healthy cache member.
|
Modifier and Type | Method and Description |
---|---|
long |
getMaxEventQueueSize()
Deprecated.
Returns the maximum number of entries in the event delivery queue of a healthy cache member.
|
long |
getMaxLoadTime()
Deprecated.
Returns the maximum number of milliseconds a cache
load operation can take before
the cache member is considered to be unhealthy. |
long |
getMaxNetSearchTime()
Deprecated.
Returns the maximum number of milliseconds a
netSearch operation can take before
the cache member is considered to be unhealthy. |
double |
getMinHitRatio()
Deprecated.
Returns the minimum hit ratio of a healthy cache member.
|
void |
setMaxEventQueueSize(long maxEventQueueSize)
Deprecated.
Sets the maximum number of entries in the event delivery queue of a healthy cache member.
|
void |
setMaxLoadTime(long maxLoadTime)
Deprecated.
Sets the maximum number of milliseconds a cache
load operation can take before the
cache member is considered to be unhealthy. |
void |
setMaxNetSearchTime(long maxNetSearchTime)
Deprecated.
Sets the maximum number of milliseconds a
netSearch operation can take before the
cache member is considered to be unhealthy. |
void |
setMinHitRatio(double minHitRatio)
Deprecated.
Sets the minimum hit ratio of a healthy cache member.
|
static final long DEFAULT_MAX_NET_SEARCH_TIME
netSearch
operation can take before
the cache member is considered to be unhealthy.static final long DEFAULT_MAX_LOAD_TIME
load
operation can take before
the cache member is considered to be unhealthy.static final double DEFAULT_MIN_HIT_RATIO
static final long DEFAULT_MAX_EVENT_QUEUE_SIZE
long getMaxNetSearchTime()
netSearch
operation can take before
the cache member is considered to be unhealthy.netSearch
operation can take before
the cache member is considered to be unhealthyDEFAULT_MAX_NET_SEARCH_TIME
void setMaxNetSearchTime(long maxNetSearchTime)
netSearch
operation can take before the
cache member is considered to be unhealthy.maxNetSearchTime
- the maximum number of milliseconds a netSearch
operation
can take before the cache member is considered to be unhealthygetMaxNetSearchTime()
long getMaxLoadTime()
load
operation can take before
the cache member is considered to be unhealthy.load
operation can take before
the cache member is considered to be unhealthyDEFAULT_MAX_LOAD_TIME
void setMaxLoadTime(long maxLoadTime)
load
operation can take before the
cache member is considered to be unhealthy.maxLoadTime
- the maximum number of milliseconds a cache load
operation can
take before the cache member is considered to be unhealthygetMaxLoadTime()
double getMinHitRatio()
DEFAULT_MIN_HIT_RATIO
void setMinHitRatio(double minHitRatio)
minHitRatio
- the minimum hit ratio of a healthy cache membergetMinHitRatio()
long getMaxEventQueueSize()
DEFAULT_MAX_EVENT_QUEUE_SIZE
void setMaxEventQueueSize(long maxEventQueueSize)
maxEventQueueSize
- the maximum number of entries in the event delivery queue of a healthy
cache membergetMaxEventQueueSize()