Class PersistenceHealthStatusProvider
java.lang.Object
org.openremote.container.persistence.PersistenceHealthStatusProvider
- All Implemented Interfaces:
org.openremote.model.ContainerService
,org.openremote.model.system.HealthStatusProvider
public class PersistenceHealthStatusProvider
extends Object
implements org.openremote.model.system.HealthStatusProvider
-
Field Summary
FieldsFields inherited from interface org.openremote.model.ContainerService
DEFAULT_PRIORITY, HIGH_PRIORITY, LOW_PRIORITY, MED_PRIORITY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
init
(org.openremote.model.Container container) All services are initialized in the order they have been added to the container (if container started with explicit list of services) otherwise they are initialized in order ofContainerService.getPriority()
.void
start
(org.openremote.model.Container container) After initialization, services are started in the order they have been added to the container (if container started with explicit list of services) otherwise they are started in order ofContainerService.getPriority()
.void
stop
(org.openremote.model.Container container) When the container is shutting down, it stops all services in the reverse order they were started.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.openremote.model.ContainerService
getPriority
-
Field Details
-
NAME
- See Also:
-
persistenceService
-
-
Constructor Details
-
PersistenceHealthStatusProvider
public PersistenceHealthStatusProvider()
-
-
Method Details
-
init
Description copied from interface:org.openremote.model.ContainerService
All services are initialized in the order they have been added to the container (if container started with explicit list of services) otherwise they are initialized in order ofContainerService.getPriority()
.- Specified by:
init
in interfaceorg.openremote.model.ContainerService
- Throws:
Exception
-
start
Description copied from interface:org.openremote.model.ContainerService
After initialization, services are started in the order they have been added to the container (if container started with explicit list of services) otherwise they are started in order ofContainerService.getPriority()
.- Specified by:
start
in interfaceorg.openremote.model.ContainerService
- Throws:
Exception
-
stop
Description copied from interface:org.openremote.model.ContainerService
When the container is shutting down, it stops all services in the reverse order they were started.- Specified by:
stop
in interfaceorg.openremote.model.ContainerService
- Throws:
Exception
-
getHealthStatusName
- Specified by:
getHealthStatusName
in interfaceorg.openremote.model.system.HealthStatusProvider
-
getHealthStatus
- Specified by:
getHealthStatus
in interfaceorg.openremote.model.system.HealthStatusProvider
-