@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.
|
providerId
annotations
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
annotations
providerId
public 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()
Tunnel
public TunnelEndPoint dst()
Tunnel
public Tunnel.Type type()
Tunnel
public Tunnel.State state()
Tunnel
public NetworkResource resource()
Tunnel
public TunnelId tunnelId()
Tunnel
public GroupId groupId()
Tunnel
public TunnelName tunnelName()
Tunnel
tunnelName
in interface Tunnel
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object