Package de.elo.ix.client.health
Interface HealthCheckServiceAsync
- All Superinterfaces:
byps.BRemote,HealthCheckService,byps.Remote,de.elo.utils.net.Remote,Remote
- All Known Implementing Classes:
BSkeleton_HealthCheckService
-
Method Summary
Modifier and TypeMethodDescriptionvoidcomputeDoubleValue(ClientInfo ci, String hciValueName, double hciUpdateValue, HealthCheckValueOperation hciUpdateOperation) Compute value.voidcomputeDoubleValue(ClientInfo ci, String hciValueName, double hciUpdateValue, HealthCheckValueOperation hciUpdateOperation, byps.BAsyncResult<Object> asyncResult) read(ClientInfo ci, List<String> names) Read given health check values.voidread(ClientInfo ci, List<String> names, byps.BAsyncResult<HealthCheckInfos> asyncResult) voidupdate(ClientInfo ci, HealthCheckInfo hci) Update one value.voidupdate(ClientInfo ci, HealthCheckInfo hci, byps.BAsyncResult<Object> asyncResult) voidupdateAll(ClientInfo ci, List<HealthCheckInfo> hcis) Update given values.voidupdateAll(ClientInfo ci, List<HealthCheckInfo> hcis, byps.BAsyncResult<Object> asyncResult) voidupdateDoubleValue(ClientInfo ci, String name, double doubleValue) Update one value.voidupdateDoubleValue(ClientInfo ci, String name, double doubleValue, byps.BAsyncResult<Object> asyncResult) voidupdateMeanValue(ClientInfo ci, String name, double meanValue, long sampleSize) Update arithmetic mean.voidupdateMeanValue(ClientInfo ci, String name, double meanValue, long sampleSize, byps.BAsyncResult<Object> asyncResult) uploadAll(ClientInfo ci, Object reserved) Force uploading health check data to web service.voiduploadAll(ClientInfo ci, Object reserved, byps.BAsyncResult<Object> asyncResult) Methods inherited from interface byps.BRemote
BRemote_getTargetId
-
Method Details
-
updateMeanValue
void updateMeanValue(ClientInfo ci, String name, double meanValue, long sampleSize) throws byps.RemoteException Description copied from interface:HealthCheckServiceUpdate 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);- Specified by:
updateMeanValuein interfaceHealthCheckService- Parameters:
ci- ClientInfoname- Value namemeanValue- New mean valuesampleSize- Specifies the number of samples used to compute the mean value. 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:
Update arithmetic mean.IXConnection conn = ... double value = (1.1 + 1.2 + 1.3) / 3; conn.getHealthCheckService().updateMeanValue("valuename", 1.2, 3);- Throws:
byps.RemoteException
-
updateMeanValue
void updateMeanValue(ClientInfo ci, String name, double meanValue, long sampleSize, byps.BAsyncResult<Object> asyncResult) -
updateDoubleValue
Description copied from interface:HealthCheckServiceUpdate one value. This function overwrites an existing value. Example:IXConnection conn = ... conn.getHealthCheckService().updateDoubleValue("valuename", 1.2);- Specified by:
updateDoubleValuein interfaceHealthCheckService- Parameters:
ci- ClientInfoname- Value namedoubleValue- New value Example:
Update one value. This function overwrites an existing value.IXConnection conn = ... conn.getHealthCheckService().updateDoubleValue("valuename", 1.2);- Throws:
byps.RemoteException
-
updateDoubleValue
void updateDoubleValue(ClientInfo ci, String name, double doubleValue, byps.BAsyncResult<Object> asyncResult) -
computeDoubleValue
void computeDoubleValue(ClientInfo ci, String hciValueName, double hciUpdateValue, HealthCheckValueOperation hciUpdateOperation) throws byps.RemoteException Description copied from interface:HealthCheckServiceCompute value. This function computes a new value using the specified operation. Example:IXConnection conn = ... conn.getHealthCheckService().computeDoubleValue("valuename", 1.2, HealthCheckValueOperation.ADD);- Specified by:
computeDoubleValuein interfaceHealthCheckService- Parameters:
ci- ClientInfohciValueName- Value namehciUpdateValue- New valuehciUpdateOperation- Operation used to compute the new value. ForHealthCheckValueOperation- .MEAN, sample size is assumed as 1. Example:IXConnection conn = ... conn.getHealthCheckService().computeDoubleValue("valuename", 1.2, HealthCheckValueOperation.ADD);- Throws:
byps.RemoteException- Since:
- 10.00.020.016 Compute value. This function computes a new value using the specified operation.
-
computeDoubleValue
void computeDoubleValue(ClientInfo ci, String hciValueName, double hciUpdateValue, HealthCheckValueOperation hciUpdateOperation, byps.BAsyncResult<Object> asyncResult) -
update
Description copied from interface:HealthCheckServiceUpdate one value. Example:IXConnection conn = ... HealthCheckInfo hci = new HealthCheckInfo(); hci.setName("valuename"); hci.setStringValue("string1"); conn.getHealthCheckService().update(hci);- Specified by:
updatein interfaceHealthCheckService- Parameters:
ci- ClientInfohci- HeathCheckInfo object Example:
Update one value.IXConnection conn = ... HealthCheckInfo hci = new HealthCheckInfo(); hci.setName("valuename"); hci.setStringValue("string1"); conn.getHealthCheckService().update(hci);- Throws:
byps.RemoteException
-
update
-
updateAll
Description copied from interface:HealthCheckServiceUpdate given values.- Specified by:
updateAllin interfaceHealthCheckService- Parameters:
ci- ClientInfohcis- HeathCheckInfo objects Update given values.- Throws:
byps.RemoteException
-
updateAll
-
uploadAll
Description copied from interface:HealthCheckServiceForce 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.- Specified by:
uploadAllin interfaceHealthCheckService- Parameters:
ci- ClientInforeserved- Reserved, must be null. This function should only be used in test scenarios. Indexserver automatically uploads health check data one time per month.- Returns:
- reserved Force uploading health check data to web service.
- Throws:
byps.RemoteException
-
uploadAll
-
read
Description copied from interface:HealthCheckServiceRead given health check values.- Specified by:
readin interfaceHealthCheckService- Parameters:
ci- ClientInfonames-- Returns:
- HealthChckInfos object. Read given health check values.
- Throws:
byps.RemoteException
-
read
-