Package org.onosproject.net.behaviour
Class ControllerInfo
- java.lang.Object
-
- org.onosproject.net.behaviour.ControllerInfo
-
-
Constructor Summary
Constructors Constructor Description ControllerInfo(String target)
Deprecated.in Hummingbird (1.7.0)ControllerInfo(IpAddress ip, int port, String type)
Information for contacting the controller.ControllerInfo(IpAddress ip, int port, 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(Object toBeCompared)
int
hashCode()
IpAddress
ip()
Exposes the ip address of the controller.int
port()
Exposes the tcp port of the controller.String
target()
Deprecated.String
type()
Exposes the type of the controller connection.
-
-
-
Constructor Detail
-
ControllerInfo
public ControllerInfo(IpAddress ip, int port, String type)
Information for contacting the controller.- Parameters:
ip
- the ip addressport
- the tcp porttype
- the connection type
-
ControllerInfo
public ControllerInfo(IpAddress ip, int port, String type, Annotations annotations)
Information for contacting the controller.- Parameters:
ip
- the ip addressport
- the tcp porttype
- the connection typeannotations
- 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 interfaceAnnotated
- Returns:
- key/value annotations
-
target
@Deprecated public String target()
Deprecated.
-
-