|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.virtualbox_7_0.IUnknown
org.virtualbox_7_0.IDHCPConfig
public class IDHCPConfig
The DHCP server has several configuration levels: global, group and
individual MAC. This interface implements the settings common to
each level.
Interface ID: {00F4A8DC-0002-4B81-0077-1DCB004571BA}
Field Summary |
---|
Fields inherited from class org.virtualbox_7_0.IUnknown |
---|
obj, objMgr, port |
Constructor Summary | |
---|---|
IDHCPConfig(java.lang.String wrapped,
org.virtualbox_7_0.ObjectRefManager objMgr,
org.virtualbox_7_0.jaxws.VboxPortType port)
|
Method Summary | |
---|---|
java.util.List<java.lang.String> |
getAllOptions(Holder<java.util.List<DHCPOption>> options,
Holder<java.util.List<DHCPOptionEncoding>> encodings)
Gets all DHCP options and their values |
java.lang.Long |
getDefaultLeaseTime()
The default lease time in seconds, ignored if zero. |
java.util.List<DHCPOption> |
getForcedOptions()
List of DHCP options which should be forced upon the clients in this config scope when they are available, whether the clients asks for them or not. |
java.lang.Long |
getMaxLeaseTime()
The maximum lease time in seconds, ignored if zero. |
java.lang.Long |
getMinLeaseTime()
The minimum lease time in seconds, ignored if zero. |
java.lang.String |
getOption(DHCPOption option,
Holder<DHCPOptionEncoding> encoding)
Gets the value of a single DHCP option. |
DHCPConfigScope |
getScope()
Indicates the kind of config this is (mostly for IDHCPIndividualConfig). |
java.util.List<DHCPOption> |
getSuppressedOptions()
List of DHCP options which should not be sent to the clients in this config scope. |
static IDHCPConfig |
queryInterface(IUnknown obj)
|
void |
remove()
Remove this group or individual configuration. |
void |
removeAllOptions()
Removes all the options. |
void |
removeOption(DHCPOption option)
Removes the given DHCP option. |
void |
setDefaultLeaseTime(java.lang.Long value)
The default lease time in seconds, ignored if zero. |
void |
setForcedOptions(java.util.List<DHCPOption> value)
List of DHCP options which should be forced upon the clients in this config scope when they are available, whether the clients asks for them or not. |
void |
setMaxLeaseTime(java.lang.Long value)
The maximum lease time in seconds, ignored if zero. |
void |
setMinLeaseTime(java.lang.Long value)
The minimum lease time in seconds, ignored if zero. |
void |
setOption(DHCPOption option,
DHCPOptionEncoding encoding,
java.lang.String value)
Sets a DHCP option. |
void |
setSuppressedOptions(java.util.List<DHCPOption> value)
List of DHCP options which should not be sent to the clients in this config scope. |
Methods inherited from class org.virtualbox_7_0.IUnknown |
---|
getObjMgr, getRemoteWSPort, getWrapped, releaseRemote |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IDHCPConfig(java.lang.String wrapped, org.virtualbox_7_0.ObjectRefManager objMgr, org.virtualbox_7_0.jaxws.VboxPortType port)
Method Detail |
---|
public DHCPConfigScope getScope()
public java.lang.Long getMinLeaseTime()
public void setMinLeaseTime(java.lang.Long value)
value
- Longpublic java.lang.Long getDefaultLeaseTime()
public void setDefaultLeaseTime(java.lang.Long value)
value
- Longpublic java.lang.Long getMaxLeaseTime()
public void setMaxLeaseTime(java.lang.Long value)
value
- Longpublic java.util.List<DHCPOption> getForcedOptions()
public void setForcedOptions(java.util.List<DHCPOption> value)
value
- List<org.virtualbox_7_0.DHCPOption>public java.util.List<DHCPOption> getSuppressedOptions()
public void setSuppressedOptions(java.util.List<DHCPOption> value)
value
- List<org.virtualbox_7_0.DHCPOption>public static IDHCPConfig queryInterface(IUnknown obj)
public void setOption(DHCPOption option, DHCPOptionEncoding encoding, java.lang.String value)
option
- The DHCP option.encoding
- The value encoding.value
- The DHCP option value. The exact format depends on the DHCP
option value and encoding, see seeDHCPOption
for theDHCPOptionEncoding.Normal
format.public void removeOption(DHCPOption option)
public void removeAllOptions()
IDHCPServer.getNetworkMask()
attribute
and therefore cannot be removed.
public java.lang.String getOption(DHCPOption option, Holder<DHCPOptionEncoding> encoding)
option
- The DHCP option being sought.encoding
- The value encoding.
DHCPOption
for theDHCPOptionEncoding.Normal
format.public java.util.List<java.lang.String> getAllOptions(Holder<java.util.List<DHCPOption>> options, Holder<java.util.List<DHCPOptionEncoding>> encodings)
options
- Array containing the DHCP option numbers.encodings
- Array of value encodings that runs parallel to options.
public void remove()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |