
com.amdocs.zusammen.commons.health.service.HealthCheckService Maven / Gradle / Ivy
The newest version!
package com.amdocs.zusammen.commons.health.service;
import com.amdocs.zusammen.commons.health.HealthCheck;
import com.amdocs.zusammen.commons.health.data.HealthInfo;
import com.amdocs.zusammen.commons.log.ZusammenLogger;
import com.amdocs.zusammen.commons.log.ZusammenLoggerFactory;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
public abstract class HealthCheckService implements HealthCheck {
protected static final ZusammenLogger logger = ZusammenLoggerFactory.getLogger(HealthCheckService.class.getName());
private String moduleName;
/**
*
* @param moduleName
*/
public HealthCheckService(String moduleName) {
this.moduleName = moduleName;
}
@Override
public Collection getHealthStatus ( Context context) {
List healthInfos = new ArrayList<>();
healthInfos.add(checkHealth(context));
return healthInfos;
}
protected abstract HealthInfo checkHealth( Context context);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy