public class StatefulServiceClientTuning extends ServiceClientTuning
| Modifier and Type | Field and Description |
|---|---|
static int |
RATER_DOWN_NOTIFICATION_DEFAULT_TIMEOUT
Constant describing the default value of the timeout of the rater down notification (is 10000 ms).
|
CONNECT_TIMEOUT, HEARTBEAT_DEFAULT_ACTIVATION_PERIOD_COUNT, HEARTBEAT_DEFAULT_DEAD_CONNECTION_PERIOD_COUNT, HEARTBEAT_DEFAULT_POLLING_PERIOD, SEARCH_INSTANCE_MAP_DEFAULT_TIMEOUT| Constructor and Description |
|---|
StatefulServiceClientTuning()
Initializes a StatefulServiceClientTuning with the default values
|
StatefulServiceClientTuning(int searchInstanceMapDurationInSecond,
int heartBeatPollingPeriodInMilliSecond,
int heartBeatActivationPeriodCount,
int heartBeatDeadConnectionPeriodCount,
int raterDownNotificationTimeoutInMilliSecond,
int connectTimeoutInMilliSecond)
Initializes a StatefulServiceClient with the specified value
|
| Modifier and Type | Method and Description |
|---|---|
int |
getRaterDownNotificationTimeout()
Returns the timeout in millisecond of the rater down request.
|
void |
setRaterDownNotificationTimeout(int timeout)
Sets the timeout in millisecond of the rater down request.
|
getConnectTimeout, getHeartBeatActivationPeriodCount, getHeartBeatDeadConnectionPeriodCount, getHeartBeatPollingPeriod, getSearchInstanceMapTimeout, isDebugModeEnable, setConnectTimeout, setHeartBeatActivationPeriodCount, setHeartBeatDeadConnectionPeriodCount, setHeartBeatPollingPeriod, setSearchInstanceMapTimeoutpublic static final int RATER_DOWN_NOTIFICATION_DEFAULT_TIMEOUT
public StatefulServiceClientTuning()
public StatefulServiceClientTuning(int searchInstanceMapDurationInSecond,
int heartBeatPollingPeriodInMilliSecond,
int heartBeatActivationPeriodCount,
int heartBeatDeadConnectionPeriodCount,
int raterDownNotificationTimeoutInMilliSecond,
int connectTimeoutInMilliSecond)
searchInstanceMapDurationInSecond - The timeout of the search instance mapheartBeatPollingPeriodInMilliSecond - The heart beat polling periodheartBeatActivationPeriodCount - The heat beat activation polling period countheartBeatDeadConnectionPeriodCount - The heart beat dead connection polling period countraterDownNotificationTimeoutInMilliSecond - The timeout of the request informing the backup that a rater seems to be doneServiceClientTuning.setSearchInstanceMapTimeout(int),
ServiceClientTuning.setHeartBeatPollingPeriod(int),
ServiceClientTuning.setHeartBeatActivationPeriodCount(int),
ServiceClientTuning.setHeartBeatDeadConnectionPeriodCount(int),
setRaterDownNotificationTimeout(int)public int getRaterDownNotificationTimeout()
public void setRaterDownNotificationTimeout(int timeout)
This timeout describes the maximum duration the charging client has to expect a response from the SAP CC Core Server system
when a rater instance is no more connected with the charging client. If this timeout is too small, the server
may not have the time to return its response and will make the client switch to the next backup. If too long
the heartbeat process will be interrupted.
Prevents the client to be lock a long time if the backup are down.
Its default value is
RATER_DOWN_NOTIFICATION_DEFAULT_TIMEOUT.
This timeout must be set according to server parameters
IllegalArgumentException - if timeout is out of range