Class IpResourceRange
java.lang.Object
ru.bitel.common.inet.IpRange
ru.bitel.oss.systems.inventory.resource.common.bean.IpResourceRange
- All Implemented Interfaces:
GuiTitlable,IpResourceInstance,Resource
- Direct Known Subclasses:
IpResourceAddress
public class IpResourceRange extends IpRange implements IpResourceInstance
-
Field Summary
Fields inherited from class ru.bitel.common.inet.IpRange
addressFrom, addressTo -
Constructor Summary
Constructors Constructor Description IpResourceRange()IpResourceRange(int ipResourceId, byte[] addressFrom, byte[] addressTo) -
Method Summary
Modifier and Type Method Description java.lang.StringgetGuiTitle()Строка - имя объекта.intgetIpResourceId()static voidnewIpRangeList(IpResource resource, java.util.List<IpResourceSubscription> subscriptionList, java.lang.String filter, int range, int max, java.util.List<IpResourceRange> result)Разделение ресурса на свободные диапазоны указанного размера.voidsetIpResourceId(int ipResourceId)Methods inherited from class ru.bitel.common.inet.IpRange
getAddressFrom, getAddressTo, inRange, intersects, newInstance, newInstance, newInstance, setAddressFrom, setAddressTo, toString, toString, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ru.bitel.oss.systems.inventory.resource.common.bean.IpResourceInstance
toString
-
Constructor Details
-
IpResourceRange
public IpResourceRange() -
IpResourceRange
public IpResourceRange(int ipResourceId, byte[] addressFrom, byte[] addressTo)
-
-
Method Details
-
getIpResourceId
public int getIpResourceId()- Specified by:
getIpResourceIdin interfaceIpResourceInstance
-
setIpResourceId
public void setIpResourceId(int ipResourceId)- Specified by:
setIpResourceIdin interfaceIpResourceInstance
-
newIpRangeList
public static void newIpRangeList(IpResource resource, java.util.List<IpResourceSubscription> subscriptionList, java.lang.String filter, int range, int max, java.util.List<IpResourceRange> result)Разделение ресурса на свободные диапазоны указанного размера.- Parameters:
resource-subscriptionList-range-max-
-
getGuiTitle
public java.lang.String getGuiTitle()Description copied from interface:GuiTitlableСтрока - имя объекта. Скорее всего уникальная. Используется в комбобоксах, например, итд.- Specified by:
getGuiTitlein interfaceGuiTitlable- Returns:
- Строка - представление объекта.
-