Class InetServUtils
java.lang.Object
ru.bitel.bgbilling.modules.inet.server.bean.InetServUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancheckIdentifier(ConnectionSet connectionSet, int moduleId, InetServ inetServ, String identifier, int setIdentifier) Проверка на то что идентификатор подходит.static booleancheckMacAddress(ConnectionSet connectionSet, int moduleId, InetServ inetServ, byte[] macAddress, int setMacAddress) Проверка на то что MAC-адрес подходит.static voidupdateIdentifier(ConnectionSet connectionSet, int moduleId, InetServ inetServ, String identifier, boolean add) Обновление идентификатора сервиса.static voidupdateMacAddress(ConnectionSet connectionSet, int moduleId, InetServ inetServ, byte[] macAddress, boolean add) Обновление MAC-адреса сервиса.
-
Constructor Details
-
InetServUtils
public InetServUtils()
-
-
Method Details
-
updateIdentifier
public static void updateIdentifier(ConnectionSet connectionSet, int moduleId, InetServ inetServ, String identifier, boolean add) throws ru.bitel.bgbilling.common.BGException Обновление идентификатора сервиса.- Parameters:
connectionSet- соединения к БД.moduleId- ID модуля.inetServ- сервис.identifier- идентификатор.add- true если нужно добавить, false - если нужно перезаписать идентификатор сервиса.- Throws:
ru.bitel.bgbilling.common.BGException
-
checkIdentifier
public static boolean checkIdentifier(ConnectionSet connectionSet, int moduleId, InetServ inetServ, String identifier, int setIdentifier) throws ru.bitel.bgbilling.common.BGException Проверка на то что идентификатор подходит. При этом может произойти обновление иднтификатора сервиса.- Parameters:
connectionSet- соединения к БД.moduleId- ID модуля.inetServ- сервис.identifier- идентификатор.setIdentifier-- Returns:
- Throws:
ru.bitel.bgbilling.common.BGException- See Also:
-
InetDeviceRuntime.IDENTIFIER_AUTO_OFFInetDeviceRuntime.IDENTIFIER_AUTO_SETInetDeviceRuntime.IDENTIFIER_AUTO_RESETInetDeviceRuntime.IDENTIFIER_AUTO_ADD
-
updateMacAddress
public static void updateMacAddress(ConnectionSet connectionSet, int moduleId, InetServ inetServ, byte[] macAddress, boolean add) throws ru.bitel.bgbilling.common.BGException Обновление MAC-адреса сервиса.- Parameters:
connectionSet- соединения к БД.moduleId- ID модуля.inetServ- сервис.macAddress- MAC-адрес.add- true если нужно добавить, false - если нужно перезаписать идентификатор сервиса.- Throws:
ru.bitel.bgbilling.common.BGException
-
checkMacAddress
public static boolean checkMacAddress(ConnectionSet connectionSet, int moduleId, InetServ inetServ, byte[] macAddress, int setMacAddress) throws ru.bitel.bgbilling.common.BGException Проверка на то что MAC-адрес подходит. При этом может произойти обновление MAC-адреса сервиса.- Parameters:
connectionSet- соединения к БД.moduleId- ID модуля.inetServ- сервис.macAddress- MAC-адрес.setMacAddress-- Returns:
- Throws:
ru.bitel.bgbilling.common.BGException- See Also:
-
InetDeviceRuntime.MAC_ADDRESS_AUTO_OFFInetDeviceRuntime.MAC_ADDRESS_AUTO_SETInetDeviceRuntime.MAC_ADDRESS_AUTO_RESETInetDeviceRuntime.MAC_ADDRESS_AUTO_ADD
-