@Beta public final class DefaultTunnel extends AbstractModel implements Tunnel
Tunnel.State, Tunnel.Type| Constructor and Description |
|---|
DefaultTunnel(ProviderId producerName,
TunnelEndPoint src,
TunnelEndPoint dst,
Tunnel.Type type,
GroupId groupId,
TunnelId tunnelId,
TunnelName tunnelName,
Path path,
Annotations... annotations)
Creates an active infrastructure tunnel using the supplied information.
|
DefaultTunnel(ProviderId producerName,
TunnelEndPoint src,
TunnelEndPoint dst,
Tunnel.Type type,
GroupId groupId,
TunnelId tunnelId,
TunnelName tunnelName,
Path path,
NetworkResource networkRes,
Annotations... annotations)
Creates an active infrastructure tunnel using the supplied information.
|
DefaultTunnel(ProviderId producerName,
TunnelEndPoint src,
TunnelEndPoint dst,
Tunnel.Type type,
Tunnel.State state,
GroupId groupId,
TunnelId tunnelId,
TunnelName tunnelName,
Path path,
Annotations... annotations)
Creates an tunnel using the supplied information.
|
DefaultTunnel(ProviderId producerName,
TunnelEndPoint src,
TunnelEndPoint dst,
Tunnel.Type type,
Tunnel.State state,
GroupId groupId,
TunnelId tunnelId,
TunnelName tunnelName,
Path path,
NetworkResource networkRes,
Annotations... annotations)
Creates an tunnel using the supplied information.
|
| Modifier and Type | Method and Description |
|---|---|
TunnelEndPoint |
dst()
the terminal of a tunnel.
|
boolean |
equals(java.lang.Object obj) |
GroupId |
groupId()
Returns group flow table id which a tunnel match up.
|
int |
hashCode() |
Path |
path()
Returns the path of the tunnel.
|
NetworkResource |
resource()
Network resource backing the tunnel, e.g.
|
TunnelEndPoint |
src()
the origin of a tunnel.
|
Tunnel.State |
state()
Returns the tunnel state.
|
java.lang.String |
toString() |
TunnelId |
tunnelId()
Returns tunnel identify generated by ONOS as primary key.
|
TunnelName |
tunnelName()
Return the name of a tunnel.
|
Tunnel.Type |
type()
Returns the tunnel type.
|
providerIdannotationsclone, finalize, getClass, notify, notifyAll, wait, wait, waitannotationsproviderIdpublic DefaultTunnel(ProviderId producerName, TunnelEndPoint src, TunnelEndPoint dst, Tunnel.Type type, GroupId groupId, TunnelId tunnelId, TunnelName tunnelName, Path path, Annotations... annotations)
producerName - provider identitysrc - tunnel sourcedst - tunnel destinationtype - tunnel typegroupId - groupIdtunnelId - tunnelIdtunnelName - tunnel namepath - the path of tunnelannotations - optional key/value annotationspublic DefaultTunnel(ProviderId producerName, TunnelEndPoint src, TunnelEndPoint dst, Tunnel.Type type, Tunnel.State state, GroupId groupId, TunnelId tunnelId, TunnelName tunnelName, Path path, Annotations... annotations)
producerName - provider identitysrc - tunnel sourcedst - tunnel destinationtype - tunnel typestate - tunnel stategroupId - groupIdtunnelId - tunnelIdtunnelName - tunnel namepath - the path of tunnelannotations - optional key/value annotationspublic DefaultTunnel(ProviderId producerName, TunnelEndPoint src, TunnelEndPoint dst, Tunnel.Type type, GroupId groupId, TunnelId tunnelId, TunnelName tunnelName, Path path, NetworkResource networkRes, Annotations... annotations)
producerName - provider identitysrc - tunnel sourcedst - tunnel destinationtype - tunnel typegroupId - groupIdtunnelId - tunnelIdtunnelName - tunnel namepath - the path of tunnelnetworkRes - network resource of tunnelannotations - optional key/value annotationspublic DefaultTunnel(ProviderId producerName, TunnelEndPoint src, TunnelEndPoint dst, Tunnel.Type type, Tunnel.State state, GroupId groupId, TunnelId tunnelId, TunnelName tunnelName, Path path, NetworkResource networkRes, Annotations... annotations)
producerName - provider identitysrc - tunnel sourcedst - tunnel destinationtype - tunnel typestate - tunnel stategroupId - groupIdtunnelId - tunnelIdtunnelName - tunnel namepath - the path of tunnelnetworkRes - network resource of tunnelannotations - optional key/value annotationspublic TunnelEndPoint src()
Tunnelpublic TunnelEndPoint dst()
Tunnelpublic Tunnel.Type type()
Tunnelpublic Tunnel.State state()
Tunnelpublic NetworkResource resource()
Tunnelpublic TunnelId tunnelId()
Tunnelpublic GroupId groupId()
Tunnelpublic TunnelName tunnelName()
TunneltunnelName in interface Tunnelpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object