public class VlanManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.sql.Connection |
con |
protected int |
mid |
Constructor and Description |
---|
VlanManager(int mid,
java.sql.Connection con) |
Modifier and Type | Method and Description |
---|---|
int |
createVlan(int vid,
int gateId,
int cid) |
java.lang.Integer |
getFreeVlan(int gateId,
java.util.List<java.util.List<java.lang.Integer>> rangeList) |
int |
getUsedVlan(int gateId,
int vlanId) |
boolean |
getVlan(int gateId) |
int |
getVlan(int gateId,
int cid) |
java.util.List<java.util.List<java.lang.Integer>> |
getVlanList(int cid) |
void |
removeVlan(int vid,
int gateId,
int cid) |
public int getVlan(int gateId, int cid)
public boolean getVlan(int gateId)
public int getUsedVlan(int gateId, int vlanId)
public java.util.List<java.util.List<java.lang.Integer>> getVlanList(int cid)
public java.lang.Integer getFreeVlan(int gateId, java.util.List<java.util.List<java.lang.Integer>> rangeList)
public int createVlan(int vid, int gateId, int cid)
public void removeVlan(int vid, int gateId, int cid)