public static final class DefaultTunnelStatistics.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
DefaultTunnelStatistics |
build()
Creates a TunnelStatistics object.
|
DefaultTunnelStatistics.Builder |
setAlarms(java.util.List<java.lang.String> alarms)
Set alarms.
|
DefaultTunnelStatistics.Builder |
setBwUtilization(double bwUtilization)
set bandwidth utilization.
|
DefaultTunnelStatistics.Builder |
setFlowDelay(java.time.Duration flowDelay)
Set flow delay.
|
DefaultTunnelStatistics.Builder |
setPacketLossRatio(double packetLossRatio)
Set packet loss ratio.
|
DefaultTunnelStatistics.Builder |
setTunnelId(TunnelId tunnelId)
Set tunnel id.
|
public DefaultTunnelStatistics.Builder setTunnelId(TunnelId tunnelId)
tunnelId
- tunnel idpublic DefaultTunnelStatistics.Builder setBwUtilization(double bwUtilization)
bwUtilization
- bandwidth utilizationpublic DefaultTunnelStatistics.Builder setPacketLossRatio(double packetLossRatio)
packetLossRatio
- packet loss ratiopublic DefaultTunnelStatistics.Builder setFlowDelay(java.time.Duration flowDelay)
flowDelay
- flow delaypublic DefaultTunnelStatistics.Builder setAlarms(java.util.List<java.lang.String> alarms)
alarms
- alarms of a tunnelpublic DefaultTunnelStatistics build()