Class SAPRFCDestinationRemoveEvent
- java.lang.Object
-
- java.util.EventObject
-
- org.springframework.context.ApplicationEvent
-
- de.hybris.platform.servicelayer.event.events.AbstractEvent
-
- de.hybris.platform.sap.core.configuration.rfc.event.SAPRFCDestinationEvent
-
- de.hybris.platform.sap.core.configuration.rfc.event.SAPRFCDestinationRemoveEvent
-
- All Implemented Interfaces:
ClusterAwareEvent,java.io.Serializable
public class SAPRFCDestinationRemoveEvent extends SAPRFCDestinationEvent implements ClusterAwareEvent
Event is triggered if a RFC Destination gets deleted.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.sap.core.configuration.rfc.event.SAPRFCDestinationEvent
JCO_TRACE_LEVEL, JCO_TRACE_PATH, RFC_DESTINATION_NAME
-
-
Constructor Summary
Constructors Constructor Description SAPRFCDestinationRemoveEvent()Default constructor.SAPRFCDestinationRemoveEvent(java.lang.String rfcDestinationName)Default constructor using RFC destination name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanpublish(int sourceNodeId, int targetNodeId)Decide whether this event should be broadcasted/received.-
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
canPublish
-
-
-
-
Constructor Detail
-
SAPRFCDestinationRemoveEvent
public SAPRFCDestinationRemoveEvent()
Default constructor.
-
SAPRFCDestinationRemoveEvent
public SAPRFCDestinationRemoveEvent(java.lang.String rfcDestinationName)
Default constructor using RFC destination name.- Parameters:
rfcDestinationName- RFC destination name
-
-
Method Detail
-
publish
public boolean publish(int sourceNodeId, int targetNodeId)Description copied from interface:ClusterAwareEventDecide whether this event should be broadcasted/received. Examples arereturn (sourceNodeId==targetNodeId );=> will only publish to local clusterreturn true;=> will publish to all nodesreturn (targetNodeId==14);=> publish to dedicated node regardless of source
- Specified by:
publishin interfaceClusterAwareEvent- Returns:
trueif event should be published from source cluster node to target cluster node
-
-