Package org.onosproject.net.intent
Class HostToHostIntent
- java.lang.Object
 - 
- org.onosproject.net.intent.Intent
 - 
- org.onosproject.net.intent.ConnectivityIntent
 - 
- org.onosproject.net.intent.HostToHostIntent
 
 
 
 
- 
@Beta public final class HostToHostIntent extends ConnectivityIntent
Abstraction of end-station to end-station bidirectional connectivity. 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHostToHostIntent.BuilderBuilder of a host to host 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 HostToHostIntent.Builderbuilder()Returns a new host to host intent builder.HostIdone()Returns identifier of the first host.java.lang.StringtoString()HostIdtwo()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 HostToHostIntent.Builder builder()
Returns a new host to host intent builder.- Returns:
 - host to host intent builder
 
 
- 
one
public HostId one()
Returns identifier of the first host.- Returns:
 - first host identifier
 
 
- 
two
public HostId two()
Returns identifier of the second host.- Returns:
 - second host identifier
 
 
- 
toString
public java.lang.String toString()
- Overrides:
 toStringin classjava.lang.Object
 
 - 
 
 -