Package fr.gouv.vitam.common.client
Interface AdminClient
- All Superinterfaces:
AutoCloseable
,BasicClient
,MockOrRestClient
,VitamAutoCloseable
- All Known Implementing Classes:
DefaultAdminClient
Admin basic client interface
-
Field Summary
Fields inherited from interface fr.gouv.vitam.common.client.BasicClient
STATUS_URL
-
Method Summary
Modifier and TypeMethodDescriptionCheck the dependencies and return a VitamError status where getHttpCode contains either 200 for OK or 503 for error and a sub list of VitamErrors for each tested subservicesGet the administration status from the serviceMethods inherited from interface fr.gouv.vitam.common.client.MockOrRestClient
checkStatus, checkStatus, close, consumeAnyEntityAndClose, getResourcePath, getServiceUrl
-
Method Details
-
adminStatus
Get the administration status from the service- Returns:
- the AdminStatusMessage
- Throws:
VitamClientException
- if the Server is unreachable
-
getAdminUrl
String getAdminUrl()- Returns:
- the adminUrl
-
adminAutotest
Check the dependencies and return a VitamError status where getHttpCode contains either 200 for OK or 503 for error and a sub list of VitamErrors for each tested subservices- Returns:
- the VitamError status, both in case of OK or ServiceUnavailable
- Throws:
VitamClientException
-