Class GlobalAdministrativeStatusManagerImpl
- java.lang.Object
-
- org.nuxeo.ecm.core.management.statuses.GlobalAdministrativeStatusManagerImpl
-
- All Implemented Interfaces:
GlobalAdministrativeStatusManager
public class GlobalAdministrativeStatusManagerImpl extends Object implements GlobalAdministrativeStatusManager
-
-
Field Summary
Fields Modifier and Type Field Description protected List<AdministrableServiceDescriptor>
descriptors
protected Map<String,AdministrableServiceDescriptor>
descriptorsByServiceId
protected Map<String,AdministrativeStatusManager>
managers
protected AdministrativeStatusPersister
persister
-
Constructor Summary
Constructors Constructor Description GlobalAdministrativeStatusManagerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getLocalNuxeoInstanceIdentifier()
Returns the identifier of the local Nuxeo Instance.AdministrableServiceDescriptor
getServiceDescriptor(String serviceIdentifier)
Gets the XMAP descriptor for one service.AdministrativeStatusManager
getStatusManager(String instanceIdentifier)
Retrieve theAdministrativeStatusManager
for a given Nuxeo instance.List<String>
listInstanceIds()
Lists the identifiers of all Nuxeo Instances.List<AdministrableServiceDescriptor>
listRegistredServices()
Lists services that are declared to be administrable.void
registerService(AdministrableServiceDescriptor desc)
Registers a service given its descriptor.void
setStatus(String serviceIdentifier, String state, String message, String login)
Updates the status of a service for all registered Nuxeo instances.
-
-
-
Field Detail
-
persister
protected final AdministrativeStatusPersister persister
-
managers
protected final Map<String,AdministrativeStatusManager> managers
-
descriptors
protected final List<AdministrableServiceDescriptor> descriptors
-
descriptorsByServiceId
protected final Map<String,AdministrableServiceDescriptor> descriptorsByServiceId
-
-
Method Detail
-
getLocalNuxeoInstanceIdentifier
public String getLocalNuxeoInstanceIdentifier()
Description copied from interface:GlobalAdministrativeStatusManager
Returns the identifier of the local Nuxeo Instance.- Specified by:
getLocalNuxeoInstanceIdentifier
in interfaceGlobalAdministrativeStatusManager
-
getStatusManager
public AdministrativeStatusManager getStatusManager(String instanceIdentifier)
Description copied from interface:GlobalAdministrativeStatusManager
Retrieve theAdministrativeStatusManager
for a given Nuxeo instance.- Specified by:
getStatusManager
in interfaceGlobalAdministrativeStatusManager
-
listInstanceIds
public List<String> listInstanceIds()
Description copied from interface:GlobalAdministrativeStatusManager
Lists the identifiers of all Nuxeo Instances.- Specified by:
listInstanceIds
in interfaceGlobalAdministrativeStatusManager
-
setStatus
public void setStatus(String serviceIdentifier, String state, String message, String login)
Description copied from interface:GlobalAdministrativeStatusManager
Updates the status of a service for all registered Nuxeo instances.- Specified by:
setStatus
in interfaceGlobalAdministrativeStatusManager
-
registerService
public void registerService(AdministrableServiceDescriptor desc)
Description copied from interface:GlobalAdministrativeStatusManager
Registers a service given its descriptor.- Specified by:
registerService
in interfaceGlobalAdministrativeStatusManager
-
listRegistredServices
public List<AdministrableServiceDescriptor> listRegistredServices()
Description copied from interface:GlobalAdministrativeStatusManager
Lists services that are declared to be administrable.- Specified by:
listRegistredServices
in interfaceGlobalAdministrativeStatusManager
-
getServiceDescriptor
public AdministrableServiceDescriptor getServiceDescriptor(String serviceIdentifier)
Description copied from interface:GlobalAdministrativeStatusManager
Gets the XMAP descriptor for one service.- Specified by:
getServiceDescriptor
in interfaceGlobalAdministrativeStatusManager
-
-