tqbeibei's Posts

Hi, I am trying to catch provisioned space., which is shown on VSphere Client (inventory - virtual machine tab) Name(virtual machine) | State | provisioned space | used space| Host CP... See more...
Hi, I am trying to catch provisioned space., which is shown on VSphere Client (inventory - virtual machine tab) Name(virtual machine) | State | provisioned space | used space| Host CPU - MHz | - clsuse11 |Powered On |16.00 GB | 16.00 GB | 59 | Thank you
For example: following info is from VSphere Client Datastore - Identification | Device | Capacity | - tqcmvm_1 | vmhba2:0 | 26.00 GB | - Datastore Det... See more...
For example: following info is from VSphere Client Datastore - Identification | Device | Capacity | - tqcmvm_1 | vmhba2:0 | 26.00 GB | - Datastore Detail Extents vmhba2:0:1 25.01 GB vmhba2:0:2 1.08 GB Total Fomatted Capacity 26.00GB What API I should use to catch those extents value?
For example: following info is from VSphere Client Datastore - Identification | Device | Capacity | - tqcmvm_1 | vmhba2:0 | 26.00 GB | - Datastore Detail Ext... See more...
For example: following info is from VSphere Client Datastore - Identification | Device | Capacity | - tqcmvm_1 | vmhba2:0 | 26.00 GB | - Datastore Detail Extents vmhba2:0:1 25.01 GB vmhba2:0:2 1.08 GB Total Fomatted Capacity 26.00GB What API I should use to get the extents storage value?
thank you. I download the jar, vijava2b120090307src.jar, it works now.
ManagedObjectReference HostDatastoreBrowser = (ManagedObjectReference)_mm.getConVmware().getServiceUtil().getDynamicProperty(mor_Entity, "datastoreBrowser"); I get HostDatastoreBrowser view fr... See more...
ManagedObjectReference HostDatastoreBrowser = (ManagedObjectReference)_mm.getConVmware().getServiceUtil().getDynamicProperty(mor_Entity, "datastoreBrowser"); I get HostDatastoreBrowser view from about statement, but it's Managed Object Type is ManagedObjectReference. (Here mor_Entity is is HostSystem view) Since the HostDatastoreBrowser's Managed Object Type is ManagedObjectReference, I cannot see SearchDatastore_Task method from eclipse. (generally, eclipse will list all of the methods for a object by follwing a ".") Now how can i use the methods. or how can i change HostDatastoreBrowser's Managed Object Type from ManagedObjectReference to HostDatastoreBrowser ? Actually, the question is: How can i get a Managed Object Type, which is returned by a method? Thank you