Package io.jmix.dynmodel
Class DynamicModelAppliedClusterEvent
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
io.jmix.core.cluster.ClusterApplicationEvent
io.jmix.dynmodel.DynamicModelAppliedClusterEvent
- All Implemented Interfaces:
Serializable
Sent to all nodes of the cluster after a dynamic model has been applied and persisted. Carries no
model data: a receiving node reads the currently active settings record from the database.
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionDynamicModelAppliedClusterEvent(Object source, String nodeId, UUID settingsId) Creates the event. -
Method Summary
Modifier and TypeMethodDescriptionReturns the id of the node that applied the model.Returns the id of the applied settings record.Methods inherited from class org.springframework.context.ApplicationEvent
getTimestampMethods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
DynamicModelAppliedClusterEvent
Creates the event.- Parameters:
source- event sourcenodeId- id of the node that applied the modelsettingsId- id of the applied settings record
-
-
Method Details
-
getNodeId
Returns the id of the node that applied the model.- Returns:
- node id
-
getSettingsId
Returns the id of the applied settings record.- Returns:
- settings record id
-