Class DocumentModelStatusPersister
java.lang.Object
org.nuxeo.ecm.core.management.storage.DocumentModelStatusPersister
- All Implemented Interfaces:
AdministrativeStatusPersister
Used to control the server administrative status: the status of the server can be passive or active.
- Author:
- Mariana Cedica
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
Lists all instance identifiers persisted in the backend.getAllStatuses
(String instanceId) Retrieves theAdministrativeStatus
for all services of a given instanceReads theAdministrativeStatus
of a service for a given instancevoid
Removes all persisted states for a given instance.saveStatus
(AdministrativeStatus status) Saves theAdministrativeStatus
of a service of a given instance
-
Field Details
-
ADMINISTRATIVE_INFO_CONTAINER
- See Also:
-
ADMINISTRATIVE_INFO_CONTAINER_DOCUMENT_TYPE
- See Also:
-
ADMINISTRATIVE_STATUS_DOCUMENT_TYPE
- See Also:
-
STATUS_PROPERTY
- See Also:
-
MESSAGE_PROPERTY
- See Also:
-
INSTANCE_PROPERTY
- See Also:
-
SERVICE_PROPERTY
- See Also:
-
LOGIN_PROPERTY
- See Also:
-
-
Constructor Details
-
DocumentModelStatusPersister
public DocumentModelStatusPersister()
-
-
Method Details
-
getAdministrativeStatusDocName
-
getAllInstanceIds
Description copied from interface:AdministrativeStatusPersister
Lists all instance identifiers persisted in the backend.- Specified by:
getAllInstanceIds
in interfaceAdministrativeStatusPersister
-
getAllStatuses
Description copied from interface:AdministrativeStatusPersister
Retrieves theAdministrativeStatus
for all services of a given instance- Specified by:
getAllStatuses
in interfaceAdministrativeStatusPersister
-
getStatus
Description copied from interface:AdministrativeStatusPersister
Reads theAdministrativeStatus
of a service for a given instance- Specified by:
getStatus
in interfaceAdministrativeStatusPersister
-
remove
Description copied from interface:AdministrativeStatusPersister
Removes all persisted states for a given instance.- Specified by:
remove
in interfaceAdministrativeStatusPersister
-
saveStatus
Description copied from interface:AdministrativeStatusPersister
Saves theAdministrativeStatus
of a service of a given instance- Specified by:
saveStatus
in interfaceAdministrativeStatusPersister
-