@ -63,6 +63,8 @@ public class QuickstartCalleeController {
privatebooleanifBadGateway=true;
privatebooleanifBadGateway=true;
privatebooleanifDelay=true;
privatebooleanifDelay=true;
privatebooleanisInfoSuccess=true;
/**
/**
*Getsumoftwovalue.
*Getsumoftwovalue.
*@paramvalue1value1
*@paramvalue1value1
@ -80,9 +82,14 @@ public class QuickstartCalleeController {
*@returninformationofcallee
*@returninformationofcallee
*/
*/
@GetMapping("/info")
@GetMapping("/info")
publicStringinfo(){
publicResponseEntity<String>info(){
if(isInfoSuccess){
LOG.info("Quickstart [{}] Service [{}:{}] is called. datasource = [{}].",appName,ip,port,dataSourceProperties);
LOG.info("Quickstart [{}] Service [{}:{}] is called. datasource = [{}].",appName,ip,port,dataSourceProperties);
returnString.format("Quickstart [%s] Service [%s:%s] is called. datasource = [%s].",appName,ip,port,dataSourceProperties);
returnnewResponseEntity<>(String.format("Quickstart [%s] Service [%s:%s] is called. datasource = [%s].",appName,ip,port,dataSourceProperties),HttpStatus.OK);
}
else{
returnnewResponseEntity<>(String.format("Failed to call quickstart [%s] service [%s:%s]. datasource = [%s].",appName,ip,port,dataSourceProperties),HttpStatus.BAD_GATEWAY);
}
}
}
/**
/**
@ -166,6 +173,19 @@ public class QuickstartCalleeController {