Class AdministrativeStatusManagerImpl
java.lang.Object
org.nuxeo.ecm.core.management.statuses.AdministrativeStatusManagerImpl
- All Implemented Interfaces:
AdministrativeStatusManager
,CoreManagementService
public class AdministrativeStatusManagerImpl
extends Object
implements AdministrativeStatusManager, CoreManagementService
Implementation class for the
AdministrativeStatusManager
service. For each Nuxeo Instance in the cluster one
instance of this class is created.- Author:
- tiry
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected final GlobalAdministrativeStatusManager
protected final Notifier[]
protected final AdministrativeStatusPersister
protected ScheduledExecutorService
protected final String
Fields inherited from interface org.nuxeo.ecm.core.management.api.AdministrativeStatusManager
ACTIVATED_EVENT, ADMINISTRATIVE_EVENT_CATEGORY, ADMINISTRATIVE_EVENT_INSTANCE, ADMINISTRATIVE_EVENT_SERVICE, ADMINISTRATIVE_INSTANCE_ID, GLOBAL_INSTANCE_AVAILABILITY, PASSIVATED_EVENT
-
Constructor Summary
ConstructorDescriptionAdministrativeStatusManagerImpl
(GlobalAdministrativeStatusManager globalManager, AdministrativeStatusPersister persister) AdministrativeStatusManagerImpl
(GlobalAdministrativeStatusManager globalManager, AdministrativeStatusPersister persister, String instanceIdentifier) -
Method Summary
Modifier and TypeMethodDescriptionMark a given resource as active.activateNuxeoInstance
(String message, String login) Mark local Nuxeo instance as active.protected AdministrativeStatus
deactivate
(String serviceIdentifier, String message, String login) Mark a given resource as non active.deactivateNuxeoInstance
(String message, String login) Mark local Nuxeo instance as non active.protected void
ListAdministrativeStatus
for all tracked resources (Servers or Services).Get theAdministrativeStatus
of a the local Nuxeo Instance.protected String
Get theAdministrativeStatus
of a given resource.protected void
notifyEvent
(String eventName, String instanceIdentifier, String serviceIdentifier) protected void
notifyOnStatus
(AdministrativeStatus status) void
void
setNuxeoInstanceStatus
(String state, String message, String login) Sets theAdministrativeStatus
of the Local Nuxeo Instance.Sets theAdministrativeStatus
of a given resource.
-
Field Details
-
persister
-
globalManager
-
serverInstanceName
-
scheduler
-
notifiers
-
-
Constructor Details
-
AdministrativeStatusManagerImpl
public AdministrativeStatusManagerImpl(GlobalAdministrativeStatusManager globalManager, AdministrativeStatusPersister persister) -
AdministrativeStatusManagerImpl
public AdministrativeStatusManagerImpl(GlobalAdministrativeStatusManager globalManager, AdministrativeStatusPersister persister, String instanceIdentifier)
-
-
Method Details
-
getServerInstanceName
-
notifyEvent
-
onNuxeoServerStartup
public void onNuxeoServerStartup() -
doNotifyAllStatuses
protected void doNotifyAllStatuses() -
onNuxeoServerShutdown
public void onNuxeoServerShutdown() -
notifyOnStatus
-
activateNuxeoInstance
Description copied from interface:AdministrativeStatusManager
Mark local Nuxeo instance as active.- Specified by:
activateNuxeoInstance
in interfaceAdministrativeStatusManager
-
deactivateNuxeoInstance
Description copied from interface:AdministrativeStatusManager
Mark local Nuxeo instance as non active.- Specified by:
deactivateNuxeoInstance
in interfaceAdministrativeStatusManager
-
getNuxeoInstanceStatus
Description copied from interface:AdministrativeStatusManager
Get theAdministrativeStatus
of a the local Nuxeo Instance.- Specified by:
getNuxeoInstanceStatus
in interfaceAdministrativeStatusManager
-
setNuxeoInstanceStatus
Description copied from interface:AdministrativeStatusManager
Sets theAdministrativeStatus
of the Local Nuxeo Instance.- Specified by:
setNuxeoInstanceStatus
in interfaceAdministrativeStatusManager
-
activate
Description copied from interface:AdministrativeStatusManager
Mark a given resource as active.- Specified by:
activate
in interfaceAdministrativeStatusManager
-
deactivate
Description copied from interface:AdministrativeStatusManager
Mark a given resource as non active.- Specified by:
deactivate
in interfaceAdministrativeStatusManager
-
setStatus
public AdministrativeStatus setStatus(String serviceIdentifier, String state, String message, String login) Description copied from interface:AdministrativeStatusManager
Sets theAdministrativeStatus
of a given resource.- Specified by:
setStatus
in interfaceAdministrativeStatusManager
-
getAllStatuses
Description copied from interface:AdministrativeStatusManager
ListAdministrativeStatus
for all tracked resources (Servers or Services).- Specified by:
getAllStatuses
in interfaceAdministrativeStatusManager
-
addLabelAndDescription
-
getStatus
Description copied from interface:AdministrativeStatusManager
Get theAdministrativeStatus
of a given resource.- Specified by:
getStatus
in interfaceAdministrativeStatusManager
-