|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IPRange
An IP range.
Method Summary | |
---|---|
boolean |
contains(Machine machine)
Checks if this IP range contains a certain machine. |
void |
delete()
Delete an IP range. |
java.net.InetAddress |
getNetworkAddress()
Returns the network address. |
java.net.InetAddress |
getSubnetMask()
Returns the subnet mask. |
void |
save()
Save the IP range. |
void |
setNetworkAddress(byte[] address)
Sets the network address. |
void |
setNetworkAddress(java.lang.String address)
Sets the network address. |
void |
setSubnetMask(byte[] mask)
Sets the subnet mask. |
void |
setSubnetMask(java.lang.String mask)
Sets the subnet mask. |
Methods inherited from interface org.apache.lenya.ac.Accreditable |
---|
getAccreditables |
Methods inherited from interface org.apache.lenya.ac.Item |
---|
configure, getDescription, getId, getItemManager, getName, setDescription, setName |
Methods inherited from interface org.apache.avalon.framework.logger.LogEnabled |
---|
enableLogging |
Methods inherited from interface org.apache.lenya.ac.Groupable |
---|
addedToGroup, getGroups, removedFromGroup, removeFromAllGroups |
Method Detail |
---|
void setNetworkAddress(java.lang.String address) throws AccessControlException
address
- A string, e.g. 192.168.0.32
AccessControlException
- when the conversion of the String to an
InetAddress failed.void setNetworkAddress(byte[] address) throws AccessControlException
address
- A byte array of the length 4.
AccessControlException
- when the conversion of the byte array to an
InetAddress failed.java.net.InetAddress getNetworkAddress()
void setSubnetMask(java.lang.String mask) throws AccessControlException
mask
- A string, e.g. 192.168.0.32
AccessControlException
- when the conversion of the String to an
InetAddress failed.void setSubnetMask(byte[] mask) throws AccessControlException
mask
- A byte array of the length 4.
AccessControlException
- when the conversion of the byte array to an
InetAddress failed.java.net.InetAddress getSubnetMask()
boolean contains(Machine machine)
machine
- The machine to check for.
void save() throws AccessControlException
AccessControlException
- if the save failedvoid delete() throws AccessControlException
AccessControlException
- if the delete failed
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |