Skip to content
Snippets Groups Projects
Commit eb6a8a4a authored by Mingyang Zhu's avatar Mingyang Zhu
Browse files

remove the java doc

parent 79e42d07
No related branches found
No related tags found
1 merge request!53customized readiness check to make sure cache layer is ready before serving traffic
...@@ -2,11 +2,6 @@ package org.opengroup.osdu.partition.provider.interfaces; ...@@ -2,11 +2,6 @@ package org.opengroup.osdu.partition.provider.interfaces;
public interface IHealthCheckService { public interface IHealthCheckService {
default void performLivenessCheck() { void performLivenessCheck();
void performReadinessCheck();
}
default void performReadinessCheck() {
}
} }
package org.opengroup.osdu.partition.service;
import org.opengroup.osdu.partition.provider.interfaces.IHealthCheckService;
import org.springframework.stereotype.Service;
@Service
public class DefaultHealthCheckImpl implements IHealthCheckService {
@Override
public void performLivenessCheck() {
}
@Override
public void performReadinessCheck() {
}
}
...@@ -4,14 +4,17 @@ import lombok.RequiredArgsConstructor; ...@@ -4,14 +4,17 @@ import lombok.RequiredArgsConstructor;
import org.opengroup.osdu.partition.model.PartitionInfo; import org.opengroup.osdu.partition.model.PartitionInfo;
import org.opengroup.osdu.partition.provider.interfaces.IHealthCheckService; import org.opengroup.osdu.partition.provider.interfaces.IHealthCheckService;
import org.opengroup.osdu.partition.provider.interfaces.IPartitionServiceCache; import org.opengroup.osdu.partition.provider.interfaces.IPartitionServiceCache;
import org.opengroup.osdu.partition.service.DefaultHealthCheckImpl;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.beans.factory.annotation.Value; import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
@Service @Service
@Primary
@RequiredArgsConstructor @RequiredArgsConstructor
public class HealthCheckServiceImpl implements IHealthCheckService { public class HealthCheckServiceImpl extends DefaultHealthCheckImpl {
@Autowired @Autowired
@Qualifier("partitionServiceCache") @Qualifier("partitionServiceCache")
...@@ -20,7 +23,7 @@ public class HealthCheckServiceImpl implements IHealthCheckService { ...@@ -20,7 +23,7 @@ public class HealthCheckServiceImpl implements IHealthCheckService {
@Value("${redis.custom.readiness.check.enabled}") @Value("${redis.custom.readiness.check.enabled}")
private boolean redisCustomReadinessCheck; private boolean redisCustomReadinessCheck;
@Override @Override
public void performReadinessCheck() { public void performReadinessCheck() {
if (redisCustomReadinessCheck) { if (redisCustomReadinessCheck) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment