Class ReplicaInfoEvent

  • All Implemented Interfaces:
    org.onosproject.event.Event<ReplicaInfoEvent.Type,​org.onosproject.net.DeviceId>

    public class ReplicaInfoEvent
    extends org.onosproject.event.AbstractEvent<ReplicaInfoEvent.Type,​org.onosproject.net.DeviceId>
    Describes a device replicainfo event.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  ReplicaInfoEvent.Type
      Types of Replica info event.
    • Constructor Summary

      Constructors 
      Constructor Description
      ReplicaInfoEvent​(ReplicaInfoEvent.Type type, org.onosproject.net.DeviceId device, ReplicaInfo replicaInfo)
      Creates an event of a given type and for the specified device, and replica info.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ReplicaInfo replicaInfo()
      Returns the current replica information for the subject.
      • Methods inherited from class org.onosproject.event.AbstractEvent

        subject, time, toString, type
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ReplicaInfoEvent

        public ReplicaInfoEvent​(ReplicaInfoEvent.Type type,
                                org.onosproject.net.DeviceId device,
                                ReplicaInfo replicaInfo)
        Creates an event of a given type and for the specified device, and replica info.
        Parameters:
        type - replicainfo event type
        device - event device subject
        replicaInfo - replicainfo
    • Method Detail

      • replicaInfo

        public ReplicaInfo replicaInfo()
        Returns the current replica information for the subject.
        Returns:
        replica information for the subject