public class VitamServiceRegistry extends Object
| Constructor and Description |
|---|
VitamServiceRegistry()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
checkDependencies(int retry,
long retryDelay)
Check all the registered dependencies, except optional
|
com.fasterxml.jackson.databind.node.ObjectNode |
getAutotestStatus()
Get full Autotest status, including optional services
return the overall status of this component with the constraint delay of less than 10ms and shall return by
default empty JsonNode.
|
int |
getRegisteredServices() |
boolean |
getResourcesStatus()
Get the resource overall status, except optional services
return the overall status of this component with the constraint delay of less than 10ms.
|
VitamServiceRegistry |
register(DatabaseConnection database)
Register one Database
|
VitamServiceRegistry |
register(VitamClientFactoryInterface<?> factory)
Register one Client factory
|
VitamServiceRegistry |
register(VitamStatusService service)
Register the Status service of this application (unique)
|
VitamServiceRegistry |
registerOptional(VitamClientFactoryInterface<?> factory)
Register one Optional Client factory
|
public VitamServiceRegistry register(VitamClientFactoryInterface<?> factory)
factory - Http Client Factorypublic VitamServiceRegistry registerOptional(VitamClientFactoryInterface<?> factory)
factory - optional Http Client Factorypublic VitamServiceRegistry register(DatabaseConnection database)
database - database connectionpublic VitamServiceRegistry register(VitamStatusService service)
service - public int getRegisteredServices()
public boolean getResourcesStatus()
public void checkDependencies(int retry,
long retryDelay)
throws VitamApplicationServerException,
InterruptedException
retry - the number retry in case of unavailabilityretryDelay - the delay in ms between each retryVitamApplicationServerException - if any of the dependencies are unavailableInterruptedExceptionpublic com.fasterxml.jackson.databind.node.ObjectNode getAutotestStatus()
Copyright © 2018 Vitam. All rights reserved.