public class GlobalAdministrativeStatusManagerImpl extends Object implements GlobalAdministrativeStatusManager
Modifier and Type | Field and Description |
---|---|
protected List<AdministrableServiceDescriptor> |
descriptors |
protected Map<String,AdministrableServiceDescriptor> |
descriptorsByServiceId |
protected Map<String,AdministrativeStatusManager> |
managers |
protected AdministrativeStatusPersister |
persister |
Constructor and Description |
---|
GlobalAdministrativeStatusManagerImpl() |
Modifier and Type | Method and 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 the
AdministrativeStatusManager 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.
|
protected final AdministrativeStatusPersister persister
protected final Map<String,AdministrativeStatusManager> managers
protected final List<AdministrableServiceDescriptor> descriptors
protected final Map<String,AdministrableServiceDescriptor> descriptorsByServiceId
public GlobalAdministrativeStatusManagerImpl()
public String getLocalNuxeoInstanceIdentifier()
GlobalAdministrativeStatusManager
getLocalNuxeoInstanceIdentifier
in interface GlobalAdministrativeStatusManager
public AdministrativeStatusManager getStatusManager(String instanceIdentifier)
GlobalAdministrativeStatusManager
AdministrativeStatusManager
for a given Nuxeo instance.getStatusManager
in interface GlobalAdministrativeStatusManager
public List<String> listInstanceIds()
GlobalAdministrativeStatusManager
listInstanceIds
in interface GlobalAdministrativeStatusManager
public void setStatus(String serviceIdentifier, String state, String message, String login)
GlobalAdministrativeStatusManager
setStatus
in interface GlobalAdministrativeStatusManager
public void registerService(AdministrableServiceDescriptor desc)
GlobalAdministrativeStatusManager
registerService
in interface GlobalAdministrativeStatusManager
public List<AdministrableServiceDescriptor> listRegistredServices()
GlobalAdministrativeStatusManager
listRegistredServices
in interface GlobalAdministrativeStatusManager
public AdministrableServiceDescriptor getServiceDescriptor(String serviceIdentifier)
GlobalAdministrativeStatusManager
getServiceDescriptor
in interface GlobalAdministrativeStatusManager
Copyright © 2018 Nuxeo. All rights reserved.