Package org.onosproject.net.intent
Class TwoWayP2PIntent
- java.lang.Object
-
- org.onosproject.net.intent.Intent
-
- org.onosproject.net.intent.ConnectivityIntent
-
- org.onosproject.net.intent.TwoWayP2PIntent
-
@Beta public final class TwoWayP2PIntent extends ConnectivityIntent
Abstraction of bidirectional connectivity between two points in the network.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TwoWayP2PIntent.Builder
Builder of a point to point intent.
-
Field Summary
-
Fields inherited from class org.onosproject.net.intent.Intent
DEFAULT_INTENT_PRIORITY, MAX_PRIORITY, MIN_PRIORITY
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TwoWayP2PIntent.Builder
builder()
Returns a new two way intent builder.ConnectPoint
one()
Returns identifier of the first host.java.lang.String
toString()
ConnectPoint
two()
Returns identifier of the second host.-
Methods inherited from class org.onosproject.net.intent.ConnectivityIntent
constraints, resources, resources, selector, treatment
-
Methods inherited from class org.onosproject.net.intent.Intent
appId, bindIdGenerator, equals, hashCode, id, isInstallable, key, priority, resourceGroup, resources, unbindIdGenerator
-
-
-
-
Method Detail
-
builder
public static TwoWayP2PIntent.Builder builder()
Returns a new two way intent builder.- Returns:
- two way intent builder
-
one
public ConnectPoint one()
Returns identifier of the first host.- Returns:
- first host identifier
-
two
public ConnectPoint two()
Returns identifier of the second host.- Returns:
- second host identifier
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-