Class IpResourceNet
java.lang.Object
ru.bitel.common.inet.IpNet
ru.bitel.oss.systems.inventory.resource.common.bean.IpResourceNet
- All Implemented Interfaces:
java.io.Serializable,GuiTitlable,IpResourceInstance,Resource
public class IpResourceNet extends IpNet implements IpResourceInstance
- See Also:
- Serialized Form
-
Field Summary
-
Constructor Summary
Constructors Constructor Description IpResourceNet()IpResourceNet(int ipResourceId, byte[] subnet, int mask) -
Method Summary
Modifier and Type Method Description java.lang.StringgetGuiTitle()Строка - имя объекта.intgetIpResourceId()static voidnewIpResourceNetList(java.lang.Iterable<IpResourceRange> rangeList, int mask, int max, java.util.List<IpResourceNet> result)static voidnewIpResourceNetList(IpResource resource, java.util.List<IpResourceSubscription> subscriptionList, java.lang.String filter, int mask, int max, java.util.List<IpResourceNet> result)Разделение ресурса на свободные диапазоны и последуещее разделение на подсети.voidsetIpResourceId(int ipResourceId)Methods inherited from class ru.bitel.common.inet.IpNet
equals, getBroadcast, getBroadcast, getHostMax, getHostMin, getMask, getMask, getMaxIp, getNetmask, getNetmask, getNetmaskWildcard, getNetmaskWildcard, getSubnet, hashCode, inNet, inNet, maskToInt, newInstance, setMask, setSubnet, toRFCString, toString, toString, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface ru.bitel.oss.systems.inventory.resource.common.bean.IpResourceInstance
toString
-
Constructor Details
-
IpResourceNet
public IpResourceNet() -
IpResourceNet
public IpResourceNet(int ipResourceId, byte[] subnet, int mask)
-
-
Method Details
-
getIpResourceId
public int getIpResourceId()- Specified by:
getIpResourceIdin interfaceIpResourceInstance
-
setIpResourceId
public void setIpResourceId(int ipResourceId)- Specified by:
setIpResourceIdin interfaceIpResourceInstance
-
newIpResourceNetList
public static void newIpResourceNetList(IpResource resource, java.util.List<IpResourceSubscription> subscriptionList, java.lang.String filter, int mask, int max, java.util.List<IpResourceNet> result)Разделение ресурса на свободные диапазоны и последуещее разделение на подсети.- Parameters:
resource-subscriptionList-mask-max-result-
-
newIpResourceNetList
public static void newIpResourceNetList(java.lang.Iterable<IpResourceRange> rangeList, int mask, int max, java.util.List<IpResourceNet> result) -
getGuiTitle
public java.lang.String getGuiTitle()Description copied from interface:GuiTitlableСтрока - имя объекта. Скорее всего уникальная. Используется в комбобоксах, например, итд.- Specified by:
getGuiTitlein interfaceGuiTitlable- Returns:
- Строка - представление объекта.
-