@RestController
@RequestMapping(value="/")
public class HealthCheckController
extends org.openecomp.portalsdk.core.controller.UnRestrictedBaseController
Modifier and Type | Class and Description |
---|---|
class |
HealthCheckController.HealthStatus
Model for JSON response with health-check results.
|
Constructor and Description |
---|
HealthCheckController() |
Modifier and Type | Method and Description |
---|---|
HealthCheckController.HealthStatus |
getHealthCheck(String UserAgent,
String ECOMPRequestID)
Obtain the HealthCheck Status from the System.Properties file.
|
HealthCheckController.HealthStatus |
gethealthCheckStatusforIDNS()
Obtain the HealthCheck Status from the System.Properties file.
|
int |
getProfileCount(String driver,
String URL,
String username,
String password) |
getViewName, isAccessible, isRESTfulCall, setViewName
public int getProfileCount(String driver, String URL, String username, String password)
@RequestMapping(value="/healthCheck", method=GET, produces="application/json") public HealthCheckController.HealthStatus gethealthCheckStatusforIDNS() throws IOException, InterruptedException
IOException
- Signals that an I/O exception has occurred.InterruptedException
- the interrupted exception@RequestMapping(value="rest/healthCheck/{User-Agent}/{X-ECOMP-RequestID}", method=GET, produces="application/json") public HealthCheckController.HealthStatus getHealthCheck(@PathVariable(value="User-Agent") String UserAgent, @PathVariable(value="X-ECOMP-RequestID") String ECOMPRequestID) throws IOException, InterruptedException
IOException
- Signals that an I/O exception has occurred.InterruptedException
- the interrupted exception
Project :Copyright © 2017. All rights reserved.