org.redhat.vmtruckloader.vmware
Class VMWareTemplate

java.lang.Object
  extended by org.redhat.vmtruckloader.vmware.VMWareTemplate

public class VMWareTemplate
extends Object

Helper class that simplifies performing actions in VMWare.

This class manages the lifecycle VMWare ServiceInstances (i.e. connections).

This implementation is based on the Spring HibernateTemplate and HibernateCallback architecture (although a lot simpler).

Author:
Duncan Doyle, Romain Pelisse - romain@redhat.com

Constructor Summary
VMWareTemplate()
           
 
Method Summary
<T> T
execute(VMWareActionCallback<T> action)
           
 void setCredential(String username, String password, URL vCenterURL)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VMWareTemplate

public VMWareTemplate()
Method Detail

setCredential

public void setCredential(String username,
                          String password,
                          URL vCenterURL)

execute

public <T> T execute(VMWareActionCallback<T> action)


Copyright © 2013. All Rights Reserved.