Search in sources :

Example 1 with VmPoolMap

use of org.ovirt.engine.core.common.businessentities.VmPoolMap in project ovirt-engine by oVirt.

the class AddVmToPoolCommand method executeCommand.

@Override
protected void executeCommand() {
    vmPoolDao.addVmToPool(new VmPoolMap(getVmId(), getVmPoolId()));
    setSucceeded(true);
}
Also used : VmPoolMap(org.ovirt.engine.core.common.businessentities.VmPoolMap)

Example 2 with VmPoolMap

use of org.ovirt.engine.core.common.businessentities.VmPoolMap in project ovirt-engine by oVirt.

the class VmPoolDaoTest method setUp.

@Override
public void setUp() throws Exception {
    super.setUp();
    dao = dbFacade.getVmPoolDao();
    vmDao = dbFacade.getVmDao();
    existingVmPool = dao.get(EXISTING_VM_POOL_ID);
    deletableVmPool = dao.get(DELETABLE_VM_POOL_ID);
    newVmPool = new VmPool();
    newVmPool.setName("New VM Pool");
    newVmPool.setVmPoolDescription("This is a new VM pool.");
    newVmPool.setClusterId(FixturesTool.CLUSTER);
    newVmPoolMap = new VmPoolMap(FREE_VM_ID, EXISTING_VM_POOL_ID);
}
Also used : VmPoolMap(org.ovirt.engine.core.common.businessentities.VmPoolMap) VmPool(org.ovirt.engine.core.common.businessentities.VmPool)

Aggregations

VmPoolMap (org.ovirt.engine.core.common.businessentities.VmPoolMap)2 VmPool (org.ovirt.engine.core.common.businessentities.VmPool)1