Class ControllerInfo

  • All Implemented Interfaces:
    Annotated

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

      • ControllerInfo

        public ControllerInfo​(IpAddress ip,
                              int port,
                              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,
                              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​(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 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
      • hashCode

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

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