Package de.elo.ix.client.health
Interface HealthCheckService
- All Superinterfaces:
byps.BRemote
,byps.Remote
,de.elo.utils.net.Remote
,Remote
public interface HealthCheckService
extends byps.BRemote
Functions for health check.
- Since:
- 10.00.020.015
-
Method Summary
Modifier and TypeMethodDescriptionvoid
computeDoubleValue
(ClientInfo ci, String hciValueName, double hciUpdateValue, HealthCheckValueOperation hciUpdateOperation) Compute value.read
(ClientInfo ci, List<String> names) Read given health check values.void
update
(ClientInfo ci, HealthCheckInfo hci) Update one value.void
updateAll
(ClientInfo ci, List<HealthCheckInfo> hcis) Update given values.void
updateDoubleValue
(ClientInfo ci, String name, double doubleValue) Update one value.void
updateMeanValue
(ClientInfo ci, String name, double meanValue, long sampleSize) Update arithmetic mean.uploadAll
(ClientInfo ci, Object reserved) Force uploading health check data to web service.Methods inherited from interface byps.BRemote
BRemote_getTargetId
-
Method Details
-
updateMeanValue
void updateMeanValue(ClientInfo ci, String name, double meanValue, long sampleSize) throws byps.RemoteException Update arithmetic mean. This function adds the given mean value to the already existing value in the database. The new value is computed as: (db-meanValue * db-sampleSize + meanValue * sampleSize) / (db-sampleSize + sampleSize). Example:IXConnection conn = ... double value = (1.1 + 1.2 + 1.3) / 3; conn.getHealthCheckService().updateMeanValue("valuename", 1.2, 3);
- Parameters:
ci
- ClientInfoname
- Value namemeanValue
- New mean valuesampleSize
- Specifies the number of samples used to compute the mean value.- Throws:
byps.RemoteException
-
updateDoubleValue
Update one value. This function overwrites an existing value. Example:IXConnection conn = ... conn.getHealthCheckService().updateDoubleValue("valuename", 1.2);
- Parameters:
ci
- ClientInfoname
- Value namedoubleValue
- New value- Throws:
byps.RemoteException
-
computeDoubleValue
void computeDoubleValue(ClientInfo ci, String hciValueName, double hciUpdateValue, HealthCheckValueOperation hciUpdateOperation) throws byps.RemoteException Compute value. This function computes a new value using the specified operation. Example:IXConnection conn = ... conn.getHealthCheckService().computeDoubleValue("valuename", 1.2, HealthCheckValueOperation.ADD);
- Parameters:
ci
- ClientInfohciValueName
- Value namehciUpdateValue
- New valuehciUpdateOperation
- Operation used to compute the new value. For HealthCheckValueOperation.MEAN, sample size is assumed as 1.- Throws:
byps.RemoteException
- Since:
- 10.00.020.016
-
update
Update one value. Example:IXConnection conn = ... HealthCheckInfo hci = new HealthCheckInfo(); hci.setName("valuename"); hci.setStringValue("string1"); conn.getHealthCheckService().update(hci);
- Parameters:
ci
- ClientInfohci
- HeathCheckInfo object- Throws:
byps.RemoteException
-
updateAll
Update given values.- Parameters:
ci
- ClientInfohcis
- HeathCheckInfo objects- Throws:
byps.RemoteException
-
uploadAll
Force uploading health check data to web service. This function should only be used in test scenarios. Indexserver automatically uploads health check data one time per month.- Parameters:
ci
- ClientInforeserved
- Reserved, must be null.- Returns:
- reserved
- Throws:
byps.RemoteException
-
read
Read given health check values.- Parameters:
ci
- ClientInfonames
-- Returns:
- HealthChckInfos object.
- Throws:
byps.RemoteException
-