Package org.onosproject.vpls.api
Class VplsData
- java.lang.Object
-
- org.onosproject.vpls.api.VplsData
-
public final class VplsData extends java.lang.ObjectClass stores a VPLS information.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVplsData.VplsStateStates of a VPLS.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddInterface(org.onosproject.net.intf.Interface iface)voidaddInterfaces(java.util.Collection<org.onosproject.net.intf.Interface> interfaces)org.onosproject.net.EncapsulationTypeencapsulationType()voidencapsulationType(org.onosproject.net.EncapsulationType encapType)booleanequals(java.lang.Object obj)inthashCode()java.util.Set<org.onosproject.net.intf.Interface>interfaces()java.lang.Stringname()Gets name of the VPLS.static VplsDataof(java.lang.String name)Creates a VPLS data by given name.static VplsDataof(java.lang.String name, org.onosproject.net.EncapsulationType encapType)Creates a VPLS data by given name and encapsulation type.static VplsDataof(VplsData vplsData)Creates a copy of VPLS data.voidremoveInterface(org.onosproject.net.intf.Interface iface)voidremoveInterfaces(java.util.Collection<org.onosproject.net.intf.Interface> interfaces)VplsData.VplsStatestate()voidstate(VplsData.VplsState state)java.lang.StringtoString()
-
-
-
Method Detail
-
of
public static VplsData of(java.lang.String name)
Creates a VPLS data by given name. The encapsulation type of the VPLS will be NONE.- Parameters:
name- the given name- Returns:
- the VPLS data
-
of
public static VplsData of(java.lang.String name, org.onosproject.net.EncapsulationType encapType)
Creates a VPLS data by given name and encapsulation type.- Parameters:
name- the given nameencapType- the encapsulation type- Returns:
- the VPLS data
-
of
public static VplsData of(VplsData vplsData)
Creates a copy of VPLS data.- Parameters:
vplsData- the VPLS data- Returns:
- the copy of the VPLS data
-
name
public java.lang.String name()
Gets name of the VPLS.- Returns:
- the name of the VPLS
-
interfaces
public java.util.Set<org.onosproject.net.intf.Interface> interfaces()
-
encapsulationType
public org.onosproject.net.EncapsulationType encapsulationType()
-
addInterfaces
public void addInterfaces(java.util.Collection<org.onosproject.net.intf.Interface> interfaces)
-
addInterface
public void addInterface(org.onosproject.net.intf.Interface iface)
-
removeInterfaces
public void removeInterfaces(java.util.Collection<org.onosproject.net.intf.Interface> interfaces)
-
removeInterface
public void removeInterface(org.onosproject.net.intf.Interface iface)
-
encapsulationType
public void encapsulationType(org.onosproject.net.EncapsulationType encapType)
-
state
public VplsData.VplsState state()
-
state
public void state(VplsData.VplsState state)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-