Class SystemConfigurationApplierService
java.lang.Object
com.flowable.platform.service.configuration.service.SystemConfigurationApplierService
- All Implemented Interfaces:
Lifecycle,Phased,SmartLifecycle
- Author:
- Filip Hrisafov
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Durationprotected final Stringprotected final FlowableSystemInformationServiceprotected booleanprotected Instantprotected ScheduledExecutorServiceprotected final org.slf4j.Loggerprotected final PlatformEngineprotected TaskSchedulerFields inherited from interface org.springframework.context.SmartLifecycle
DEFAULT_PHASE -
Constructor Summary
ConstructorsConstructorDescriptionSystemConfigurationApplierService(PlatformEngine platformEngine, FlowableSystemInformationService flowableSystemInformationService, String currentNodeName) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidintgetPhase()booleanvoidsetApplyRate(Duration applyRate) voidsetTaskScheduler(TaskScheduler taskScheduler) voidstart()voidstop()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.context.SmartLifecycle
isAutoStartup, isPauseable, stop
-
Field Details
-
logger
protected final org.slf4j.Logger logger -
platformEngine
-
flowableSystemInformationService
-
currentNodeName
-
lastSeenConfigurationsByType
-
taskScheduler
-
localExecutor
-
applyRate
-
lastAppliedTimestamp
-
isRunning
protected boolean isRunning
-
-
Constructor Details
-
SystemConfigurationApplierService
public SystemConfigurationApplierService(PlatformEngine platformEngine, FlowableSystemInformationService flowableSystemInformationService, String currentNodeName)
-
-
Method Details
-
applySystemConfigurationSafely
protected void applySystemConfigurationSafely() -
applySystemConfiguration
protected void applySystemConfiguration() -
start
public void start() -
stop
public void stop() -
isRunning
public boolean isRunning() -
getPhase
public int getPhase()- Specified by:
getPhasein interfacePhased- Specified by:
getPhasein interfaceSmartLifecycle
-
setTaskScheduler
-
getApplyRate
-
setApplyRate
-