Class IntDeviceConfig.Builder
- java.lang.Object
-
- org.onosproject.net.behaviour.inbandtelemetry.IntDeviceConfig.Builder
-
- Enclosing class:
- IntDeviceConfig
public static final class IntDeviceConfig.Builder extends Object
An IntConfig object builder.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntDeviceConfigbuild()Builds the IntConfig object.IntDeviceConfig.Builderenabled(boolean enabled)Assigns the status of INT.IntDeviceConfig.BuilderwithCollectorIp(IpAddress collectorIp)Assigns a collector IP address to the IntConfig object.IntDeviceConfig.BuilderwithCollectorNextHopMac(MacAddress collectorNextHopMac)Assigns a MAC address of the next hop to the collector to the IntConfig object.IntDeviceConfig.BuilderwithCollectorPort(TpPort collectorPort)Assigns a collector UDP port to the IntConfig object.IntDeviceConfig.BuilderwithMinFlowHopLatencyChangeNs(int value)Sets the minimal interval of hop latency change for a flow.IntDeviceConfig.BuilderwithSinkIp(IpAddress sinkIp)Assigns an IP address of the sink device to the IntConfig object.IntDeviceConfig.BuilderwithSinkMac(MacAddress sinkMac)Assigns a MAC address of the sink device to the IntConfig object.IntDeviceConfig.BuilderwithTelemetrySpec(IntDeviceConfig.TelemetrySpec spec)Assigns the type of telemetry spec to the IntConfig object.
-
-
-
Method Detail
-
withCollectorIp
public IntDeviceConfig.Builder withCollectorIp(IpAddress collectorIp)
Assigns a collector IP address to the IntConfig object.- Parameters:
collectorIp- IP address of the collector- Returns:
- an IntConfig builder
-
withCollectorPort
public IntDeviceConfig.Builder withCollectorPort(TpPort collectorPort)
Assigns a collector UDP port to the IntConfig object.- Parameters:
collectorPort- UDP port number of the collector- Returns:
- an IntConfig builder
-
withCollectorNextHopMac
public IntDeviceConfig.Builder withCollectorNextHopMac(MacAddress collectorNextHopMac)
Assigns a MAC address of the next hop to the collector to the IntConfig object.- Parameters:
collectorNextHopMac- MAC address of the collector- Returns:
- an IntConfig builder
-
withSinkIp
public IntDeviceConfig.Builder withSinkIp(IpAddress sinkIp)
Assigns an IP address of the sink device to the IntConfig object.- Parameters:
sinkIp- sink device's IP address- Returns:
- an IntConfig builder
-
withSinkMac
public IntDeviceConfig.Builder withSinkMac(MacAddress sinkMac)
Assigns a MAC address of the sink device to the IntConfig object.- Parameters:
sinkMac- sink device's MAC address- Returns:
- an IntConfig builder
-
withTelemetrySpec
public IntDeviceConfig.Builder withTelemetrySpec(IntDeviceConfig.TelemetrySpec spec)
Assigns the type of telemetry spec to the IntConfig object.- Parameters:
spec- telemetry spec- Returns:
- an IntConfig builder
-
enabled
public IntDeviceConfig.Builder enabled(boolean enabled)
Assigns the status of INT. True to enable INT functionality, false otherwise.- Parameters:
enabled- the status of INT- Returns:
- an IntConfig builder
-
withMinFlowHopLatencyChangeNs
public IntDeviceConfig.Builder withMinFlowHopLatencyChangeNs(int value)
Sets the minimal interval of hop latency change for a flow.- Parameters:
value- the minimal interval of hop latency change for a flow- Returns:
- an IntConfig builder
-
build
public IntDeviceConfig build()
Builds the IntConfig object.- Returns:
- an IntConfig object
-
-