|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.virtualbox_4_2.IUnknown
org.virtualbox_4_2.INetworkAdapter
public class INetworkAdapter
Represents a virtual network adapter that is attached to a virtual machine.
Each virtual machine has a fixed number of network adapter slots with one
instance of this attached to each of them. Call
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 the NetworkAttachmentType
enumeration;
see the getAttachmentType()
attribute.
Interface ID: {EFA0F965-63C7-4C60-AFDF-B1CC9943B9C0}
Field Summary |
---|
Fields inherited from class org.virtualbox_4_2.IUnknown |
---|
obj, port |
Constructor Summary | |
---|---|
INetworkAdapter(java.lang.String wrapped,
org.virtualbox_4_2.jaxws.VboxPortType port)
|
Method Summary | |
---|---|
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.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 |
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 |
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 |
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. |
Methods inherited from class org.virtualbox_4_2.IUnknown |
---|
getRemoteWSPort, getWrapped, releaseRemote |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public INetworkAdapter(java.lang.String wrapped, org.virtualbox_4_2.jaxws.VboxPortType port)
Method Detail |
---|
public NetworkAdapterType getAdapterType()
public void setAdapterType(NetworkAdapterType value)
value
- org.virtualbox_4_2.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_4_2.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 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.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_4_2.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_4_2.IBandwidthGrouppublic static INetworkAdapter queryInterface(IUnknown obj)
public java.lang.String getProperty(java.lang.String key)
key
- Name of the property to get.
E_INVALIDARG | name is null or empty. |
public void setProperty(java.lang.String key, java.lang.String value)
key
- Name of the property to set.value
- Property value to set.
Expected result codes:
E_INVALIDARG | name is null or empty. |
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.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |