Class XconnectLoadBalancerEndpoint
- java.lang.Object
-
- org.onosproject.segmentrouting.xconnect.api.XconnectEndpoint
-
- org.onosproject.segmentrouting.xconnect.api.XconnectLoadBalancerEndpoint
-
public final class XconnectLoadBalancerEndpoint extends XconnectEndpoint
Represents a cross connect endpoint specified by load balancer.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.onosproject.segmentrouting.xconnect.api.XconnectEndpoint
XconnectEndpoint.Type
-
-
Field Summary
-
Fields inherited from class org.onosproject.segmentrouting.xconnect.api.XconnectEndpoint
LB_KEYWORD
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static XconnectLoadBalancerEndpointfromString(String s)Gets XconnectLoadBalancerEndpoint from string.inthashCode()intkey()Returns load balancer key.static XconnectLoadBalancerEndpointof(int key)Returns an instance of XconnectLoadBalancerEndpoint with given load balancer key.StringtoString()XconnectEndpoint.Typetype()Type of this endpoint.
-
-
-
Method Detail
-
key
public int key()
Returns load balancer key.- Returns:
- load balancer key.
-
of
public static XconnectLoadBalancerEndpoint of(int key)
Returns an instance of XconnectLoadBalancerEndpoint with given load balancer key.- Parameters:
key- load balancer key- Returns:
- an instance of XconnectLoadBalancerEndpoint
-
fromString
public static XconnectLoadBalancerEndpoint fromString(String s)
Gets XconnectLoadBalancerEndpoint from string.- Parameters:
s- string- Returns:
- XconnectLoadBalancerEndpoint
-
type
public XconnectEndpoint.Type type()
Description copied from class:XconnectEndpointType of this endpoint.- Specified by:
typein classXconnectEndpoint- Returns:
- type
-
-