Class ReplicatedAction


  • public class ReplicatedAction
    extends java.lang.Object
    • 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 - if true a distributed event is created
        Returns:
        A new OSGi event.