Class DocumentModelStatusPersister
- java.lang.Object
-
- org.nuxeo.ecm.core.management.storage.DocumentModelStatusPersister
-
- All Implemented Interfaces:
AdministrativeStatusPersister
public class DocumentModelStatusPersister extends Object implements AdministrativeStatusPersister
Used to control the server administrative status: the status of the server can be passive or active.- Author:
- Mariana Cedica
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DocumentModelStatusPersister.StatusFetcher
-
Field Summary
Fields Modifier and Type Field Description static String
ADMINISTRATIVE_INFO_CONTAINER
static String
ADMINISTRATIVE_INFO_CONTAINER_DOCUMENT_TYPE
static String
ADMINISTRATIVE_STATUS_DOCUMENT_TYPE
static String
INSTANCE_PROPERTY
static String
LOGIN_PROPERTY
static String
MESSAGE_PROPERTY
static String
SERVICE_PROPERTY
static String
STATUS_PROPERTY
-
Constructor Summary
Constructors Constructor Description DocumentModelStatusPersister()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
getAdministrativeStatusDocName(AdministrativeStatus status)
List<String>
getAllInstanceIds()
Lists all instance identifiers persisted in the backend.List<AdministrativeStatus>
getAllStatuses(String instanceId)
Retrieves theAdministrativeStatus
for all services of a given instanceAdministrativeStatus
getStatus(String instanceId, String serviceIdentifier)
Reads theAdministrativeStatus
of a service for a given instancevoid
remove(String instanceId)
Removes all persisted states for a given instance.AdministrativeStatus
saveStatus(AdministrativeStatus status)
Saves theAdministrativeStatus
of a service of a given instance
-
-
-
Field Detail
-
ADMINISTRATIVE_INFO_CONTAINER
public static final String ADMINISTRATIVE_INFO_CONTAINER
- See Also:
- Constant Field Values
-
ADMINISTRATIVE_INFO_CONTAINER_DOCUMENT_TYPE
public static final String ADMINISTRATIVE_INFO_CONTAINER_DOCUMENT_TYPE
- See Also:
- Constant Field Values
-
ADMINISTRATIVE_STATUS_DOCUMENT_TYPE
public static final String ADMINISTRATIVE_STATUS_DOCUMENT_TYPE
- See Also:
- Constant Field Values
-
STATUS_PROPERTY
public static final String STATUS_PROPERTY
- See Also:
- Constant Field Values
-
MESSAGE_PROPERTY
public static final String MESSAGE_PROPERTY
- See Also:
- Constant Field Values
-
INSTANCE_PROPERTY
public static final String INSTANCE_PROPERTY
- See Also:
- Constant Field Values
-
SERVICE_PROPERTY
public static final String SERVICE_PROPERTY
- See Also:
- Constant Field Values
-
LOGIN_PROPERTY
public static final String LOGIN_PROPERTY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getAdministrativeStatusDocName
protected String getAdministrativeStatusDocName(AdministrativeStatus status)
-
getAllInstanceIds
public List<String> getAllInstanceIds()
Description copied from interface:AdministrativeStatusPersister
Lists all instance identifiers persisted in the backend.- Specified by:
getAllInstanceIds
in interfaceAdministrativeStatusPersister
-
getAllStatuses
public List<AdministrativeStatus> getAllStatuses(String instanceId)
Description copied from interface:AdministrativeStatusPersister
Retrieves theAdministrativeStatus
for all services of a given instance- Specified by:
getAllStatuses
in interfaceAdministrativeStatusPersister
-
getStatus
public AdministrativeStatus getStatus(String instanceId, String serviceIdentifier)
Description copied from interface:AdministrativeStatusPersister
Reads theAdministrativeStatus
of a service for a given instance- Specified by:
getStatus
in interfaceAdministrativeStatusPersister
-
remove
public void remove(String instanceId)
Description copied from interface:AdministrativeStatusPersister
Removes all persisted states for a given instance.- Specified by:
remove
in interfaceAdministrativeStatusPersister
-
saveStatus
public AdministrativeStatus saveStatus(AdministrativeStatus status)
Description copied from interface:AdministrativeStatusPersister
Saves theAdministrativeStatus
of a service of a given instance- Specified by:
saveStatus
in interfaceAdministrativeStatusPersister
-
-