Search in sources :

Example 6 with Hypervisor

use of com.att.cdp.zones.model.Hypervisor in project AJSC by att.

the class ConnectedHypervisor method refreshAll.

/**
 * @see com.att.cdp.zones.model.Hypervisor#refreshAll()
 */
@Override
public void refreshAll() throws ZoneException {
    Context context = getContext();
    Hypervisor copy = context.getComputeService().getHypervisor(getId());
    ObjectMapper.map(copy, this);
}
Also used : Context(com.att.cdp.zones.Context) Hypervisor(com.att.cdp.zones.model.Hypervisor)

Aggregations

Hypervisor (com.att.cdp.zones.model.Hypervisor)6 Context (com.att.cdp.zones.Context)5 OpenStackContext (com.att.cdp.openstack.OpenStackContext)4 ComputeService (com.att.cdp.zones.ComputeService)3 OpenStackHypervisor (com.att.cdp.openstack.model.OpenStackHypervisor)2 OpenStackBaseException (com.woorea.openstack.base.client.OpenStackBaseException)2 ArrayList (java.util.ArrayList)2 Ignore (org.junit.Ignore)2 Test (org.junit.Test)2