@Beta public class McastConfig extends Config<ApplicationId>
Config.FieldPresence
Constructor and Description |
---|
McastConfig() |
Modifier and Type | Method and Description |
---|---|
VlanId |
egressVlan()
Gets egress VLAN of multicast traffic.
|
VlanId |
ingressVlan()
Gets ingress VLAN of multicast traffic.
|
boolean |
isValid()
Indicates whether or not the backing JSON node contains valid data.
|
McastConfig |
setEgressVlan(VlanId vlanId)
Sets egress VLAN of multicast traffic.
|
McastConfig |
setIngressVlan(VlanId vlanId)
Sets ingress VLAN of multicast traffic.
|
apply, clear, get, get, get, get, get, get, getList, getList, hasField, hasField, hasFields, hasFields, hasOnlyFields, hasOnlyFields, init, isBoolean, isBoolean, isConnectPoint, isConnectPoint, isDecimal, isDecimal, isIntegralNumber, isIntegralNumber, isIpAddress, isIpAddress, isIpPrefix, isIpPrefix, isMacAddress, isMacAddress, isNumber, isNumber, isString, isString, isTpPort, isTpPort, isValidLength, key, node, setList, setOrClear, setOrClear, setOrClear, setOrClear, setOrClear, setOrClear, setOrClear, subject, toString
public boolean isValid()
Config
Default implementation returns true. Subclasses are expected to override this with their own validation. Implementations are free to throw a RuntimeException if data is invalid.
isValid
in class Config<ApplicationId>
public VlanId ingressVlan()
public McastConfig setIngressVlan(VlanId vlanId)
vlanId
- Ingress VLAN IDMcastConfig
public VlanId egressVlan()
public McastConfig setEgressVlan(VlanId vlanId)
vlanId
- Egress VLAN IDMcastConfig