Package com.day.cq.replication
Class ReplicatedAction
- java.lang.Object
-
- com.day.cq.replication.ReplicatedAction
-
public class ReplicatedAction extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
PROPERTY_AGENT_IDS
-
Constructor Summary
Constructors Constructor Description ReplicatedAction(ReplicationAction replicationAction, java.util.List<java.lang.String> agentIds)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ReplicatedAction
fromEvent(Event evt)
Convert an OSGi event to a replication event.java.util.List<java.lang.String>
getAgentIds()
Return the agentIdsReplicationAction
getReplicationAction()
Return the ReplicationActionEvent
toEvent(boolean distributeEvents)
Create an OSGi event out of the replication event.
-
-
-
Field Detail
-
PROPERTY_AGENT_IDS
public static final java.lang.String PROPERTY_AGENT_IDS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ReplicatedAction
public ReplicatedAction(@Nonnull ReplicationAction replicationAction, java.util.List<java.lang.String> agentIds)
-
-
Method Detail
-
getReplicationAction
public ReplicationAction getReplicationAction()
Return the ReplicationAction- Returns:
- the ReplicationAction
-
getAgentIds
public java.util.List<java.lang.String> getAgentIds()
Return the agentIds- Returns:
- the agentIds
-
fromEvent
public static ReplicatedAction fromEvent(Event evt)
Convert an OSGi event to a replication event.- Parameters:
evt
- The OSGi event- Returns:
- The replication event if the OSGi event contained a replication event. Otherwise null is returned.
-
toEvent
public Event toEvent(boolean distributeEvents)
Create an OSGi event out of the replication event.- Parameters:
distributeEvents
- iftrue
a distributed event is created- Returns:
- A new OSGi event.
-
-