Class ControllerInfo

  • All Implemented Interfaces:
    Annotated

    public class ControllerInfo
    extends java.lang.Object
    implements Annotated
    Represents information for a device to connect to a controller.
    • Constructor Summary

      Constructors 
      Constructor Description
      ControllerInfo​(java.lang.String target)
      Deprecated.
      in Hummingbird (1.7.0)
      ControllerInfo​(IpAddress ip, int port, java.lang.String type)
      Information for contacting the controller.
      ControllerInfo​(IpAddress ip, int port, java.lang.String type, Annotations annotations)
      Information for contacting the controller.
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      Annotations annotations()
      Returns the key/value annotations.
      boolean equals​(java.lang.Object toBeCompared)  
      int hashCode()  
      IpAddress ip()
      Exposes the ip address of the controller.
      int port()
      Exposes the tcp port of the controller.
      java.lang.String target()
      Deprecated.
      java.lang.String type()
      Exposes the type of the controller connection.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ControllerInfo

        public ControllerInfo​(IpAddress ip,
                              int port,
                              java.lang.String type)
        Information for contacting the controller.
        Parameters:
        ip - the ip address
        port - the tcp port
        type - the connection type
      • ControllerInfo

        public ControllerInfo​(IpAddress ip,
                              int port,
                              java.lang.String type,
                              Annotations annotations)
        Information for contacting the controller.
        Parameters:
        ip - the ip address
        port - the tcp port
        type - the connection type
        annotations - optional key/value annotations
      • ControllerInfo

        @Deprecated
        public ControllerInfo​(java.lang.String target)
        Deprecated.
        in Hummingbird (1.7.0)
        Information for contacting the controller, if some information is not contained in the target string because it's optional it's leaved as in the field declaration (default values).
        Parameters:
        target - column returned from ovsdb query
    • Method Detail

      • ip

        public IpAddress ip()
        Exposes the ip address of the controller.
        Returns:
        IpAddress ip address
      • port

        public int port()
        Exposes the tcp port of the controller.
        Returns:
        int tcp port
      • type

        public java.lang.String type()
        Exposes the type of the controller connection.
        Returns:
        String type
      • annotations

        public Annotations annotations()
        Description copied from interface: Annotated
        Returns the key/value annotations.
        Specified by:
        annotations in interface Annotated
        Returns:
        key/value annotations
      • target

        @Deprecated
        public java.lang.String target()
        Deprecated.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object toBeCompared)
        Overrides:
        equals in class java.lang.Object