public class GatePortManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.sql.Connection |
con |
protected int |
mid |
Constructor and Description |
---|
GatePortManager(java.sql.Connection con,
int mid) |
Modifier and Type | Method and Description |
---|---|
boolean |
deleteGatePorts(int cid,
int gid) |
java.util.List<java.lang.Integer> |
findFreePorts(int cid,
int gid,
int count,
java.util.List<java.util.List<java.lang.Integer>> rangeList) |
java.util.List<Gate> |
getAvailableGates(int cid) |
java.util.Map<java.lang.String,java.lang.Object> |
getGatePortMap(int cid,
int gid) |
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
getGatePortMaps(int contractId) |
java.util.List<java.lang.Integer> |
getGatePorts(int cid,
int gid) |
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
getPortMonitorMap(int gid) |
boolean |
portsExists(int cid,
int gid,
java.util.List<java.lang.Integer> ports) |
boolean |
updateGatePorts(int cid,
int gid,
java.util.List<java.lang.Integer> ports) |
public java.util.List<java.util.Map<java.lang.String,java.lang.Object>> getGatePortMaps(int contractId) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public java.util.List<java.util.Map<java.lang.String,java.lang.Object>> getPortMonitorMap(int gid) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public java.util.Map<java.lang.String,java.lang.Object> getGatePortMap(int cid, int gid) throws java.lang.Exception
java.lang.Exception
public boolean updateGatePorts(int cid, int gid, java.util.List<java.lang.Integer> ports) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public boolean deleteGatePorts(int cid, int gid) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public java.util.List<java.lang.Integer> findFreePorts(int cid, int gid, int count, java.util.List<java.util.List<java.lang.Integer>> rangeList) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public java.util.List<Gate> getAvailableGates(int cid) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public boolean portsExists(int cid, int gid, java.util.List<java.lang.Integer> ports) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public java.util.List<java.lang.Integer> getGatePorts(int cid, int gid) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException