Package com.day.cq.replication
Class ReplicationEvent
- java.lang.Object
-
- com.day.cq.replication.ReplicationEvent
-
- All Implemented Interfaces:
java.io.Serializable
public class ReplicationEvent extends java.lang.Object implements java.io.SerializableAn event fired when someReplicationActionneeds to be handled- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringEVENT_TOPICstatic java.lang.StringPATHS
-
Constructor Summary
Constructors Constructor Description ReplicationEvent(ReplicationAction replicationAction)ReplicationEvent(ReplicationAction replicationAction, boolean isLocal)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ReplicationEventfromEvent(Event evt)Convert an OSGi event to a replication event if possible.ReplicationActiongetReplicationAction()Returns the underlyingReplicationActionwhich fired this eventEventtoEvent()Create a distributable event.EventtoNonDistributableEvent()Create a non distributable event.
-
-
-
Field Detail
-
EVENT_TOPIC
public static final java.lang.String EVENT_TOPIC
- See Also:
- Constant Field Values
-
PATHS
public static final java.lang.String PATHS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ReplicationEvent
public ReplicationEvent(ReplicationAction replicationAction)
-
ReplicationEvent
public ReplicationEvent(ReplicationAction replicationAction, boolean isLocal)
-
-
Method Detail
-
getReplicationAction
public ReplicationAction getReplicationAction()
Returns the underlyingReplicationActionwhich fired this event- Returns:
- the replication action which caused the event
-
fromEvent
public static ReplicationEvent fromEvent(Event evt)
Convert an OSGi event to a replication event if possible.- Parameters:
evt- The OSGi event.- Returns:
- The replication event
-
toEvent
public Event toEvent()
Create a distributable event.- Returns:
- An event.
-
toNonDistributableEvent
public Event toNonDistributableEvent()
Create a non distributable event.- Returns:
- An event.
-
-