@Test public void testExeceuteInSequence() { assertTrue(_vmMgr.getExecuteInSequence(HypervisorType.XenServer) == false); assertTrue(_vmMgr.getExecuteInSequence(HypervisorType.KVM) == false); }
public boolean getExecuteInSequence(final HypervisorType hypervisorType) { if (HypervisorType.KVM == hypervisorType || HypervisorType.XenServer == hypervisorType) { return false; } else { return ExecuteInSequence.value(); } }
VirtualMachineManagerImpl extends ManagerBase implements VirtualMachineManager, VmWorkJobHandler, Listener, Configurable { public boolean getExecuteInSequence(final HypervisorType hypervisorType) { if (HypervisorType.KVM == hypervisorType || HypervisorType.XenServer == hypervisorType) { return false; } else { return ExecuteInSequence.value(); } } }
VirtualMachineManagerImpl extends ManagerBase implements VirtualMachineManager, VmWorkJobHandler, Listener, Configurable { public boolean getExecuteInSequence(final HypervisorType hypervisorType) { if (HypervisorType.KVM == hypervisorType || HypervisorType.XenServer == hypervisorType) { return false; } else { return ExecuteInSequence.value(); } } protected  VirtualMachineManagerImpl(); }
VirtualMachineManagerImpl extends ManagerBase implements VirtualMachineManager, VmWorkJobHandler, Listener, Configurable { public boolean getExecuteInSequence(final HypervisorType hypervisorType) { if (HypervisorType.KVM == hypervisorType || HypervisorType.XenServer == hypervisorType) { return false; } else { return ExecuteInSequence.value(); } } protected  VirtualMachineManagerImpl(); List<HostAllocator> getHostAllocators(); void setHostAllocators(final List<HostAllocator> hostAllocators); @Override void registerGuru(final VirtualMachineType type, final VirtualMachineGuru guru); @Override boolean configure(final String name, final Map<String, Object> xmlParams); @Override boolean start(); @Override @DB void allocate(final String vmInstanceName, final VirtualMachineTemplate template, final ServiceOffering serviceOffering, final DiskOfferingInfo rootDiskOfferingInfo,
                         final List<DiskOfferingInfo> dataDiskOfferings, final LinkedHashMap<? extends Network, List<? extends NicProfile>> auxiliaryNetworks,
                         final DeploymentPlan plan, final HypervisorType hyperType, final DiskControllerType diskControllerType
    ); @Override boolean stop(); @Override void allocate(final String vmInstanceName, final VirtualMachineTemplate template, final ServiceOffering serviceOffering, final LinkedHashMap<? extends Network,
            List<? extends NicProfile>> networks, final DeploymentPlan plan, final HypervisorType hyperType
    ); @Override void expunge(final String vmUuid); @Override void advanceExpunge(final String vmUuid); @Override boolean processAnswers(final long agentId, final long seq, final Answer[] answers); @Override boolean processCommands(final long agentId, final long seq, final Command[] cmds); @Override AgentControlAnswer processControlCommand(final long agentId, final AgentControlCommand cmd); @Override void processConnect(final Host agent, final StartupCommand[] startupCommands, final boolean forRebalance); @Override boolean processDisconnect(final long agentId, final HostStatus state); @Override boolean isRecurring(); @Override int getTimeout(); @Override boolean processTimeout(final long agentId, final long seq); @Override void start(final String vmUuid, final Map<VirtualMachineProfile.Param, Object> params); void start(final String vmUuid, final Map<VirtualMachineProfile.Param, Object> params, final DeploymentPlan planToDeploy, final DeploymentPlanner planner); @Override String getConfigComponentName(); @Override ConfigKey<?>[] getConfigKeys(); List<StoragePoolAllocator> getStoragePoolAllocators(); @Inject void setStoragePoolAllocators(final List<StoragePoolAllocator> storagePoolAllocators); @Override void advanceStart(final String vmUuid, final Map<VirtualMachineProfile.Param, Object> params, final DeploymentPlanner planner); Outcome<VirtualMachine> migrateVmAwayThroughJobQueue(final String vmUuid, final long srcHostId); Outcome<VirtualMachine> migrateVmWithStorageThroughJobQueue(
            final String vmUuid, final long srcHostId, final long destHostId,
            final Map<Long, Long> volumeToPool); @Override void advanceStart(final String vmUuid, final Map<VirtualMachineProfile.Param, Object> params, final DeploymentPlan planToDeploy, final DeploymentPlanner planner); Outcome<VirtualMachine> removeVmFromNetworkThroughJobQueue(
            final VirtualMachine vm, final Network network, final URI broadcastUri); @Override void orchestrateStart(final String vmUuid, final Map<VirtualMachineProfile.Param, Object> params, final DeploymentPlan planToDeploy, final DeploymentPlanner planner); Command cleanup(final VirtualMachine vm); @Override void stop(final String vmUuid); @Override void stopForced(final String vmUuid); Command cleanup(final String vmName); boolean getExecuteInSequence(final HypervisorType hypervisorType); boolean plugNic(final Network network, final NicTO nic, final VirtualMachineTO vm, final ReservationContext context, final DeployDestination dest); @Override void advanceStop(final String vmUuid, final boolean cleanUpEvenIfUnableToStop); boolean unplugNic(final Network network, final NicTO nic, final VirtualMachineTO vm, final ReservationContext context, final DeployDestination dest); Outcome<VirtualMachine> reconfigureVmThroughJobQueue(
            final String vmUuid, final ServiceOffering newServiceOffering, final boolean reconfiguringOnExistingHost); @Override Pair<JobInfo.Status, String> handleVmWorkJob(final VmWork work); @Override boolean stateTransitTo(final VirtualMachine vm1, final VirtualMachine.Event e, final Long hostId); @Override void destroy(final String vmUuid); @Override void storageMigration(final String vmUuid, final StoragePool destPool); @Override void migrate(final String vmUuid, final long srcHostId, final DeployDestination dest); @Override void migrateWithStorage(final String vmUuid, final long srcHostId, final long destHostId, final Map<Long, Long> volumeToPool); @Override VirtualMachineTO toVmTO(final VirtualMachineProfile profile); @Override void migrateAway(final String vmUuid, final long srcHostId); @Override boolean isVirtualMachineUpgradable(final VirtualMachine vm, final ServiceOffering offering); @Override void reboot(final String vmUuid, final Map<VirtualMachineProfile.Param, Object> params); @Override void advanceReboot(final String vmUuid, final Map<VirtualMachineProfile.Param, Object> params); void syncVMMetaData(final Map<String, String> vmMetadatum); @Override VMInstanceVO findById(final long vmId); @Override void checkIfCanUpgrade(final VirtualMachine vmInstance, final ServiceOffering newServiceOffering); @Override boolean upgradeVmDb(final long vmId, final long serviceOfferingId); @Override NicProfile addVmToNetwork(final VirtualMachine vm, final Network network, final NicProfile requested); @Override NicTO toNicTO(final NicProfile nic, final HypervisorType hypervisorType); @Override boolean removeNicFromVm(final VirtualMachine vm, final Nic nic); @Override @DB boolean removeVmFromNetwork(final VirtualMachine vm, final Network network, final URI broadcastUri); @Override void findHostAndMigrate(final String vmUuid, final Long newSvcOfferingId, final ExcludeList excludes); @Override void migrateForScale(final String vmUuid, final long srcHostId, final DeployDestination dest, final Long oldSvcOfferingId); @Override VMInstanceVO reConfigureVm(final String vmUuid, final ServiceOffering oldServiceOffering,
                                      final boolean reconfiguringOnExistingHost); Outcome<VirtualMachine> startVmThroughJobQueue(final String vmUuid,
                                                          final Map<VirtualMachineProfile.Param, Object> params,
                                                          final DeploymentPlan planToDeploy, final DeploymentPlanner planner); Outcome<VirtualMachine> stopVmThroughJobQueue(final String vmUuid, final boolean cleanup); Outcome<VirtualMachine> rebootVmThroughJobQueue(final String vmUuid,
                                                           final Map<VirtualMachineProfile.Param, Object> params); Outcome<VirtualMachine> migrateVmThroughJobQueue(final String vmUuid, final long srcHostId, final DeployDestination dest); Outcome<VirtualMachine> migrateVmForScaleThroughJobQueue(
            final String vmUuid, final long srcHostId, final DeployDestination dest, final Long newSvcOfferingId); Outcome<VirtualMachine> migrateVmStorageThroughJobQueue(
            final String vmUuid, final StoragePool destPool); Outcome<VirtualMachine> addVmToNetworkThroughJobQueue(final VirtualMachine vm, final Network network, final NicProfile requested); Outcome<VirtualMachine> removeNicFromVmThroughJobQueue(
            final VirtualMachine vm, final Nic nic); }
VirtualMachineManagerImpl extends ManagerBase implements VirtualMachineManager, VmWorkJobHandler, Listener, Configurable { public boolean getExecuteInSequence(final HypervisorType hypervisorType) { if (HypervisorType.KVM == hypervisorType || HypervisorType.XenServer == hypervisorType) { return false; } else { return ExecuteInSequence.value(); } } protected  VirtualMachineManagerImpl(); List<HostAllocator> getHostAllocators(); void setHostAllocators(final List<HostAllocator> hostAllocators); @Override void registerGuru(final VirtualMachineType type, final VirtualMachineGuru guru); @Override boolean configure(final String name, final Map<String, Object> xmlParams); @Override boolean start(); @Override @DB void allocate(final String vmInstanceName, final VirtualMachineTemplate template, final ServiceOffering serviceOffering, final DiskOfferingInfo rootDiskOfferingInfo,
                         final List<DiskOfferingInfo> dataDiskOfferings, final LinkedHashMap<? extends Network, List<? extends NicProfile>> auxiliaryNetworks,
                         final DeploymentPlan plan, final HypervisorType hyperType, final DiskControllerType diskControllerType
    ); @Override boolean stop(); @Override void allocate(final String vmInstanceName, final VirtualMachineTemplate template, final ServiceOffering serviceOffering, final LinkedHashMap<? extends Network,
            List<? extends NicProfile>> networks, final DeploymentPlan plan, final HypervisorType hyperType
    ); @Override void expunge(final String vmUuid); @Override void advanceExpunge(final String vmUuid); @Override boolean processAnswers(final long agentId, final long seq, final Answer[] answers); @Override boolean processCommands(final long agentId, final long seq, final Command[] cmds); @Override AgentControlAnswer processControlCommand(final long agentId, final AgentControlCommand cmd); @Override void processConnect(final Host agent, final StartupCommand[] startupCommands, final boolean forRebalance); @Override boolean processDisconnect(final long agentId, final HostStatus state); @Override boolean isRecurring(); @Override int getTimeout(); @Override boolean processTimeout(final long agentId, final long seq); @Override void start(final String vmUuid, final Map<VirtualMachineProfile.Param, Object> params); void start(final String vmUuid, final Map<VirtualMachineProfile.Param, Object> params, final DeploymentPlan planToDeploy, final DeploymentPlanner planner); @Override String getConfigComponentName(); @Override ConfigKey<?>[] getConfigKeys(); List<StoragePoolAllocator> getStoragePoolAllocators(); @Inject void setStoragePoolAllocators(final List<StoragePoolAllocator> storagePoolAllocators); @Override void advanceStart(final String vmUuid, final Map<VirtualMachineProfile.Param, Object> params, final DeploymentPlanner planner); Outcome<VirtualMachine> migrateVmAwayThroughJobQueue(final String vmUuid, final long srcHostId); Outcome<VirtualMachine> migrateVmWithStorageThroughJobQueue(
            final String vmUuid, final long srcHostId, final long destHostId,
            final Map<Long, Long> volumeToPool); @Override void advanceStart(final String vmUuid, final Map<VirtualMachineProfile.Param, Object> params, final DeploymentPlan planToDeploy, final DeploymentPlanner planner); Outcome<VirtualMachine> removeVmFromNetworkThroughJobQueue(
            final VirtualMachine vm, final Network network, final URI broadcastUri); @Override void orchestrateStart(final String vmUuid, final Map<VirtualMachineProfile.Param, Object> params, final DeploymentPlan planToDeploy, final DeploymentPlanner planner); Command cleanup(final VirtualMachine vm); @Override void stop(final String vmUuid); @Override void stopForced(final String vmUuid); Command cleanup(final String vmName); boolean getExecuteInSequence(final HypervisorType hypervisorType); boolean plugNic(final Network network, final NicTO nic, final VirtualMachineTO vm, final ReservationContext context, final DeployDestination dest); @Override void advanceStop(final String vmUuid, final boolean cleanUpEvenIfUnableToStop); boolean unplugNic(final Network network, final NicTO nic, final VirtualMachineTO vm, final ReservationContext context, final DeployDestination dest); Outcome<VirtualMachine> reconfigureVmThroughJobQueue(
            final String vmUuid, final ServiceOffering newServiceOffering, final boolean reconfiguringOnExistingHost); @Override Pair<JobInfo.Status, String> handleVmWorkJob(final VmWork work); @Override boolean stateTransitTo(final VirtualMachine vm1, final VirtualMachine.Event e, final Long hostId); @Override void destroy(final String vmUuid); @Override void storageMigration(final String vmUuid, final StoragePool destPool); @Override void migrate(final String vmUuid, final long srcHostId, final DeployDestination dest); @Override void migrateWithStorage(final String vmUuid, final long srcHostId, final long destHostId, final Map<Long, Long> volumeToPool); @Override VirtualMachineTO toVmTO(final VirtualMachineProfile profile); @Override void migrateAway(final String vmUuid, final long srcHostId); @Override boolean isVirtualMachineUpgradable(final VirtualMachine vm, final ServiceOffering offering); @Override void reboot(final String vmUuid, final Map<VirtualMachineProfile.Param, Object> params); @Override void advanceReboot(final String vmUuid, final Map<VirtualMachineProfile.Param, Object> params); void syncVMMetaData(final Map<String, String> vmMetadatum); @Override VMInstanceVO findById(final long vmId); @Override void checkIfCanUpgrade(final VirtualMachine vmInstance, final ServiceOffering newServiceOffering); @Override boolean upgradeVmDb(final long vmId, final long serviceOfferingId); @Override NicProfile addVmToNetwork(final VirtualMachine vm, final Network network, final NicProfile requested); @Override NicTO toNicTO(final NicProfile nic, final HypervisorType hypervisorType); @Override boolean removeNicFromVm(final VirtualMachine vm, final Nic nic); @Override @DB boolean removeVmFromNetwork(final VirtualMachine vm, final Network network, final URI broadcastUri); @Override void findHostAndMigrate(final String vmUuid, final Long newSvcOfferingId, final ExcludeList excludes); @Override void migrateForScale(final String vmUuid, final long srcHostId, final DeployDestination dest, final Long oldSvcOfferingId); @Override VMInstanceVO reConfigureVm(final String vmUuid, final ServiceOffering oldServiceOffering,
                                      final boolean reconfiguringOnExistingHost); Outcome<VirtualMachine> startVmThroughJobQueue(final String vmUuid,
                                                          final Map<VirtualMachineProfile.Param, Object> params,
                                                          final DeploymentPlan planToDeploy, final DeploymentPlanner planner); Outcome<VirtualMachine> stopVmThroughJobQueue(final String vmUuid, final boolean cleanup); Outcome<VirtualMachine> rebootVmThroughJobQueue(final String vmUuid,
                                                           final Map<VirtualMachineProfile.Param, Object> params); Outcome<VirtualMachine> migrateVmThroughJobQueue(final String vmUuid, final long srcHostId, final DeployDestination dest); Outcome<VirtualMachine> migrateVmForScaleThroughJobQueue(
            final String vmUuid, final long srcHostId, final DeployDestination dest, final Long newSvcOfferingId); Outcome<VirtualMachine> migrateVmStorageThroughJobQueue(
            final String vmUuid, final StoragePool destPool); Outcome<VirtualMachine> addVmToNetworkThroughJobQueue(final VirtualMachine vm, final Network network, final NicProfile requested); Outcome<VirtualMachine> removeNicFromVmThroughJobQueue(
            final VirtualMachine vm, final Nic nic); static final String VM_WORK_JOB_HANDLER; @Inject
    public VpcVirtualNetworkApplianceService _routerService; @Inject
    public ManagementService _mgtService; }