public class IDHCPConfig extends IUnknown
{00F4A8DC-0002-4B81-0077-1DCB004571BA}
Constructor and Description |
---|
IDHCPConfig(java.lang.String wrapped,
org.virtualbox_7_0.ObjectRefManager objMgr,
org.virtualbox_7_0.jaxws.VboxPortType port) |
Modifier and Type | Method and Description |
---|---|
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.
|
getObjMgr, getRemoteWSPort, getWrapped, releaseRemote
public IDHCPConfig(java.lang.String wrapped, org.virtualbox_7_0.ObjectRefManager objMgr, org.virtualbox_7_0.jaxws.VboxPortType port)
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()