@Beta public class DefaultTunnelDescription extends AbstractDescription implements TunnelDescription
Constructor and Description |
---|
DefaultTunnelDescription(TunnelId id,
TunnelEndPoint src,
TunnelEndPoint dst,
Tunnel.Type type,
GroupId groupId,
ProviderId producerName,
TunnelName tunnelName,
Path path,
NetworkResource networkRes,
SparseAnnotations... annotations)
Creates a tunnel description using the supplied information.
|
DefaultTunnelDescription(TunnelId id,
TunnelEndPoint src,
TunnelEndPoint dst,
Tunnel.Type type,
GroupId groupId,
ProviderId producerName,
TunnelName tunnelName,
Path path,
SparseAnnotations... annotations)
Creates a tunnel description using the supplied information.
|
Modifier and Type | Method and Description |
---|---|
TunnelEndPoint |
dst()
Returns the connection point destination.
|
GroupId |
groupId()
Returns group flow table id which a tunnel match up.
|
TunnelId |
id()
Returns the tunnel id.
|
Path |
path()
Returns the path of the tunnel.
|
ProviderId |
producerName()
Returns tunnel producer name.
|
NetworkResource |
resource()
Returns the network resource backing the tunnel, e.g.
|
TunnelEndPoint |
src()
Returns the connection point source.
|
String |
toString() |
TunnelName |
tunnelName()
Return the name of a tunnel.
|
Tunnel.Type |
type()
Returns the tunnel type.
|
annotations, equals, hashCode
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
annotations
public DefaultTunnelDescription(TunnelId id, TunnelEndPoint src, TunnelEndPoint dst, Tunnel.Type type, GroupId groupId, ProviderId producerName, TunnelName tunnelName, Path path, SparseAnnotations... annotations)
id
- TunnelIdsrc
- TunnelPoint sourcedst
- TunnelPoint destinationtype
- tunnel typegroupId
- groupIdproducerName
- tunnel producertunnelName
- tunnel namepath
- the path of tunnelannotations
- optional key/value annotationspublic DefaultTunnelDescription(TunnelId id, TunnelEndPoint src, TunnelEndPoint dst, Tunnel.Type type, GroupId groupId, ProviderId producerName, TunnelName tunnelName, Path path, NetworkResource networkRes, SparseAnnotations... annotations)
id
- TunnelIdsrc
- TunnelPoint sourcedst
- TunnelPoint destinationtype
- tunnel typegroupId
- groupIdproducerName
- tunnel producertunnelName
- tunnel namepath
- the path of tunnelnetworkRes
- network resource of tunnelannotations
- optional key/value annotationspublic TunnelId id()
TunnelDescription
id
in interface TunnelDescription
public TunnelEndPoint src()
TunnelDescription
src
in interface TunnelDescription
public TunnelEndPoint dst()
TunnelDescription
dst
in interface TunnelDescription
public Tunnel.Type type()
TunnelDescription
type
in interface TunnelDescription
public GroupId groupId()
TunnelDescription
groupId
in interface TunnelDescription
public ProviderId producerName()
TunnelDescription
producerName
in interface TunnelDescription
public TunnelName tunnelName()
TunnelDescription
tunnelName
in interface TunnelDescription
public Path path()
TunnelDescription
path
in interface TunnelDescription
public NetworkResource resource()
TunnelDescription
resource
in interface TunnelDescription