Package org.onosproject.net.behaviour
Class ControllerInfo
- java.lang.Object
- 
- org.onosproject.net.behaviour.ControllerInfo
 
- 
- 
Constructor SummaryConstructors 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 SummaryAll Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Annotationsannotations()Returns the key/value annotations.booleanequals(java.lang.Object toBeCompared)inthashCode()IpAddressip()Exposes the ip address of the controller.intport()Exposes the tcp port of the controller.java.lang.Stringtarget()Deprecated.java.lang.Stringtype()Exposes the type of the controller connection.
 
- 
- 
- 
Constructor Detail- 
ControllerInfopublic 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
 
 - 
ControllerInfopublic 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- 
ippublic IpAddress ip() Exposes the ip address of the controller.- Returns:
- IpAddress ip address
 
 - 
portpublic int port() Exposes the tcp port of the controller.- Returns:
- int tcp port
 
 - 
typepublic java.lang.String type() Exposes the type of the controller connection.- Returns:
- String type
 
 - 
annotationspublic Annotations annotations() Description copied from interface:AnnotatedReturns the key/value annotations.- Specified by:
- annotationsin interface- Annotated
- Returns:
- key/value annotations
 
 - 
target@Deprecated public java.lang.String target() Deprecated.
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 - 
equalspublic boolean equals(java.lang.Object toBeCompared) - Overrides:
- equalsin class- java.lang.Object
 
 
- 
 
-