Share

VMware Infrastructure Java API

Code

Programming Languages: Java

License: BSD License

Repositories

browse code, statistics, last commit on 2009-11-16 svn co https://vijava.svn.sourceforge.net/svnroot/vijava vijava

Show:

What's happening?

  • Followup: RE: Embed VM console in java application?

    Steve & Carl, Thanks for your replies. I wanted to be able to embed this but launching a separate window could work as a workaround I suppose. thanks! Dan.

    2009-11-25 16:26:32 UTC by danraider

  • NullPointerException when call findAllByUuid

    Source: si.getSearchIndex().findAllByUuid(null, "NOT_EXIST_UUID", false, true); Exception: Exception in thread "main" java.lang.NullPointerException at com.vmware.vim25.mo.util.MorUtil.createManagedEntities(MorUtil.java:89) at com.vmware.vim25.mo.SearchIndex.findAllByUuid(SearchIndex.java:117) ......

    2009-11-25 01:38:01 UTC by nobody

  • Followup: RE: does Folder.getChildEntity cause extra hit

    You have these options: 1. Use getPropertiesByPaths() defined in any managed object. You can get all the 10 fields in one call. 2. Use retrieveProperties(ManagedObject[], String, String[]) method defined in PropertyCollectorUtil class. You can all get the 10 fields of all the 50 VMs in one call. 3. Use caching framework. -Steve.

    2009-11-24 17:08:07 UTC by sjin2008

  • Followup: RE: does Folder.getChildEntity cause extra hit

    Thanks I will look into the caching framework. I am trying to retrieve data for a large number of VMs with as few calls as possible. The number of calls is adding up if I try to get 20 fields for 50 or more vms. From looking at the SOAP traffic all the data I need is coming back in the initial InventoryNavigator.searchManagedEntities call but I can't find a way to access it. If the...

    2009-11-24 14:30:27 UTC by mm62

  • Followup: RE: does Folder.getChildEntity cause extra hit

    >Does the extra SOAP call for getChildEntity apply to all properties or only properties that are MORs? # only the property called childEntity, no other property involved. >in this code does vms[i].getName() generate a SOAP call? # yes. If you don't want extra call, you may consider the caching framework shipped in 2.0. It's still experimental, but you are welcome to give it a try. Someone...

    2009-11-23 22:56:00 UTC by sjin2008

  • Followup: RE: does Folder.getChildEntity cause extra hit

    Thanks for the reply Steve. So it looks like to get the MORs of children we would need to getChildEntity() and then getMOR() on those. Does the extra SOAP call for getChildEntity apply to all properties or only properties that are MORs? For example in this code does vms[i].getName() generate a SOAP call? ManagedEntity[] vms = new...

    2009-11-23 18:45:44 UTC by mm62

  • Followup: RE: does Folder.getChildEntity cause extra hit

    What you guessed is correct. Whenever you call getChildEntity() method, a SOAP request is sent to the server. When you get a managed object, you can call its getMOR() method to get its MOR. This getMOR() does NOT incur any SOAP call to the server. Even you call getChildEntity() method, it's very fast. With VI Java API 2.0, it's about 15 times faster than using AXIS. Unless you have...

    2009-11-23 18:15:10 UTC by sjin2008

  • does Folder.getChildEntity cause extra hit

    I am using InventoryNavigator to retrieve a list of Datacenters, Folders and VMs and then building a tree of my own objects. It seems like whenever I call getChildEntity on a folder I have retrieved it sends a transaction to the API. Is this true? Is there any way to get MORs to the children (but not the children themselves) without an additional transaction? Before I was using vijava I was...

    2009-11-23 17:58:36 UTC by mm62

  • Followup: RE: DVS backing question

    I only have one sample on how to create a DVS, may not help directly: http://vijava.svn.sourceforge.net/viewvc/vijava/trunk/src/com/vmware/vim25/mo/samples/network/AddDVS.java?revision=205&view=markup -Steve.

    2009-11-19 21:36:31 UTC by sjin2008

  • DVS backing question

    How to bind a vNIC to a port group on a DVS seems not very straight forward with the regular VMware SDK. Such a binding requires the acquisition of a DVS UUID, and when I only have a DVS/Port Group name this is a pain I am curious how the Java API handles configuring a vNIC to a DVS/port group. Is there sample code for this?.

    2009-11-19 17:21:59 UTC by pwyzorski

Our Numbers