public class INetworkAdapter extends IUnknown
IMachine.getNetworkAdapter(Long)
to get the network adapter that
is attached to a given slot in a given machine.
Each network adapter can be in one of five attachment modes, which are
represented by theNetworkAttachmentType
enumeration;
see thegetAttachmentType()
attribute.
Interface ID: {DCF47A1D-ED70-4DB8-9A4B-2646BD166905}
Constructor and Description |
---|
INetworkAdapter(java.lang.String wrapped,
org.virtualbox_7_0.ObjectRefManager objMgr,
org.virtualbox_7_0.jaxws.VboxPortType port) |
Modifier and Type | Method and Description |
---|---|
NetworkAdapterType |
getAdapterType()
Type of the virtual network adapter.
|
NetworkAttachmentType |
getAttachmentType()
Sets/Gets network attachment type of this network adapter.
|
IBandwidthGroup |
getBandwidthGroup()
The bandwidth group this network adapter is assigned to.
|
java.lang.Long |
getBootPriority()
Network boot priority of the adapter.
|
java.lang.String |
getBridgedInterface()
Name of the network interface the VM should be bridged to.
|
java.lang.Boolean |
getCableConnected()
Flag whether the adapter reports the cable as connected or not.
|
java.lang.String |
getCloudNetwork()
Name of the cloud network the VM is attached to.
|
java.lang.Boolean |
getEnabled()
Flag whether the network adapter is present in the
guest system.
|
java.lang.String |
getGenericDriver()
Name of the driver to use for the "Generic" network attachment type.
|
java.lang.String |
getHostOnlyInterface()
Name of the host only network interface the VM is attached to.
|
java.lang.String |
getHostOnlyNetwork()
Name of the host only network the VM is attached to.
|
java.lang.String |
getInternalNetwork()
Name of the internal network the VM is attached to.
|
java.lang.Long |
getLineSpeed()
Line speed reported by custom drivers, in units of 1 kbps.
|
java.lang.String |
getMACAddress()
Ethernet MAC address of the adapter, 12 hexadecimal characters.
|
INATEngine |
getNATEngine()
Points to the NAT engine which handles the network address translation
for this interface.
|
java.lang.String |
getNATNetwork()
Name of the NAT network the VM is attached to.
|
NetworkAdapterPromiscModePolicy |
getPromiscModePolicy()
The promiscuous mode policy of the network adapter when attached to an
internal network, host only network or a bridge.
|
java.util.List<java.lang.String> |
getProperties(java.lang.String names,
Holder<java.util.List<java.lang.String>> returnNames)
Returns values for a group of properties in one call.
|
java.lang.String |
getProperty(java.lang.String key)
Returns the value of the network attachment property with the given name.
|
java.lang.Long |
getSlot()
Slot number this adapter is plugged into.
|
java.lang.Boolean |
getTraceEnabled()
Flag whether network traffic from/to the network card should be traced.
|
java.lang.String |
getTraceFile()
Filename where a network trace will be stored.
|
static INetworkAdapter |
queryInterface(IUnknown obj) |
void |
setAdapterType(NetworkAdapterType value)
Type of the virtual network adapter.
|
void |
setAttachmentType(NetworkAttachmentType value)
Sets/Gets network attachment type of this network adapter.
|
void |
setBandwidthGroup(IBandwidthGroup value)
The bandwidth group this network adapter is assigned to.
|
void |
setBootPriority(java.lang.Long value)
Network boot priority of the adapter.
|
void |
setBridgedInterface(java.lang.String value)
Name of the network interface the VM should be bridged to.
|
void |
setCableConnected(java.lang.Boolean value)
Flag whether the adapter reports the cable as connected or not.
|
void |
setCloudNetwork(java.lang.String value)
Name of the cloud network the VM is attached to.
|
void |
setEnabled(java.lang.Boolean value)
Flag whether the network adapter is present in the
guest system.
|
void |
setGenericDriver(java.lang.String value)
Name of the driver to use for the "Generic" network attachment type.
|
void |
setHostOnlyInterface(java.lang.String value)
Name of the host only network interface the VM is attached to.
|
void |
setHostOnlyNetwork(java.lang.String value)
Name of the host only network the VM is attached to.
|
void |
setInternalNetwork(java.lang.String value)
Name of the internal network the VM is attached to.
|
void |
setLineSpeed(java.lang.Long value)
Line speed reported by custom drivers, in units of 1 kbps.
|
void |
setMACAddress(java.lang.String value)
Ethernet MAC address of the adapter, 12 hexadecimal characters.
|
void |
setNATNetwork(java.lang.String value)
Name of the NAT network the VM is attached to.
|
void |
setPromiscModePolicy(NetworkAdapterPromiscModePolicy value)
The promiscuous mode policy of the network adapter when attached to an
internal network, host only network or a bridge.
|
void |
setProperty(java.lang.String key,
java.lang.String value)
Sets the value of the network attachment property with the given name.
|
void |
setTraceEnabled(java.lang.Boolean value)
Flag whether network traffic from/to the network card should be traced.
|
void |
setTraceFile(java.lang.String value)
Filename where a network trace will be stored.
|
getObjMgr, getRemoteWSPort, getWrapped, releaseRemote
public INetworkAdapter(java.lang.String wrapped, org.virtualbox_7_0.ObjectRefManager objMgr, org.virtualbox_7_0.jaxws.VboxPortType port)
public NetworkAdapterType getAdapterType()
public void setAdapterType(NetworkAdapterType value)
value
- org.virtualbox_7_0.NetworkAdapterTypepublic java.lang.Long getSlot()
IMachine.getNetworkAdapter(Long)
to obtain this instance.public java.lang.Boolean getEnabled()
public void setEnabled(java.lang.Boolean value)
value
- Booleanpublic java.lang.String getMACAddress()
public void setMACAddress(java.lang.String value)
value
- Stringpublic NetworkAttachmentType getAttachmentType()
public void setAttachmentType(NetworkAttachmentType value)
value
- org.virtualbox_7_0.NetworkAttachmentTypepublic java.lang.String getBridgedInterface()
public void setBridgedInterface(java.lang.String value)
value
- Stringpublic java.lang.String getHostOnlyInterface()
public void setHostOnlyInterface(java.lang.String value)
value
- Stringpublic java.lang.String getHostOnlyNetwork()
public void setHostOnlyNetwork(java.lang.String value)
value
- Stringpublic java.lang.String getInternalNetwork()
public void setInternalNetwork(java.lang.String value)
value
- Stringpublic java.lang.String getNATNetwork()
public void setNATNetwork(java.lang.String value)
value
- Stringpublic java.lang.String getGenericDriver()
public void setGenericDriver(java.lang.String value)
value
- Stringpublic java.lang.String getCloudNetwork()
public void setCloudNetwork(java.lang.String value)
value
- Stringpublic java.lang.Boolean getCableConnected()
public void setCableConnected(java.lang.Boolean value)
value
- Booleanpublic java.lang.Long getLineSpeed()
public void setLineSpeed(java.lang.Long value)
value
- Longpublic NetworkAdapterPromiscModePolicy getPromiscModePolicy()
public void setPromiscModePolicy(NetworkAdapterPromiscModePolicy value)
value
- org.virtualbox_7_0.NetworkAdapterPromiscModePolicypublic java.lang.Boolean getTraceEnabled()
public void setTraceEnabled(java.lang.Boolean value)
value
- Booleanpublic java.lang.String getTraceFile()
public void setTraceFile(java.lang.String value)
value
- Stringpublic INATEngine getNATEngine()
public java.lang.Long getBootPriority()
public void setBootPriority(java.lang.Long value)
value
- Longpublic IBandwidthGroup getBandwidthGroup()
public void setBandwidthGroup(IBandwidthGroup value)
value
- org.virtualbox_7_0.IBandwidthGrouppublic static INetworkAdapter queryInterface(IUnknown obj)
public java.lang.String getProperty(java.lang.String key)
E_INVALIDARG
- name is null or empty.key
- Name of the property to get.public void setProperty(java.lang.String key, java.lang.String value)
E_INVALIDARG
- name is null or empty.key
- Name of the property to set.value
- Property value to set.public java.util.List<java.lang.String> getProperties(java.lang.String names, Holder<java.util.List<java.lang.String>> returnNames)
names
- Names of properties to get.returnNames
- Names of returned properties.