Package com.vmware.host
Class NIOCForDVS
- java.lang.Object
-
- com.vmware.connection.ConnectedVimServiceBase
-
- com.vmware.host.NIOCForDVS
-
@Sample(name="nioc-for-dvs", description="demonstrates how to enable NIOC for a DVSwitch") public class NIOCForDVS extends ConnectedVimServiceBaseThis sample demonstrates how to add/modify NetworkResourcePool to Distributed Virtual Switch: Parameters: url [required]: url of the web service. username [required]: username for authentication password [required]: password for authentication dvsname [required]: Distributed Virtual Switch name enablenioc : If true, enables I/O control. If false, disables network I/O control Sample usage: Enable Network I/O Control: run.bat com.vmware.host.NIOCForDVS --url [URLString] --username [User] --password [Password] --dvsname [dvsname] --enablenioc [enablenioc] Note: Sample only works for DVS 5.0 onwards.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.vmware.connection.ConnectedVimServiceBase
ConnectedVimServiceBase.ConnectionException
-
-
Field Summary
-
Fields inherited from class com.vmware.connection.ConnectedVimServiceBase
PROP_ME_NAME, SVC_INST_NAME
-
-
Constructor Summary
Constructors Constructor Description NIOCForDVS()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidrun()voidsetDvsname(java.lang.String dvsname)voidsetEnableNIOC(java.lang.String enableNIOC)-
Methods inherited from class com.vmware.connection.ConnectedVimServiceBase
basicConnectionFromConnection, connect, disconnect, getServiceInstanceReference, setConnection, setHostConnection
-
-
-
-
Method Detail
-
setDvsname
@Option(name="dvsname", required=true, description="Distributed Virtual Switch name") public void setDvsname(java.lang.String dvsname)
-
setEnableNIOC
@Option(name="enablenioc", required=true, description="If true, enables I/O control. If false, disables network I/O control") public void setEnableNIOC(java.lang.String enableNIOC)
-
run
@Action public void run() throws com.vmware.vim25.InvalidPropertyFaultMsg, com.vmware.vim25.DvsFaultFaultMsg, com.vmware.vim25.RuntimeFaultFaultMsg- Throws:
com.vmware.vim25.InvalidPropertyFaultMsgcom.vmware.vim25.DvsFaultFaultMsgcom.vmware.vim25.RuntimeFaultFaultMsg
-
-