public class InetServUtils
extends java.lang.Object
| Constructor and Description |
|---|
InetServUtils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
checkIdentifier(ConnectionSet connectionSet,
int moduleId,
InetServ inetServ,
java.lang.String identifier,
int setIdentifier)
Проверка на то что идентификатор подходит.
|
static boolean |
checkMacAddress(ConnectionSet connectionSet,
int moduleId,
InetServ inetServ,
byte[] macAddress,
int setMacAddress)
Проверка на то что MAC-адрес подходит.
|
static void |
updateIdentifier(ConnectionSet connectionSet,
int moduleId,
InetServ inetServ,
java.lang.String identifier,
boolean add)
Обновление идентификатора сервиса.
|
static void |
updateMacAddress(ConnectionSet connectionSet,
int moduleId,
InetServ inetServ,
byte[] macAddress,
boolean add)
Обновление MAC-адреса сервиса.
|
public static void updateIdentifier(ConnectionSet connectionSet, int moduleId, InetServ inetServ, java.lang.String identifier, boolean add) throws ru.bitel.bgbilling.common.BGException
connectionSet - соединения к БД.moduleId - ID модуля.inetServ - сервис.identifier - идентификатор.add - true если нужно добавить, false - если нужно перезаписать идентификатор сервиса.ru.bitel.bgbilling.common.BGExceptionpublic static boolean checkIdentifier(ConnectionSet connectionSet, int moduleId, InetServ inetServ, java.lang.String identifier, int setIdentifier) throws ru.bitel.bgbilling.common.BGException
connectionSet - соединения к БД.moduleId - ID модуля.inetServ - сервис.identifier - идентификатор.setIdentifier - ru.bitel.bgbilling.common.BGExceptionInetDeviceRuntime#IDENTIFIER_AUTO_OFF},
InetDeviceRuntime#IDENTIFIER_AUTO_SET},
InetDeviceRuntime#IDENTIFIER_AUTO_RESET},
InetDeviceRuntime#IDENTIFIER_AUTO_ADD}public static void updateMacAddress(ConnectionSet connectionSet, int moduleId, InetServ inetServ, byte[] macAddress, boolean add) throws ru.bitel.bgbilling.common.BGException
connectionSet - соединения к БД.moduleId - ID модуля.inetServ - сервис.macAddress - MAC-адрес.add - true если нужно добавить, false - если нужно перезаписать идентификатор сервиса.ru.bitel.bgbilling.common.BGExceptionpublic static boolean checkMacAddress(ConnectionSet connectionSet, int moduleId, InetServ inetServ, byte[] macAddress, int setMacAddress) throws ru.bitel.bgbilling.common.BGException
connectionSet - соединения к БД.moduleId - ID модуля.inetServ - сервис.macAddress - MAC-адрес.setMacAddress - ru.bitel.bgbilling.common.BGExceptionInetDeviceRuntime#MAC_ADDRESS_AUTO_OFF},
InetDeviceRuntime#MAC_ADDRESS_AUTO_SET},
InetDeviceRuntime#MAC_ADDRESS_AUTO_RESET},
InetDeviceRuntime#MAC_ADDRESS_AUTO_ADD}