Class KieModuleSwappingEvent
- java.lang.Object
-
- java.util.EventObject
-
- org.springframework.context.ApplicationEvent
-
- de.hybris.platform.servicelayer.event.events.AbstractEvent
-
- de.hybris.platform.ruleengine.event.KieModuleSwappingEvent
-
- All Implemented Interfaces:
ClusterAwareEvent,java.io.Serializable
public class KieModuleSwappingEvent extends AbstractEvent implements ClusterAwareEvent
The Event is fired on Rule Engine initialization to propagate the update to other nodes.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description KieModuleSwappingEvent(java.lang.String rulesModuleName, java.lang.String deployedReleaseIdVersion)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanPublish(PublishEventContext publishEventContext)Decide whether this event should be broadcasted/received.java.lang.StringgetDeployedReleaseIdVersion()java.lang.StringgetRulesModuleName()-
Methods inherited from class de.hybris.platform.servicelayer.event.events.AbstractEvent
getScope, getSource, isFromCluster, setFromCluster, setScope, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface de.hybris.platform.servicelayer.event.ClusterAwareEvent
publish
-
-
-
-
Method Detail
-
canPublish
public boolean canPublish(PublishEventContext publishEventContext)
Description copied from interface:ClusterAwareEventDecide whether this event should be broadcasted/received.- Specified by:
canPublishin interfaceClusterAwareEvent- Parameters:
publishEventContext- context object containing all necessary information about target and source node Id's as well as target node groups.- Returns:
trueif event should be published from source cluster node to target cluster node
-
getRulesModuleName
public java.lang.String getRulesModuleName()
-
getDeployedReleaseIdVersion
public java.lang.String getDeployedReleaseIdVersion()
-
-