test_class.declarator: VMNAME = "test"
test_class.modifier: private static final
test_class.original_string: private static final String VMNAME = "test";
test_class.type: String
test_class.var_name: VMNAME
test_class.declarator: _hyperVisorType = "kvm"
test_class.original_string: String _hyperVisorType = "kvm";
test_class.type: String
test_class.var_name: _hyperVisorType
test_class.declarator: _random = new Random()
test_class.original_string: Random _random = new Random();
test_class.type: Random
test_class.var_name: _random
test_class.declarator: libvirtComputingResource
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private LibvirtComputingResource libvirtComputingResource;
test_class.type: LibvirtComputingResource
test_class.var_name: libvirtComputingResource
test_class.file: cosmic-agent/src/test/java/com/cloud/agent/resource/kvm/LibvirtComputingResourceTest.java
test_class.identifier: LibvirtComputingResourceTest
test_case.body: @Test
      public void testcreateVmFromSpecWithTopology6() {
          final int id = this._random.nextInt(65534);
          final String name = "test-instance-1";
  
          final int cpus = 12;
          final int minRam = 256 * 1024;
          final int maxRam = 512 * 1024;
  
          final String os = "Ubuntu";
  
          final String vncPassword = "mySuperSecretPassword";
  
          final LibvirtComputingResource lcr = new LibvirtComputingResource();
          final VirtualMachineTO to = new VirtualMachineTO(id, name, VirtualMachineType.User, cpus,
                  minRam, maxRam, BootloaderType.HVM, os, false, false, vncPassword);
          to.setUuid("b0f0a72d-7efb-3cad-a8ff-70ebf30b3af9");
  
          final LibvirtVmDef vm = lcr.createVmFromSpec(to);
          vm.setHvsType(this._hyperVisorType);
  
          verifyVm(to, vm);
      }
test_case.class_method_signature: LibvirtComputingResourceTest.testcreateVmFromSpecWithTopology6()
test_case.full_signature: @Test public void testcreateVmFromSpecWithTopology6()
test_case.identifier: testcreateVmFromSpecWithTopology6
test_case.invocations: nextInt setUuid createVmFromSpec setHvsType verifyVm
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testcreateVmFromSpecWithTopology6()
focal_class.declarator: SSHKEYSPATH = "/root/.ssh"
focal_class.modifier: public static final
focal_class.original_string: public static final String SSHKEYSPATH = "/root/.ssh";
focal_class.type: String
focal_class.var_name: SSHKEYSPATH
focal_class.declarator: SSHPRVKEYPATH = SSHKEYSPATH + File.separator + "id_rsa.cloud"
focal_class.modifier: public static final
focal_class.original_string: public static final String SSHPRVKEYPATH = SSHKEYSPATH + File.separator + "id_rsa.cloud";
focal_class.type: String
focal_class.var_name: SSHPRVKEYPATH
focal_class.declarator: SSHPUBKEYPATH = SSHKEYSPATH + File.separator + "id_rsa.pub.cloud"
focal_class.modifier: public static final
focal_class.original_string: public static final String SSHPUBKEYPATH = SSHKEYSPATH + File.separator + "id_rsa.pub.cloud";
focal_class.type: String
focal_class.var_name: SSHPUBKEYPATH
focal_class.declarator: BASH_SCRIPT_PATH = "/bin/bash"
focal_class.modifier: public static final
focal_class.original_string: public static final String BASH_SCRIPT_PATH = "/bin/bash";
focal_class.type: String
focal_class.var_name: BASH_SCRIPT_PATH
focal_class.declarator: DEFAULT_OVS_VIF_DRIVER_CLASS = "com.cloud.agent.resource.kvm.vif.OvsVifDriver"
focal_class.modifier: protected static final
focal_class.original_string: protected static final String DEFAULT_OVS_VIF_DRIVER_CLASS = "com.cloud.agent.resource.kvm.vif.OvsVifDriver";
focal_class.type: String
focal_class.var_name: DEFAULT_OVS_VIF_DRIVER_CLASS
focal_class.declarator: DEFAULT_BRIDGE_VIF_DRIVER_CLASS = "com.cloud.agent.resource.kvm.vif.BridgeVifDriver"
focal_class.modifier: protected static final
focal_class.original_string: protected static final String DEFAULT_BRIDGE_VIF_DRIVER_CLASS = "com.cloud.agent.resource.kvm.vif.BridgeVifDriver";
focal_class.type: String
focal_class.var_name: DEFAULT_BRIDGE_VIF_DRIVER_CLASS
focal_class.declarator: s_powerStatesTable
focal_class.modifier: protected static final
focal_class.original_string: protected static final HashMap<DomainState, PowerState> s_powerStatesTable;
focal_class.type: HashMap<DomainState, PowerState>
focal_class.var_name: s_powerStatesTable
focal_class.declarator: logger = LoggerFactory.getLogger(LibvirtComputingResource.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger logger = LoggerFactory.getLogger(LibvirtComputingResource.class);
focal_class.type: Logger
focal_class.var_name: logger
focal_class.declarator: LIBVIRT_EVENT_LOOP
focal_class.modifier: private static final
focal_class.original_string: private static final Thread LIBVIRT_EVENT_LOOP;
focal_class.type: Thread
focal_class.var_name: LIBVIRT_EVENT_LOOP
focal_class.declarator: libvirtComputingResourceProperties = new LibvirtComputingResourceProperties()
focal_class.modifier: private final
focal_class.original_string: private final LibvirtComputingResourceProperties libvirtComputingResourceProperties = new LibvirtComputingResourceProperties();
focal_class.type: LibvirtComputingResourceProperties
focal_class.var_name: libvirtComputingResourceProperties
focal_class.declarator: agentConfiguration
focal_class.modifier: private
focal_class.original_string: private AgentConfiguration agentConfiguration;
focal_class.type: AgentConfiguration
focal_class.var_name: agentConfiguration
focal_class.declarator: pifs = new HashMap<>()
focal_class.modifier: private final
focal_class.original_string: private final Map<String, String> pifs = new HashMap<>();
focal_class.type: Map<String, String>
focal_class.var_name: pifs
focal_class.declarator: vmStats = new ConcurrentHashMap<>()
focal_class.modifier: private final
focal_class.original_string: private final Map<String, VmStats> vmStats = new ConcurrentHashMap<>();
focal_class.type: Map<String, VmStats>
focal_class.var_name: vmStats
focal_class.declarator: libvirtUtilitiesHelper = new LibvirtUtilitiesHelper()
focal_class.modifier: private final
focal_class.original_string: private final LibvirtUtilitiesHelper libvirtUtilitiesHelper = new LibvirtUtilitiesHelper();
focal_class.type: LibvirtUtilitiesHelper
focal_class.var_name: libvirtUtilitiesHelper
focal_class.declarator: hypervisorLibvirtVersion
focal_class.modifier: private
focal_class.original_string: private long hypervisorLibvirtVersion;
focal_class.type: long
focal_class.var_name: hypervisorLibvirtVersion
focal_class.declarator: hypervisorQemuVersion
focal_class.modifier: private
focal_class.original_string: private long hypervisorQemuVersion;
focal_class.type: long
focal_class.var_name: hypervisorQemuVersion
focal_class.declarator: hypervisorPath
focal_class.modifier: private
focal_class.original_string: private String hypervisorPath;
focal_class.type: String
focal_class.var_name: hypervisorPath
focal_class.declarator: privateIp
focal_class.modifier: private
focal_class.original_string: private String privateIp;
focal_class.type: String
focal_class.var_name: privateIp
focal_class.declarator: localGateway
focal_class.modifier: private
focal_class.original_string: private String localGateway;
focal_class.type: String
focal_class.var_name: localGateway
focal_class.declarator: diskActivityCheckEnabled
focal_class.modifier: private
focal_class.original_string: private boolean diskActivityCheckEnabled;
focal_class.type: boolean
focal_class.var_name: diskActivityCheckEnabled
focal_class.declarator: diskActivityCheckFileSizeMin = 10485760
focal_class.modifier: private final
focal_class.original_string: private final long diskActivityCheckFileSizeMin = 10485760;
focal_class.type: long
focal_class.var_name: diskActivityCheckFileSizeMin
focal_class.declarator: diskActivityCheckTimeoutSeconds = 120
focal_class.modifier: private
focal_class.original_string: private int diskActivityCheckTimeoutSeconds = 120;
focal_class.type: int
focal_class.var_name: diskActivityCheckTimeoutSeconds
focal_class.declarator: diskActivityInactiveThresholdMilliseconds = 30000
focal_class.modifier: private
focal_class.original_string: private long diskActivityInactiveThresholdMilliseconds = 30000;
focal_class.type: long
focal_class.var_name: diskActivityInactiveThresholdMilliseconds
focal_class.declarator: rngBackendModel = RngBackendModel.RANDOM
focal_class.modifier: private final
focal_class.original_string: private final RngBackendModel rngBackendModel = RngBackendModel.RANDOM;
focal_class.type: RngBackendModel
focal_class.var_name: rngBackendModel
focal_class.declarator: rngPath = "/dev/random"
focal_class.modifier: private final
focal_class.original_string: private final String rngPath = "/dev/random";
focal_class.type: String
focal_class.var_name: rngPath
focal_class.declarator: cpuStat = new CpuStat()
focal_class.modifier: private final
focal_class.original_string: private final CpuStat cpuStat = new CpuStat();
focal_class.type: CpuStat
focal_class.var_name: cpuStat
focal_class.declarator: memStat = new MemStat()
focal_class.modifier: private final
focal_class.original_string: private final MemStat memStat = new MemStat();
focal_class.type: MemStat
focal_class.var_name: memStat
focal_class.declarator: storageHandler
focal_class.modifier: private
focal_class.original_string: private StorageSubsystemCommandHandler storageHandler;
focal_class.type: StorageSubsystemCommandHandler
focal_class.var_name: storageHandler
focal_class.declarator: ifNamePatterns = {
              "^eth",
              "^bond",
              "^vlan",
              "^vx",
              "^em",
              "^ens",
              "^eno",
              "^enp",
              "^team",
              "^enx",
              "^p\\d+p\\d+"
      }
focal_class.modifier: private final
focal_class.original_string: private final String[] ifNamePatterns = {
              "^eth",
              "^bond",
              "^vlan",
              "^vx",
              "^em",
              "^ens",
              "^eno",
              "^enp",
              "^team",
              "^enx",
              "^p\\d+p\\d+"
      };
focal_class.type: String[]
focal_class.var_name: ifNamePatterns
focal_class.declarator: versionstringpath
focal_class.modifier: private
focal_class.original_string: private String versionstringpath;
focal_class.type: String
focal_class.var_name: versionstringpath
focal_class.declarator: sendConfigPropertiesPath
focal_class.modifier: private
focal_class.original_string: private String sendConfigPropertiesPath;
focal_class.type: String
focal_class.var_name: sendConfigPropertiesPath
focal_class.declarator: manageSnapshotPath
focal_class.modifier: private
focal_class.original_string: private String manageSnapshotPath;
focal_class.type: String
focal_class.var_name: manageSnapshotPath
focal_class.declarator: createTmplPath
focal_class.modifier: private
focal_class.original_string: private String createTmplPath;
focal_class.type: String
focal_class.var_name: createTmplPath
focal_class.declarator: heartBeatPath
focal_class.modifier: private
focal_class.original_string: private String heartBeatPath;
focal_class.type: String
focal_class.var_name: heartBeatPath
focal_class.declarator: ovsPvlanDhcpHostPath
focal_class.modifier: private
focal_class.original_string: private String ovsPvlanDhcpHostPath;
focal_class.type: String
focal_class.var_name: ovsPvlanDhcpHostPath
focal_class.declarator: ovsPvlanVmPath
focal_class.modifier: private
focal_class.original_string: private String ovsPvlanVmPath;
focal_class.type: String
focal_class.var_name: ovsPvlanVmPath
focal_class.declarator: routerProxyPath
focal_class.modifier: private
focal_class.original_string: private String routerProxyPath;
focal_class.type: String
focal_class.var_name: routerProxyPath
focal_class.declarator: hvVersion
focal_class.modifier: private
focal_class.original_string: private long hvVersion;
focal_class.type: long
focal_class.var_name: hvVersion
focal_class.declarator: virtRouterResource
focal_class.modifier: private
focal_class.original_string: private VirtualRoutingResource virtRouterResource;
focal_class.type: VirtualRoutingResource
focal_class.var_name: virtRouterResource
focal_class.declarator: pingTestPath
focal_class.modifier: private
focal_class.original_string: private String pingTestPath;
focal_class.type: String
focal_class.var_name: pingTestPath
focal_class.declarator: updateHostPasswdPath
focal_class.modifier: private
focal_class.original_string: private String updateHostPasswdPath;
focal_class.type: String
focal_class.var_name: updateHostPasswdPath
focal_class.declarator: monitor
focal_class.modifier: private
focal_class.original_string: private KvmHaMonitor monitor;
focal_class.type: KvmHaMonitor
focal_class.var_name: monitor
focal_class.declarator: storage
focal_class.modifier: private
focal_class.original_string: private StorageLayer storage;
focal_class.type: StorageLayer
focal_class.var_name: storage
focal_class.declarator: storagePoolMgr
focal_class.modifier: private
focal_class.original_string: private KvmStoragePoolManager storagePoolMgr;
focal_class.type: KvmStoragePoolManager
focal_class.var_name: storagePoolMgr
focal_class.declarator: defaultVifDriver
focal_class.modifier: private
focal_class.original_string: private VifDriver defaultVifDriver;
focal_class.type: VifDriver
focal_class.var_name: defaultVifDriver
focal_class.declarator: trafficTypeVifDrivers
focal_class.modifier: private
focal_class.original_string: private Map<TrafficType, VifDriver> trafficTypeVifDrivers;
focal_class.type: Map<TrafficType, VifDriver>
focal_class.var_name: trafficTypeVifDrivers
focal_class.declarator: totalMemory
focal_class.modifier: private
focal_class.original_string: private long totalMemory;
focal_class.type: long
focal_class.var_name: totalMemory
focal_class.file: cosmic-agent/src/main/java/com/cloud/agent/resource/kvm/LibvirtComputingResource.java
focal_class.identifier: LibvirtComputingResource
focal_class.interfaces: implements AgentResource, VirtualRouterDeployer
focal_class.class_method_signature: LibvirtComputingResource.executeInVR(final String routerIp, final String script, final String args)
focal_class.full_signature: @Override public ExecutionResult executeInVR(final String routerIp, final String script, final String args)
focal_class.identifier: executeInVR
focal_class.modifiers: @Override public
focal_class.parameters: (final String routerIp, final String script, final String args)
focal_class.return: ExecutionResult
focal_class.signature: ExecutionResult executeInVR(final String routerIp, final String script, final String args)
focal_class.class_method_signature: LibvirtComputingResource.executeInVR(final String routerIp, final String script, final String args, final int timeout)
focal_class.full_signature: @Override public ExecutionResult executeInVR(final String routerIp, final String script, final String args, final int timeout)
focal_class.identifier: executeInVR
focal_class.modifiers: @Override public
focal_class.parameters: (final String routerIp, final String script, final String args, final int timeout)
focal_class.return: ExecutionResult
focal_class.signature: ExecutionResult executeInVR(final String routerIp, final String script, final String args, final int timeout)
focal_class.class_method_signature: LibvirtComputingResource.createFileInVR(final String routerIp, final String path, final String filename,
                                            final String content)
focal_class.full_signature: @Override public ExecutionResult createFileInVR(final String routerIp, final String path, final String filename,
                                            final String content)
focal_class.identifier: createFileInVR
focal_class.modifiers: @Override public
focal_class.parameters: (final String routerIp, final String path, final String filename,
                                            final String content)
focal_class.return: ExecutionResult
focal_class.signature: ExecutionResult createFileInVR(final String routerIp, final String path, final String filename,
                                            final String content)
focal_class.class_method_signature: LibvirtComputingResource.prepareCommand(final NetworkElementCommand cmd)
focal_class.full_signature: @Override public ExecutionResult prepareCommand(final NetworkElementCommand cmd)
focal_class.identifier: prepareCommand
focal_class.modifiers: @Override public
focal_class.parameters: (final NetworkElementCommand cmd)
focal_class.return: ExecutionResult
focal_class.signature: ExecutionResult prepareCommand(final NetworkElementCommand cmd)
focal_class.class_method_signature: LibvirtComputingResource.cleanupCommand(final NetworkElementCommand cmd)
focal_class.full_signature: @Override public ExecutionResult cleanupCommand(final NetworkElementCommand cmd)
focal_class.identifier: cleanupCommand
focal_class.modifiers: @Override public
focal_class.parameters: (final NetworkElementCommand cmd)
focal_class.return: ExecutionResult
focal_class.signature: ExecutionResult cleanupCommand(final NetworkElementCommand cmd)
focal_class.class_method_signature: LibvirtComputingResource.getInterfaces(final Connect conn, final String vmName, final String interfaceToExclude)
focal_class.full_signature: public List<InterfaceDef> getInterfaces(final Connect conn, final String vmName, final String interfaceToExclude)
focal_class.identifier: getInterfaces
focal_class.modifiers: public
focal_class.parameters: (final Connect conn, final String vmName, final String interfaceToExclude)
focal_class.return: List<InterfaceDef>
focal_class.signature: List<InterfaceDef> getInterfaces(final Connect conn, final String vmName, final String interfaceToExclude)
focal_class.class_method_signature: LibvirtComputingResource.getAllVifDrivers()
focal_class.full_signature: public List<VifDriver> getAllVifDrivers()
focal_class.identifier: getAllVifDrivers
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: List<VifDriver>
focal_class.signature: List<VifDriver> getAllVifDrivers()
focal_class.class_method_signature: LibvirtComputingResource.prepareNetworkElementCommand(final UpdateNetworkOverviewCommand cmd)
focal_class.full_signature: protected ExecutionResult prepareNetworkElementCommand(final UpdateNetworkOverviewCommand cmd)
focal_class.identifier: prepareNetworkElementCommand
focal_class.modifiers: protected
focal_class.parameters: (final UpdateNetworkOverviewCommand cmd)
focal_class.return: ExecutionResult
focal_class.signature: ExecutionResult prepareNetworkElementCommand(final UpdateNetworkOverviewCommand cmd)
focal_class.class_method_signature: LibvirtComputingResource.getInterfaces(final Connect conn, final String vmName)
focal_class.full_signature: public List<InterfaceDef> getInterfaces(final Connect conn, final String vmName)
focal_class.identifier: getInterfaces
focal_class.modifiers: public
focal_class.parameters: (final Connect conn, final String vmName)
focal_class.return: List<InterfaceDef>
focal_class.signature: List<InterfaceDef> getInterfaces(final Connect conn, final String vmName)
focal_class.class_method_signature: LibvirtComputingResource.buildBridgeToNicNumHashMap(final Map<String, Integer> bridgeToNicNum, final List<InterfaceDef> pluggedNics)
focal_class.full_signature: private Integer buildBridgeToNicNumHashMap(final Map<String, Integer> bridgeToNicNum, final List<InterfaceDef> pluggedNics)
focal_class.identifier: buildBridgeToNicNumHashMap
focal_class.modifiers: private
focal_class.parameters: (final Map<String, Integer> bridgeToNicNum, final List<InterfaceDef> pluggedNics)
focal_class.return: Integer
focal_class.signature: Integer buildBridgeToNicNumHashMap(final Map<String, Integer> bridgeToNicNum, final List<InterfaceDef> pluggedNics)
focal_class.class_method_signature: LibvirtComputingResource.getPrivBridgeName()
focal_class.full_signature: private String getPrivBridgeName()
focal_class.identifier: getPrivBridgeName
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getPrivBridgeName()
focal_class.class_method_signature: LibvirtComputingResource.getLinkLocalBridgeName()
focal_class.full_signature: private String getLinkLocalBridgeName()
focal_class.identifier: getLinkLocalBridgeName
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getLinkLocalBridgeName()
focal_class.class_method_signature: LibvirtComputingResource.networkUsage(final String privateIpAddress, final String option, final String vif)
focal_class.full_signature: public String networkUsage(final String privateIpAddress, final String option, final String vif)
focal_class.identifier: networkUsage
focal_class.modifiers: public
focal_class.parameters: (final String privateIpAddress, final String option, final String vif)
focal_class.return: String
focal_class.signature: String networkUsage(final String privateIpAddress, final String option, final String vif)
focal_class.class_method_signature: LibvirtComputingResource.getDomain(final Connect conn, final String vmName)
focal_class.full_signature: public Domain getDomain(final Connect conn, final String vmName)
focal_class.identifier: getDomain
focal_class.modifiers: public
focal_class.parameters: (final Connect conn, final String vmName)
focal_class.return: Domain
focal_class.signature: Domain getDomain(final Connect conn, final String vmName)
focal_class.class_method_signature: LibvirtComputingResource.getVifDriver(final TrafficType trafficType)
focal_class.full_signature: public VifDriver getVifDriver(final TrafficType trafficType)
focal_class.identifier: getVifDriver
focal_class.modifiers: public
focal_class.parameters: (final TrafficType trafficType)
focal_class.return: VifDriver
focal_class.signature: VifDriver getVifDriver(final TrafficType trafficType)
focal_class.class_method_signature: LibvirtComputingResource.matchPifFileInDirectory(final String bridgeName)
focal_class.full_signature: private String matchPifFileInDirectory(final String bridgeName)
focal_class.identifier: matchPifFileInDirectory
focal_class.modifiers: private
focal_class.parameters: (final String bridgeName)
focal_class.return: String
focal_class.signature: String matchPifFileInDirectory(final String bridgeName)
focal_class.class_method_signature: LibvirtComputingResource.isInterface(final String fname)
focal_class.full_signature: public boolean isInterface(final String fname)
focal_class.identifier: isInterface
focal_class.modifiers: public
focal_class.parameters: (final String fname)
focal_class.return: boolean
focal_class.signature: boolean isInterface(final String fname)
focal_class.class_method_signature: LibvirtComputingResource.getLibvirtUtilitiesHelper()
focal_class.full_signature: public LibvirtUtilitiesHelper getLibvirtUtilitiesHelper()
focal_class.identifier: getLibvirtUtilitiesHelper
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: LibvirtUtilitiesHelper
focal_class.signature: LibvirtUtilitiesHelper getLibvirtUtilitiesHelper()
focal_class.class_method_signature: LibvirtComputingResource.getCpuStat()
focal_class.full_signature: public CpuStat getCpuStat()
focal_class.identifier: getCpuStat
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: CpuStat
focal_class.signature: CpuStat getCpuStat()
focal_class.class_method_signature: LibvirtComputingResource.getMemStat()
focal_class.full_signature: public MemStat getMemStat()
focal_class.identifier: getMemStat
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: MemStat
focal_class.signature: MemStat getMemStat()
focal_class.class_method_signature: LibvirtComputingResource.getVirtRouterResource()
focal_class.full_signature: public VirtualRoutingResource getVirtRouterResource()
focal_class.identifier: getVirtRouterResource
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: VirtualRoutingResource
focal_class.signature: VirtualRoutingResource getVirtRouterResource()
focal_class.class_method_signature: LibvirtComputingResource.getPublicBridgeName()
focal_class.full_signature: public String getPublicBridgeName()
focal_class.identifier: getPublicBridgeName
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getPublicBridgeName()
focal_class.class_method_signature: LibvirtComputingResource.getStoragePoolMgr()
focal_class.full_signature: public KvmStoragePoolManager getStoragePoolMgr()
focal_class.identifier: getStoragePoolMgr
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: KvmStoragePoolManager
focal_class.signature: KvmStoragePoolManager getStoragePoolMgr()
focal_class.class_method_signature: LibvirtComputingResource.getPrivateIp()
focal_class.full_signature: public String getPrivateIp()
focal_class.identifier: getPrivateIp
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getPrivateIp()
focal_class.class_method_signature: LibvirtComputingResource.getMigrateDowntime()
focal_class.full_signature: public int getMigrateDowntime()
focal_class.identifier: getMigrateDowntime
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getMigrateDowntime()
focal_class.class_method_signature: LibvirtComputingResource.getMigratePauseAfter()
focal_class.full_signature: public int getMigratePauseAfter()
focal_class.identifier: getMigratePauseAfter
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getMigratePauseAfter()
focal_class.class_method_signature: LibvirtComputingResource.getMigrateSpeed()
focal_class.full_signature: public int getMigrateSpeed()
focal_class.identifier: getMigrateSpeed
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getMigrateSpeed()
focal_class.class_method_signature: LibvirtComputingResource.getMigrateSpeedAcrossCluster()
focal_class.full_signature: public int getMigrateSpeedAcrossCluster()
focal_class.identifier: getMigrateSpeedAcrossCluster
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getMigrateSpeedAcrossCluster()
focal_class.class_method_signature: LibvirtComputingResource.getVmBlockCopySpeed()
focal_class.full_signature: public int getVmBlockCopySpeed()
focal_class.identifier: getVmBlockCopySpeed
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getVmBlockCopySpeed()
focal_class.class_method_signature: LibvirtComputingResource.getPingTestPath()
focal_class.full_signature: public String getPingTestPath()
focal_class.identifier: getPingTestPath
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getPingTestPath()
focal_class.class_method_signature: LibvirtComputingResource.getUpdateHostPasswdPath()
focal_class.full_signature: public String getUpdateHostPasswdPath()
focal_class.identifier: getUpdateHostPasswdPath
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getUpdateHostPasswdPath()
focal_class.class_method_signature: LibvirtComputingResource.getScriptsTimeout()
focal_class.full_signature: public int getScriptsTimeout()
focal_class.identifier: getScriptsTimeout
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getScriptsTimeout()
focal_class.class_method_signature: LibvirtComputingResource.getMonitor()
focal_class.full_signature: public KvmHaMonitor getMonitor()
focal_class.identifier: getMonitor
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: KvmHaMonitor
focal_class.signature: KvmHaMonitor getMonitor()
focal_class.class_method_signature: LibvirtComputingResource.getStorage()
focal_class.full_signature: public StorageLayer getStorage()
focal_class.identifier: getStorage
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: StorageLayer
focal_class.signature: StorageLayer getStorage()
focal_class.class_method_signature: LibvirtComputingResource.createTmplPath()
focal_class.full_signature: public String createTmplPath()
focal_class.identifier: createTmplPath
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String createTmplPath()
focal_class.class_method_signature: LibvirtComputingResource.getCmdsTimeout()
focal_class.full_signature: public int getCmdsTimeout()
focal_class.identifier: getCmdsTimeout
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getCmdsTimeout()
focal_class.class_method_signature: LibvirtComputingResource.manageSnapshotPath()
focal_class.full_signature: public String manageSnapshotPath()
focal_class.identifier: manageSnapshotPath
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String manageSnapshotPath()
focal_class.class_method_signature: LibvirtComputingResource.getGuestBridgeName()
focal_class.full_signature: public String getGuestBridgeName()
focal_class.identifier: getGuestBridgeName
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getGuestBridgeName()
focal_class.class_method_signature: LibvirtComputingResource.getOvsPvlanDhcpHostPath()
focal_class.full_signature: public String getOvsPvlanDhcpHostPath()
focal_class.identifier: getOvsPvlanDhcpHostPath
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getOvsPvlanDhcpHostPath()
focal_class.class_method_signature: LibvirtComputingResource.getOvsPvlanVmPath()
focal_class.full_signature: public String getOvsPvlanVmPath()
focal_class.identifier: getOvsPvlanVmPath
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getOvsPvlanVmPath()
focal_class.class_method_signature: LibvirtComputingResource.getStorageHandler()
focal_class.full_signature: public StorageSubsystemCommandHandler getStorageHandler()
focal_class.identifier: getStorageHandler
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: StorageSubsystemCommandHandler
focal_class.signature: StorageSubsystemCommandHandler getStorageHandler()
focal_class.class_method_signature: LibvirtComputingResource.configure(final Map<String, Object> params)
focal_class.full_signature: @Override public boolean configure(final Map<String, Object> params)
focal_class.identifier: configure
focal_class.modifiers: @Override public
focal_class.parameters: (final Map<String, Object> params)
focal_class.return: boolean
focal_class.signature: boolean configure(final Map<String, Object> params)
focal_class.class_method_signature: LibvirtComputingResource.configure(final AgentConfiguration agentConfiguration)
focal_class.full_signature: @Override public void configure(final AgentConfiguration agentConfiguration)
focal_class.identifier: configure
focal_class.modifiers: @Override public
focal_class.parameters: (final AgentConfiguration agentConfiguration)
focal_class.return: void
focal_class.signature: void configure(final AgentConfiguration agentConfiguration)
focal_class.class_method_signature: LibvirtComputingResource.initLibvirtLifecycleListener()
focal_class.full_signature: private void initLibvirtLifecycleListener()
focal_class.identifier: initLibvirtLifecycleListener
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void initLibvirtLifecycleListener()
focal_class.class_method_signature: LibvirtComputingResource.initScripts(final LibvirtComputingResourceProperties libvirtComputingResourceProperties)
focal_class.full_signature: private void initScripts(final LibvirtComputingResourceProperties libvirtComputingResourceProperties)
focal_class.identifier: initScripts
focal_class.modifiers: private
focal_class.parameters: (final LibvirtComputingResourceProperties libvirtComputingResourceProperties)
focal_class.return: void
focal_class.signature: void initScripts(final LibvirtComputingResourceProperties libvirtComputingResourceProperties)
focal_class.class_method_signature: LibvirtComputingResource.checkVmMigrationSpeed(final LibvirtComputingResourceProperties libvirtComputingResourceProperties)
focal_class.full_signature: private void checkVmMigrationSpeed(final LibvirtComputingResourceProperties libvirtComputingResourceProperties)
focal_class.identifier: checkVmMigrationSpeed
focal_class.modifiers: private
focal_class.parameters: (final LibvirtComputingResourceProperties libvirtComputingResourceProperties)
focal_class.return: void
focal_class.signature: void checkVmMigrationSpeed(final LibvirtComputingResourceProperties libvirtComputingResourceProperties)
focal_class.class_method_signature: LibvirtComputingResource.initLocalGateway()
focal_class.full_signature: private void initLocalGateway()
focal_class.identifier: initLocalGateway
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void initLocalGateway()
focal_class.class_method_signature: LibvirtComputingResource.checkPhysicalInterfaces()
focal_class.full_signature: private void checkPhysicalInterfaces()
focal_class.identifier: checkPhysicalInterfaces
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void checkPhysicalInterfaces()
focal_class.class_method_signature: LibvirtComputingResource.initBridges()
focal_class.full_signature: private void initBridges()
focal_class.identifier: initBridges
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void initBridges()
focal_class.class_method_signature: LibvirtComputingResource.getBridgeType()
focal_class.full_signature: private BridgeType getBridgeType()
focal_class.identifier: getBridgeType
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: BridgeType
focal_class.signature: BridgeType getBridgeType()
focal_class.class_method_signature: LibvirtComputingResource.checkSystemvmIso(final LibvirtComputingResourceProperties libvirtComputingResourceProperties)
focal_class.full_signature: private boolean checkSystemvmIso(final LibvirtComputingResourceProperties libvirtComputingResourceProperties)
focal_class.identifier: checkSystemvmIso
focal_class.modifiers: private
focal_class.parameters: (final LibvirtComputingResourceProperties libvirtComputingResourceProperties)
focal_class.return: boolean
focal_class.signature: boolean checkSystemvmIso(final LibvirtComputingResourceProperties libvirtComputingResourceProperties)
focal_class.class_method_signature: LibvirtComputingResource.initStoragePoolManager()
focal_class.full_signature: private void initStoragePoolManager()
focal_class.identifier: initStoragePoolManager
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void initStoragePoolManager()
focal_class.class_method_signature: LibvirtComputingResource.initMonitorThread()
focal_class.full_signature: private void initMonitorThread()
focal_class.identifier: initMonitorThread
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void initMonitorThread()
focal_class.class_method_signature: LibvirtComputingResource.initConnectionToLibvirtDaemon(final LibvirtComputingResourceProperties libvirtComputingResourceProperties)
focal_class.full_signature: private void initConnectionToLibvirtDaemon(final LibvirtComputingResourceProperties libvirtComputingResourceProperties)
focal_class.identifier: initConnectionToLibvirtDaemon
focal_class.modifiers: private
focal_class.parameters: (final LibvirtComputingResourceProperties libvirtComputingResourceProperties)
focal_class.return: void
focal_class.signature: void initConnectionToLibvirtDaemon(final LibvirtComputingResourceProperties libvirtComputingResourceProperties)
focal_class.class_method_signature: LibvirtComputingResource.getHypervisorUri()
focal_class.full_signature: private String getHypervisorUri()
focal_class.identifier: getHypervisorUri
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getHypervisorUri()
focal_class.class_method_signature: LibvirtComputingResource.initVirtualRoutingResource(final Map<String, Object> propertiesMap)
focal_class.full_signature: private boolean initVirtualRoutingResource(final Map<String, Object> propertiesMap)
focal_class.identifier: initVirtualRoutingResource
focal_class.modifiers: private
focal_class.parameters: (final Map<String, Object> propertiesMap)
focal_class.return: boolean
focal_class.signature: boolean initVirtualRoutingResource(final Map<String, Object> propertiesMap)
focal_class.class_method_signature: LibvirtComputingResource.initStorage(final Map<String, Object> propertiesMap)
focal_class.full_signature: private void initStorage(final Map<String, Object> propertiesMap)
focal_class.identifier: initStorage
focal_class.modifiers: private
focal_class.parameters: (final Map<String, Object> propertiesMap)
focal_class.return: void
focal_class.signature: void initStorage(final Map<String, Object> propertiesMap)
focal_class.class_method_signature: LibvirtComputingResource.findScriptPath(final String baseDir, final String path, final String scriptName)
focal_class.full_signature: private static String findScriptPath(final String baseDir, final String path, final String scriptName)
focal_class.identifier: findScriptPath
focal_class.modifiers: private static
focal_class.parameters: (final String baseDir, final String path, final String scriptName)
focal_class.return: String
focal_class.signature: String findScriptPath(final String baseDir, final String path, final String scriptName)
focal_class.class_method_signature: LibvirtComputingResource.findScriptPath(final String baseDir, final String scriptName)
focal_class.full_signature: private static String findScriptPath(final String baseDir, final String scriptName)
focal_class.identifier: findScriptPath
focal_class.modifiers: private static
focal_class.parameters: (final String baseDir, final String scriptName)
focal_class.return: String
focal_class.signature: String findScriptPath(final String baseDir, final String scriptName)
focal_class.class_method_signature: LibvirtComputingResource.checkIsHvmEnabled(final Connect conn)
focal_class.full_signature: private void checkIsHvmEnabled(final Connect conn)
focal_class.identifier: checkIsHvmEnabled
focal_class.modifiers: private
focal_class.parameters: (final Connect conn)
focal_class.return: void
focal_class.signature: void checkIsHvmEnabled(final Connect conn)
focal_class.class_method_signature: LibvirtComputingResource.connectToHypervisor()
focal_class.full_signature: private Connect connectToHypervisor()
focal_class.identifier: connectToHypervisor
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: Connect
focal_class.signature: Connect connectToHypervisor()
focal_class.class_method_signature: LibvirtComputingResource.isHvmEnabled(final Connect conn)
focal_class.full_signature: private boolean isHvmEnabled(final Connect conn)
focal_class.identifier: isHvmEnabled
focal_class.modifiers: private
focal_class.parameters: (final Connect conn)
focal_class.return: boolean
focal_class.signature: boolean isHvmEnabled(final Connect conn)
focal_class.class_method_signature: LibvirtComputingResource.getHypervisorPath(final Connect conn)
focal_class.full_signature: private String getHypervisorPath(final Connect conn)
focal_class.identifier: getHypervisorPath
focal_class.modifiers: private
focal_class.parameters: (final Connect conn)
focal_class.return: String
focal_class.signature: String getHypervisorPath(final Connect conn)
focal_class.class_method_signature: LibvirtComputingResource.executeRequest(final Command cmd)
focal_class.full_signature: @Override public Answer executeRequest(final Command cmd)
focal_class.identifier: executeRequest
focal_class.modifiers: @Override public
focal_class.parameters: (final Command cmd)
focal_class.return: Answer
focal_class.signature: Answer executeRequest(final Command cmd)
focal_class.class_method_signature: LibvirtComputingResource.prettyVersion(final long version)
focal_class.full_signature: private String prettyVersion(final long version)
focal_class.identifier: prettyVersion
focal_class.modifiers: private
focal_class.parameters: (final long version)
focal_class.return: String
focal_class.signature: String prettyVersion(final long version)
focal_class.class_method_signature: LibvirtComputingResource.getOvsPifs()
focal_class.full_signature: private void getOvsPifs()
focal_class.identifier: getOvsPifs
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void getOvsPifs()
focal_class.class_method_signature: LibvirtComputingResource.getPifs()
focal_class.full_signature: private void getPifs()
focal_class.identifier: getPifs
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void getPifs()
focal_class.class_method_signature: LibvirtComputingResource.configureVifDrivers(final Map<String, Object> params)
focal_class.full_signature: protected void configureVifDrivers(final Map<String, Object> params)
focal_class.identifier: configureVifDrivers
focal_class.modifiers: protected
focal_class.parameters: (final Map<String, Object> params)
focal_class.return: void
focal_class.signature: void configureVifDrivers(final Map<String, Object> params)
focal_class.class_method_signature: LibvirtComputingResource.configureDiskActivityChecks(final Map<String, Object> params)
focal_class.full_signature: protected void configureDiskActivityChecks(final Map<String, Object> params)
focal_class.identifier: configureDiskActivityChecks
focal_class.modifiers: protected
focal_class.parameters: (final Map<String, Object> params)
focal_class.return: void
focal_class.signature: void configureDiskActivityChecks(final Map<String, Object> params)
focal_class.class_method_signature: LibvirtComputingResource.getPif(final String bridge)
focal_class.full_signature: private String getPif(final String bridge)
focal_class.identifier: getPif
focal_class.modifiers: private
focal_class.parameters: (final String bridge)
focal_class.return: String
focal_class.signature: String getPif(final String bridge)
focal_class.class_method_signature: LibvirtComputingResource.getVifDriverClass(final String vifDriverClassName, final Map<String, Object> params)
focal_class.full_signature: protected VifDriver getVifDriverClass(final String vifDriverClassName, final Map<String, Object> params)
focal_class.identifier: getVifDriverClass
focal_class.modifiers: protected
focal_class.parameters: (final String vifDriverClassName, final Map<String, Object> params)
focal_class.return: VifDriver
focal_class.signature: VifDriver getVifDriverClass(final String vifDriverClassName, final Map<String, Object> params)
focal_class.class_method_signature: LibvirtComputingResource.stop()
focal_class.full_signature: @Override public boolean stop()
focal_class.identifier: stop
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean stop()
focal_class.class_method_signature: LibvirtComputingResource.passCmdLine(final String vmName, final String cmdLine)
focal_class.full_signature: public boolean passCmdLine(final String vmName, final String cmdLine)
focal_class.identifier: passCmdLine
focal_class.modifiers: public
focal_class.parameters: (final String vmName, final String cmdLine)
focal_class.return: boolean
focal_class.signature: boolean passCmdLine(final String vmName, final String cmdLine)
focal_class.class_method_signature: LibvirtComputingResource.checkNetwork(final String networkName)
focal_class.full_signature: public boolean checkNetwork(final String networkName)
focal_class.identifier: checkNetwork
focal_class.modifiers: public
focal_class.parameters: (final String networkName)
focal_class.return: boolean
focal_class.signature: boolean checkNetwork(final String networkName)
focal_class.class_method_signature: LibvirtComputingResource.checkOvsNetwork(final String networkName)
focal_class.full_signature: private boolean checkOvsNetwork(final String networkName)
focal_class.identifier: checkOvsNetwork
focal_class.modifiers: private
focal_class.parameters: (final String networkName)
focal_class.return: boolean
focal_class.signature: boolean checkOvsNetwork(final String networkName)
focal_class.class_method_signature: LibvirtComputingResource.checkBridgeNetwork(final String networkName)
focal_class.full_signature: private boolean checkBridgeNetwork(final String networkName)
focal_class.identifier: checkBridgeNetwork
focal_class.modifiers: private
focal_class.parameters: (final String networkName)
focal_class.return: boolean
focal_class.signature: boolean checkBridgeNetwork(final String networkName)
focal_class.class_method_signature: LibvirtComputingResource.templateToPrimaryDownload(final String templateUrl, final KvmStoragePool primaryPool,
                                                       final String volUuid)
focal_class.full_signature: public KvmPhysicalDisk templateToPrimaryDownload(final String templateUrl, final KvmStoragePool primaryPool,
                                                       final String volUuid)
focal_class.identifier: templateToPrimaryDownload
focal_class.modifiers: public
focal_class.parameters: (final String templateUrl, final KvmStoragePool primaryPool,
                                                       final String volUuid)
focal_class.return: KvmPhysicalDisk
focal_class.signature: KvmPhysicalDisk templateToPrimaryDownload(final String templateUrl, final KvmStoragePool primaryPool,
                                                       final String volUuid)
focal_class.class_method_signature: LibvirtComputingResource.getVmState(final Connect conn, final String vmName)
focal_class.full_signature: public PowerState getVmState(final Connect conn, final String vmName)
focal_class.identifier: getVmState
focal_class.modifiers: public
focal_class.parameters: (final Connect conn, final String vmName)
focal_class.return: PowerState
focal_class.signature: PowerState getVmState(final Connect conn, final String vmName)
focal_class.class_method_signature: LibvirtComputingResource.convertToPowerState(final DomainState ps)
focal_class.full_signature: protected PowerState convertToPowerState(final DomainState ps)
focal_class.identifier: convertToPowerState
focal_class.modifiers: protected
focal_class.parameters: (final DomainState ps)
focal_class.return: PowerState
focal_class.signature: PowerState convertToPowerState(final DomainState ps)
focal_class.class_method_signature: LibvirtComputingResource.getNetworkStats(final String privateIp)
focal_class.full_signature: public long[] getNetworkStats(final String privateIp)
focal_class.identifier: getNetworkStats
focal_class.modifiers: public
focal_class.parameters: (final String privateIp)
focal_class.return: long[]
focal_class.signature: long[] getNetworkStats(final String privateIp)
focal_class.class_method_signature: LibvirtComputingResource.getVpcNetworkStats(final String privateIp, final String publicIp, final String option)
focal_class.full_signature: public long[] getVpcNetworkStats(final String privateIp, final String publicIp, final String option)
focal_class.identifier: getVpcNetworkStats
focal_class.modifiers: public
focal_class.parameters: (final String privateIp, final String publicIp, final String option)
focal_class.return: long[]
focal_class.signature: long[] getVpcNetworkStats(final String privateIp, final String publicIp, final String option)
focal_class.class_method_signature: LibvirtComputingResource.configureVpcNetworkUsage(final String privateIpAddress, final String publicIp, final String option,
                                             final String vpcCidr)
focal_class.full_signature: public String configureVpcNetworkUsage(final String privateIpAddress, final String publicIp, final String option,
                                             final String vpcCidr)
focal_class.identifier: configureVpcNetworkUsage
focal_class.modifiers: public
focal_class.parameters: (final String privateIpAddress, final String publicIp, final String option,
                                             final String vpcCidr)
focal_class.return: String
focal_class.signature: String configureVpcNetworkUsage(final String privateIpAddress, final String publicIp, final String option,
                                             final String vpcCidr)
focal_class.class_method_signature: LibvirtComputingResource.handleVmStartFailure(final LibvirtVmDef vm)
focal_class.full_signature: public void handleVmStartFailure(final LibvirtVmDef vm)
focal_class.identifier: handleVmStartFailure
focal_class.modifiers: public
focal_class.parameters: (final LibvirtVmDef vm)
focal_class.return: void
focal_class.signature: void handleVmStartFailure(final LibvirtVmDef vm)
focal_class.class_method_signature: LibvirtComputingResource.cleanupVmNetworks(final List<InterfaceDef> nics)
focal_class.full_signature: private void cleanupVmNetworks(final List<InterfaceDef> nics)
focal_class.identifier: cleanupVmNetworks
focal_class.modifiers: private
focal_class.parameters: (final List<InterfaceDef> nics)
focal_class.return: void
focal_class.signature: void cleanupVmNetworks(final List<InterfaceDef> nics)
focal_class.class_method_signature: LibvirtComputingResource.getCurrentLocalDateTimeStamp()
focal_class.full_signature: public String getCurrentLocalDateTimeStamp()
focal_class.identifier: getCurrentLocalDateTimeStamp
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getCurrentLocalDateTimeStamp()
focal_class.class_method_signature: LibvirtComputingResource.getCurrentEpoch()
focal_class.full_signature: public Long getCurrentEpoch()
focal_class.identifier: getCurrentEpoch
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Long
focal_class.signature: Long getCurrentEpoch()
focal_class.class_method_signature: LibvirtComputingResource.createVmFromSpec(final VirtualMachineTO vmTo)
focal_class.full_signature: public LibvirtVmDef createVmFromSpec(final VirtualMachineTO vmTo)
focal_class.identifier: createVmFromSpec
focal_class.modifiers: public
focal_class.parameters: (final VirtualMachineTO vmTo)
focal_class.return: LibvirtVmDef
focal_class.signature: LibvirtVmDef createVmFromSpec(final VirtualMachineTO vmTo)
focal_class.class_method_signature: LibvirtComputingResource.isKvmClockDisabled()
focal_class.full_signature: private boolean isKvmClockDisabled()
focal_class.identifier: isKvmClockDisabled
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isKvmClockDisabled()
focal_class.class_method_signature: LibvirtComputingResource.getGuestCpuModel()
focal_class.full_signature: private String getGuestCpuModel()
focal_class.identifier: getGuestCpuModel
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getGuestCpuModel()
focal_class.class_method_signature: LibvirtComputingResource.getGuestCpuMode()
focal_class.full_signature: private String getGuestCpuMode()
focal_class.identifier: getGuestCpuMode
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getGuestCpuMode()
focal_class.class_method_signature: LibvirtComputingResource.getUuid(String uuid)
focal_class.full_signature: protected String getUuid(String uuid)
focal_class.identifier: getUuid
focal_class.modifiers: protected
focal_class.parameters: (String uuid)
focal_class.return: String
focal_class.signature: String getUuid(String uuid)
focal_class.class_method_signature: LibvirtComputingResource.isGuestVirtIoCapable(final String guestOsName)
focal_class.full_signature: public boolean isGuestVirtIoCapable(final String guestOsName)
focal_class.identifier: isGuestVirtIoCapable
focal_class.modifiers: public
focal_class.parameters: (final String guestOsName)
focal_class.return: boolean
focal_class.signature: boolean isGuestVirtIoCapable(final String guestOsName)
focal_class.class_method_signature: LibvirtComputingResource.createVifs(final VirtualMachineTO vmSpec, final LibvirtVmDef vm)
focal_class.full_signature: public void createVifs(final VirtualMachineTO vmSpec, final LibvirtVmDef vm)
focal_class.identifier: createVifs
focal_class.modifiers: public
focal_class.parameters: (final VirtualMachineTO vmSpec, final LibvirtVmDef vm)
focal_class.return: void
focal_class.signature: void createVifs(final VirtualMachineTO vmSpec, final LibvirtVmDef vm)
focal_class.class_method_signature: LibvirtComputingResource.createVif(final LibvirtVmDef vm, final NicTO nic, final String nicAdapter)
focal_class.full_signature: private void createVif(final LibvirtVmDef vm, final NicTO nic, final String nicAdapter)
focal_class.identifier: createVif
focal_class.modifiers: private
focal_class.parameters: (final LibvirtVmDef vm, final NicTO nic, final String nicAdapter)
focal_class.return: void
focal_class.signature: void createVif(final LibvirtVmDef vm, final NicTO nic, final String nicAdapter)
focal_class.class_method_signature: LibvirtComputingResource.getVolumePath(final Connect conn, final DiskTO volume)
focal_class.full_signature: public String getVolumePath(final Connect conn, final DiskTO volume)
focal_class.identifier: getVolumePath
focal_class.modifiers: public
focal_class.parameters: (final Connect conn, final DiskTO volume)
focal_class.return: String
focal_class.signature: String getVolumePath(final Connect conn, final DiskTO volume)
focal_class.class_method_signature: LibvirtComputingResource.getCurrentStatus(final long id)
focal_class.full_signature: @Override public PingCommand getCurrentStatus(final long id)
focal_class.identifier: getCurrentStatus
focal_class.modifiers: @Override public
focal_class.parameters: (final long id)
focal_class.return: PingCommand
focal_class.signature: PingCommand getCurrentStatus(final long id)
focal_class.class_method_signature: LibvirtComputingResource.createVbd(final Connect conn, final VirtualMachineTO vmSpec, final String vmName, final LibvirtVmDef vm)
focal_class.full_signature: public void createVbd(final Connect conn, final VirtualMachineTO vmSpec, final String vmName, final LibvirtVmDef vm)
focal_class.identifier: createVbd
focal_class.modifiers: public
focal_class.parameters: (final Connect conn, final VirtualMachineTO vmSpec, final String vmName, final LibvirtVmDef vm)
focal_class.return: void
focal_class.signature: void createVbd(final Connect conn, final VirtualMachineTO vmSpec, final String vmName, final LibvirtVmDef vm)
focal_class.class_method_signature: LibvirtComputingResource.getSysvmIsoPath()
focal_class.full_signature: private String getSysvmIsoPath()
focal_class.identifier: getSysvmIsoPath
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getSysvmIsoPath()
focal_class.class_method_signature: LibvirtComputingResource.getType()
focal_class.full_signature: @Override public HostType getType()
focal_class.identifier: getType
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: HostType
focal_class.signature: HostType getType()
focal_class.class_method_signature: LibvirtComputingResource.getVersionStrings()
focal_class.full_signature: private Map<String, String> getVersionStrings()
focal_class.identifier: getVersionStrings
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: Map<String, String>
focal_class.signature: Map<String, String> getVersionStrings()
focal_class.class_method_signature: LibvirtComputingResource.diskUuidToSerial(final String uuid)
focal_class.full_signature: public String diskUuidToSerial(final String uuid)
focal_class.identifier: diskUuidToSerial
focal_class.modifiers: public
focal_class.parameters: (final String uuid)
focal_class.return: String
focal_class.signature: String diskUuidToSerial(final String uuid)
focal_class.class_method_signature: LibvirtComputingResource.initialize()
focal_class.full_signature: @Override public StartupCommand[] initialize()
focal_class.identifier: initialize
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: StartupCommand[]
focal_class.signature: StartupCommand[] initialize()
focal_class.class_method_signature: LibvirtComputingResource.initializeLocalstorage()
focal_class.full_signature: private List<StartupLocalstorageCommand> initializeLocalstorage()
focal_class.identifier: initializeLocalstorage
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: List<StartupLocalstorageCommand>
focal_class.signature: List<StartupLocalstorageCommand> initializeLocalstorage()
focal_class.class_method_signature: LibvirtComputingResource.getZone()
focal_class.full_signature: private String getZone()
focal_class.identifier: getZone
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getZone()
focal_class.class_method_signature: LibvirtComputingResource.getCluster()
focal_class.full_signature: private String getCluster()
focal_class.identifier: getCluster
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getCluster()
focal_class.class_method_signature: LibvirtComputingResource.getPool()
focal_class.full_signature: private String getPool()
focal_class.identifier: getPool
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getPool()
focal_class.class_method_signature: LibvirtComputingResource.attachOrDetachIso(final Connect conn, final String vmName, String isoPath,
                                                   final boolean isAttach)
focal_class.full_signature: public synchronized String attachOrDetachIso(final Connect conn, final String vmName, String isoPath,
                                                   final boolean isAttach)
focal_class.identifier: attachOrDetachIso
focal_class.modifiers: public synchronized
focal_class.parameters: (final Connect conn, final String vmName, String isoPath,
                                                   final boolean isAttach)
focal_class.return: String
focal_class.signature: String attachOrDetachIso(final Connect conn, final String vmName, String isoPath,
                                                   final boolean isAttach)
focal_class.class_method_signature: LibvirtComputingResource.getIqn()
focal_class.full_signature: private String getIqn()
focal_class.identifier: getIqn
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getIqn()
focal_class.class_method_signature: LibvirtComputingResource.getDisks(final Connect conn, final String vmName)
focal_class.full_signature: public List<LibvirtDiskDef> getDisks(final Connect conn, final String vmName)
focal_class.identifier: getDisks
focal_class.modifiers: public
focal_class.parameters: (final Connect conn, final String vmName)
focal_class.return: List<LibvirtDiskDef>
focal_class.signature: List<LibvirtDiskDef> getDisks(final Connect conn, final String vmName)
focal_class.class_method_signature: LibvirtComputingResource.attachOrDetachDevice(final Connect conn, final boolean attach, final String vmName,
                                                         final String xml)
focal_class.full_signature: protected synchronized String attachOrDetachDevice(final Connect conn, final boolean attach, final String vmName,
                                                         final String xml)
focal_class.identifier: attachOrDetachDevice
focal_class.modifiers: protected synchronized
focal_class.parameters: (final Connect conn, final boolean attach, final String vmName,
                                                         final String xml)
focal_class.return: String
focal_class.signature: String attachOrDetachDevice(final Connect conn, final boolean attach, final String vmName,
                                                         final String xml)
focal_class.class_method_signature: LibvirtComputingResource.getHostVmStateReport()
focal_class.full_signature: private HashMap<String, HostVmStateReportEntry> getHostVmStateReport()
focal_class.identifier: getHostVmStateReport
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: HashMap<String, HostVmStateReportEntry>
focal_class.signature: HashMap<String, HostVmStateReportEntry> getHostVmStateReport()
focal_class.class_method_signature: LibvirtComputingResource.cleanupDisk(final LibvirtDiskDef disk)
focal_class.full_signature: public boolean cleanupDisk(final LibvirtDiskDef disk)
focal_class.identifier: cleanupDisk
focal_class.modifiers: public
focal_class.parameters: (final LibvirtDiskDef disk)
focal_class.return: boolean
focal_class.signature: boolean cleanupDisk(final LibvirtDiskDef disk)
focal_class.class_method_signature: LibvirtComputingResource.getHostVmStateReport(final Connect conn)
focal_class.full_signature: private HashMap<String, HostVmStateReportEntry> getHostVmStateReport(final Connect conn)
focal_class.identifier: getHostVmStateReport
focal_class.modifiers: private
focal_class.parameters: (final Connect conn)
focal_class.return: HashMap<String, HostVmStateReportEntry>
focal_class.signature: HashMap<String, HostVmStateReportEntry> getHostVmStateReport(final Connect conn)
focal_class.class_method_signature: LibvirtComputingResource.getHostInfo()
focal_class.full_signature: protected List<Object> getHostInfo()
focal_class.identifier: getHostInfo
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: List<Object>
focal_class.signature: List<Object> getHostInfo()
focal_class.class_method_signature: LibvirtComputingResource.getHostReservedMemMb()
focal_class.full_signature: private long getHostReservedMemMb()
focal_class.identifier: getHostReservedMemMb
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long getHostReservedMemMb()
focal_class.class_method_signature: LibvirtComputingResource.getCpuSpeed(final NodeInfo nodeInfo)
focal_class.full_signature: protected static long getCpuSpeed(final NodeInfo nodeInfo)
focal_class.identifier: getCpuSpeed
focal_class.modifiers: protected static
focal_class.parameters: (final NodeInfo nodeInfo)
focal_class.return: long
focal_class.signature: long getCpuSpeed(final NodeInfo nodeInfo)
focal_class.class_method_signature: LibvirtComputingResource.rebootVm(final Connect conn, final String vmName)
focal_class.full_signature: public String rebootVm(final Connect conn, final String vmName)
focal_class.identifier: rebootVm
focal_class.modifiers: public
focal_class.parameters: (final Connect conn, final String vmName)
focal_class.return: String
focal_class.signature: String rebootVm(final Connect conn, final String vmName)
focal_class.class_method_signature: LibvirtComputingResource.stopVm(final Connect conn, final String vmName, final boolean forceStop)
focal_class.full_signature: public String stopVm(final Connect conn, final String vmName, final boolean forceStop)
focal_class.identifier: stopVm
focal_class.modifiers: public
focal_class.parameters: (final Connect conn, final String vmName, final boolean forceStop)
focal_class.return: String
focal_class.signature: String stopVm(final Connect conn, final String vmName, final boolean forceStop)
focal_class.class_method_signature: LibvirtComputingResource.startVm(final Connect conn, final String vmName, final String domainXml)
focal_class.full_signature: public String startVm(final Connect conn, final String vmName, final String domainXml)
focal_class.identifier: startVm
focal_class.modifiers: public
focal_class.parameters: (final Connect conn, final String vmName, final String domainXml)
focal_class.return: String
focal_class.signature: String startVm(final Connect conn, final String vmName, final String domainXml)
focal_class.class_method_signature: LibvirtComputingResource.stopVmInternal(final Connect conn, final String vmName, final boolean force)
focal_class.full_signature: protected String stopVmInternal(final Connect conn, final String vmName, final boolean force)
focal_class.identifier: stopVmInternal
focal_class.modifiers: protected
focal_class.parameters: (final Connect conn, final String vmName, final boolean force)
focal_class.return: String
focal_class.signature: String stopVmInternal(final Connect conn, final String vmName, final boolean force)
focal_class.class_method_signature: LibvirtComputingResource.cleanVMSnapshotMetadata(final Domain dm)
focal_class.full_signature: public List<Ternary<String, Boolean, String>> cleanVMSnapshotMetadata(final Domain dm)
focal_class.identifier: cleanVMSnapshotMetadata
focal_class.modifiers: public
focal_class.parameters: (final Domain dm)
focal_class.return: List<Ternary<String, Boolean, String>>
focal_class.signature: List<Ternary<String, Boolean, String>> cleanVMSnapshotMetadata(final Domain dm)
focal_class.class_method_signature: LibvirtComputingResource.getTagValue(final String tag, final Element eElement)
focal_class.full_signature: private static String getTagValue(final String tag, final Element eElement)
focal_class.identifier: getTagValue
focal_class.modifiers: private static
focal_class.parameters: (final String tag, final Element eElement)
focal_class.return: String
focal_class.signature: String getTagValue(final String tag, final Element eElement)
focal_class.class_method_signature: LibvirtComputingResource.restoreVMSnapshotMetadata(final Domain dm, final String vmName, final List<Ternary<String, Boolean, String>> vmsnapshots)
focal_class.full_signature: public void restoreVMSnapshotMetadata(final Domain dm, final String vmName, final List<Ternary<String, Boolean, String>> vmsnapshots)
focal_class.identifier: restoreVMSnapshotMetadata
focal_class.modifiers: public
focal_class.parameters: (final Domain dm, final String vmName, final List<Ternary<String, Boolean, String>> vmsnapshots)
focal_class.return: void
focal_class.signature: void restoreVMSnapshotMetadata(final Domain dm, final String vmName, final List<Ternary<String, Boolean, String>> vmsnapshots)
focal_class.class_method_signature: LibvirtComputingResource.getStopScriptTimeout()
focal_class.full_signature: private int getStopScriptTimeout()
focal_class.identifier: getStopScriptTimeout
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getStopScriptTimeout()
focal_class.class_method_signature: LibvirtComputingResource.getVncPort(final Connect conn, final String vmName)
focal_class.full_signature: public Integer getVncPort(final Connect conn, final String vmName)
focal_class.identifier: getVncPort
focal_class.modifiers: public
focal_class.parameters: (final Connect conn, final String vmName)
focal_class.return: Integer
focal_class.signature: Integer getVncPort(final Connect conn, final String vmName)
focal_class.class_method_signature: LibvirtComputingResource.getVmDiskStat(final Connect conn, final String vmName)
focal_class.full_signature: public List<VmDiskStatsEntry> getVmDiskStat(final Connect conn, final String vmName)
focal_class.identifier: getVmDiskStat
focal_class.modifiers: public
focal_class.parameters: (final Connect conn, final String vmName)
focal_class.return: List<VmDiskStatsEntry>
focal_class.signature: List<VmDiskStatsEntry> getVmDiskStat(final Connect conn, final String vmName)
focal_class.class_method_signature: LibvirtComputingResource.getVmStat(final Connect conn, final String vmName)
focal_class.full_signature: public VmStatsEntry getVmStat(final Connect conn, final String vmName)
focal_class.identifier: getVmStat
focal_class.modifiers: public
focal_class.parameters: (final Connect conn, final String vmName)
focal_class.return: VmStatsEntry
focal_class.signature: VmStatsEntry getVmStat(final Connect conn, final String vmName)
focal_class.class_method_signature: LibvirtComputingResource.executeBashScript(final String script)
focal_class.full_signature: private String executeBashScript(final String script)
focal_class.identifier: executeBashScript
focal_class.modifiers: private
focal_class.parameters: (final String script)
focal_class.return: String
focal_class.signature: String executeBashScript(final String script)
focal_class.class_method_signature: LibvirtComputingResource.getNicStats(final String nicName)
focal_class.full_signature: public Pair<Double, Double> getNicStats(final String nicName)
focal_class.identifier: getNicStats
focal_class.modifiers: public
focal_class.parameters: (final String nicName)
focal_class.return: Pair<Double, Double>
focal_class.signature: Pair<Double, Double> getNicStats(final String nicName)
focal_class.class_method_signature: LibvirtComputingResource.readDouble(final String nicName, final String fileName)
focal_class.full_signature: static double readDouble(final String nicName, final String fileName)
focal_class.identifier: readDouble
focal_class.modifiers: static
focal_class.parameters: (final String nicName, final String fileName)
focal_class.return: double
focal_class.signature: double readDouble(final String nicName, final String fileName)
focal_class.class_method_signature: LibvirtComputingResource.setName(final String name)
focal_class.full_signature: @Override public void setName(final String name)
focal_class.identifier: setName
focal_class.modifiers: @Override public
focal_class.parameters: (final String name)
focal_class.return: void
focal_class.signature: void setName(final String name)
focal_class.class_method_signature: LibvirtComputingResource.getHypervisorType()
focal_class.full_signature: private HypervisorType getHypervisorType()
focal_class.identifier: getHypervisorType
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: HypervisorType
focal_class.signature: HypervisorType getHypervisorType()
focal_class.class_method_signature: LibvirtComputingResource.getCpuFeatures()
focal_class.full_signature: public List<String> getCpuFeatures()
focal_class.identifier: getCpuFeatures
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: List<String>
focal_class.signature: List<String> getCpuFeatures()
focal_class.class_method_signature: LibvirtComputingResource.getSystemTermpolicyCrash()
focal_class.full_signature: public String getSystemTermpolicyCrash()
focal_class.identifier: getSystemTermpolicyCrash
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getSystemTermpolicyCrash()
focal_class.class_method_signature: LibvirtComputingResource.getSystemTermpolicyPowerOff()
focal_class.full_signature: public String getSystemTermpolicyPowerOff()
focal_class.identifier: getSystemTermpolicyPowerOff
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getSystemTermpolicyPowerOff()
focal_class.class_method_signature: LibvirtComputingResource.getSystemTermpolicyReboot()
focal_class.full_signature: public String getSystemTermpolicyReboot()
focal_class.identifier: getSystemTermpolicyReboot
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getSystemTermpolicyReboot()
focal_class.class_method_signature: LibvirtComputingResource.getVmTermpolicyCrash()
focal_class.full_signature: public String getVmTermpolicyCrash()
focal_class.identifier: getVmTermpolicyCrash
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getVmTermpolicyCrash()
focal_class.class_method_signature: LibvirtComputingResource.getVmTermpolicyPowerOff()
focal_class.full_signature: public String getVmTermpolicyPowerOff()
focal_class.identifier: getVmTermpolicyPowerOff
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getVmTermpolicyPowerOff()
focal_class.class_method_signature: LibvirtComputingResource.getVmTermpolicyReboot()
focal_class.full_signature: public String getVmTermpolicyReboot()
focal_class.identifier: getVmTermpolicyReboot
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getVmTermpolicyReboot()
focal_class.class_method_signature: LibvirtComputingResource.getIfNamePatterns()
focal_class.full_signature: public String[] getIfNamePatterns()
focal_class.identifier: getIfNamePatterns
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String[]
focal_class.signature: String[] getIfNamePatterns()
focal_class.class_method_signature: LibvirtComputingResource.setBridgeType(final BridgeType bridgeType)
focal_class.full_signature: protected void setBridgeType(final BridgeType bridgeType)
focal_class.identifier: setBridgeType
focal_class.modifiers: protected
focal_class.parameters: (final BridgeType bridgeType)
focal_class.return: void
focal_class.signature: void setBridgeType(final BridgeType bridgeType)
focal_class.class_method_signature: LibvirtComputingResource.isSnapshotSupported()
focal_class.full_signature: private boolean isSnapshotSupported()
focal_class.identifier: isSnapshotSupported
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isSnapshotSupported()
focal_class.class_method_signature: LibvirtComputingResource.getTotalMemory()
focal_class.full_signature: public long getTotalMemory()
focal_class.identifier: getTotalMemory
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long getTotalMemory()
focal_class.superclass: extends AgentResourceBase
focal_method.body: public LibvirtVmDef createVmFromSpec(final VirtualMachineTO vmTo) {
          final LibvirtVmDef vm = new LibvirtVmDef();
          vm.setDomainName(vmTo.getName());
          String uuid = vmTo.getUuid();
          uuid = getUuid(uuid);
          vm.setDomUuid(uuid);
          vm.setDomDescription("This VM is optimised for: " + vmTo.getOptimiseFor().toString());
          vm.setPlatformEmulator(vmTo.getPlatformEmulator());
  
          final MetadataTO metadataTo = vmTo.getMetadata();
          if (metadataTo != null) {
              final MetadataDef metadata = new MetadataDef();
              metadata.getNodes().put("cosmicDomainUuid", metadataTo.getDomainUuid());
              metadata.getNodes().put("cosmicDomainName", metadataTo.getCosmicDomainName());
              metadata.getNodes().put("cosmicDomainPath", metadataTo.getCosmicDomainPath());
              metadata.getNodes().put("cosmicInternalVmId", metadataTo.getVmId());
              metadata.getNodes().put("cosmicInstanceName", metadataTo.getInstanceName());
              metadata.getNodes().put("cosmicXmlGeneratedInCosmicVersion", LibvirtComputingResource.class.getPackage().getImplementationVersion());
              metadata.getNodes().put("cosmicXmlGeneratedDateTime", getCurrentLocalDateTimeStamp());
              metadata.getNodes().put("cosmicXmlGeneratedEpoch", getCurrentEpoch());
              metadata.getNodes().put("cosmicVmHostname", metadataTo.getHostname());
              metadata.getNodes().put("cosmicOptimiseFor", vmTo.getOptimiseFor().toString());
  
              final List<String> vpcNameList = metadataTo.getVpcNameList();
              if (vpcNameList != null) {
                  for (final String vpcName : vpcNameList) {
                      metadata.getNodes().put("cosmicVPC", vpcName);
                  }
              }
  
              final Map<String, String> vmTags = metadataTo.getResourceTags();
              if (vmTags != null) {
                  for (Map.Entry<String, String> vmTag : vmTags.entrySet()) {
                      metadata.getNodes().put("cosmicTag_" + vmTag.getKey(), vmTag.getValue());
                  }
              }
              vm.addComponent(metadata);
          }
  
          final GuestDef guest = new GuestDef();
  
          guest.setGuestType(LibvirtVmDef.GuestType.KVM);
          vm.setHvsType(HypervisorType.KVM.toString().toLowerCase());
          vm.setLibvirtVersion(this.hypervisorLibvirtVersion);
          vm.setQemuVersion(this.hypervisorQemuVersion);
  
          guest.setGuestArch(vmTo.getArch());
          guest.setMachineType("pc");
          guest.setUuid(uuid);
          guest.setManufacturer(vmTo.getManufacturer());
          guest.setBootMenuTimeout(vmTo.getBootMenuTimeout());
          if (vmTo.getBootOrder() != null) {
              for (BootOrder device : vmTo.getBootOrder()) {
                  guest.setBootOrder(device);
              }
          } else {
              guest.setBootOrder(BootOrder.CDROM);
              guest.setBootOrder(BootOrder.HARDDISK);
          }
  
          vm.addComponent(guest);
  
          final GuestResourceDef grd = new GuestResourceDef();
  
          if (vmTo.getMinRam() != vmTo.getMaxRam() && !this.libvirtComputingResourceProperties.getVmMemballoonDisable()) {
              grd.setMemBalloning(true);
              grd.setCurrentMem(vmTo.getMinRam() / 1024);
              grd.setMemorySize(vmTo.getMaxRam() / 1024);
          } else {
              grd.setMemorySize(vmTo.getMaxRam() / 1024);
          }
          final int vcpus = vmTo.getCpus();
          grd.setVcpuNum(vcpus);
          vm.addComponent(grd);
  
          final CpuModeDef cmd = new CpuModeDef();
          cmd.setMode(getGuestCpuMode());
          cmd.setModel(getGuestCpuModel());
          cmd.setCpuflags(vmTo.getCpuflags());
          if (vmTo.getType() == VirtualMachineType.User) {
              cmd.setFeatures(getCpuFeatures());
          }
  
          // Windows performs better without the hypervisor flag
          // But only when maintenance policy is live migrate
          if (OptimiseFor.Windows.equals(vmTo.getOptimiseFor()) && MaintenancePolicy.LiveMigrate.equals(vmTo.getMaintenancePolicy())) {
              String extended_cpu_flags = vmTo.getCpuflags();
              if (extended_cpu_flags == null) {
                  extended_cpu_flags = "-hypervisor";
              } else {
                  extended_cpu_flags += " -hypervisor";
              }
              cmd.setCpuflags(extended_cpu_flags);
          }
  
          // multi cores per socket, for larger core configs
          if (vcpus % 6 == 0) {
              final int sockets = vcpus / 6;
              cmd.setTopology(6, sockets);
          } else if (vcpus % 4 == 0) {
              final int sockets = vcpus / 4;
              cmd.setTopology(4, sockets);
          }
          vm.addComponent(cmd);
  
          final CpuTuneDef ctd = new CpuTuneDef();
          if (VirtualMachineType.DomainRouter.equals(vmTo.getType())) {
              ctd.setShares(vmTo.getCpus() * this.libvirtComputingResourceProperties.getGuestCpuSharesRouter());
          } else {
              ctd.setShares(vmTo.getCpus() * this.libvirtComputingResourceProperties.getGuestCpuShares());
          }
          vm.addComponent(ctd);
  
          final FeaturesDef features = new FeaturesDef();
          features.addFeature("pae");
          features.addFeature("apic");
          features.addFeature("acpi");
          vm.addComponent(features);
  
          if (vmTo.getOptimiseFor() == OptimiseFor.Windows) {
              final HyperVEnlightenmentFeatureDef hyperVFeatures = new HyperVEnlightenmentFeatureDef();
              hyperVFeatures.addFeature("relaxed", true);
              hyperVFeatures.addFeature("vapic", true);
              hyperVFeatures.addFeature("spinlocks", true);
              hyperVFeatures.setRetries(8191);
              features.addHyperVFeature(hyperVFeatures);
          }
  
          final TermPolicy term = new TermPolicy();
          if (VirtualMachineType.User.equals(vmTo.getType())) {
              term.setCrashPolicy(getVmTermpolicyCrash());
              term.setPowerOffPolicy(getVmTermpolicyPowerOff());
              term.setRebootPolicy(getVmTermpolicyReboot());
          } else {
              term.setCrashPolicy(getSystemTermpolicyCrash());
              term.setPowerOffPolicy(getSystemTermpolicyPowerOff());
              term.setRebootPolicy(getSystemTermpolicyReboot());
          }
          vm.addComponent(term);
  
          final ClockDef clock = new ClockDef();
          Boolean kvmClockEnabled = !isKvmClockDisabled();
          Boolean hypervClockEnabled = false;
          Boolean trackGuest = false;
          if (vmTo.getOptimiseFor() == OptimiseFor.Windows) {
              clock.setClockOffset(ClockDef.ClockOffset.LOCALTIME);
              kvmClockEnabled = false;
              hypervClockEnabled = true;
              trackGuest = true;
          }
          clock.addTimer("kvmclock", null, kvmClockEnabled, false);
          clock.addTimer("hypervclock", null, hypervClockEnabled, false);
  
          // Recommended default clock/timer settings - https://bugzilla.redhat.com/show_bug.cgi?id=1053847
          // Important note for track="guest" in Windows VMs:
          // https://docs.fedoraproject.org/en-US/Fedora_Draft_Documentation/0
          // .1/html/Virtualization_Deployment_and_Administration_Guide/sect-Virtualization-Tips_and_tricks-Libvirt_Managed_Timers.html
          clock.addTimer("rtc", "catchup", true, trackGuest);
          clock.addTimer("pit", "delay", true, false);
          clock.addTimer("hpet", null, false, false);
          vm.addComponent(clock);
  
          final DevicesDef devices = new DevicesDef();
          devices.setEmulatorPath(this.hypervisorPath);
          devices.setGuestType(guest.getGuestType());
  
          final SerialDef serial = new SerialDef("pty", null, (short) 0);
          devices.addDevice(serial);
  
          final QemuGuestAgentDef guestagent = new QemuGuestAgentDef();
          devices.addDevice(guestagent);
  
          if (this.libvirtComputingResourceProperties.getVmRngEnable()) {
              final RngDef rngDevice = new RngDef(this.rngPath, this.rngBackendModel);
              devices.addDevice(rngDevice);
          }
  
          final WatchDogDef watchDog = new WatchDogDef(this.libvirtComputingResourceProperties.getVmWatchdogAction(), this.libvirtComputingResourceProperties.getVmWatchdogModel());
          devices.addDevice(watchDog);
  
          final VideoDef videoCard = new VideoDef(this.libvirtComputingResourceProperties.getVmVideoHardware(), this.libvirtComputingResourceProperties.getVmVideoRam());
          devices.addDevice(videoCard);
  
          final ConsoleDef console = new ConsoleDef("pty", null, null, (short) 0);
          devices.addDevice(console);
  
          // add the VNC port passwd here, get the passwd from the vmInstance.
          final String passwd = vmTo.getVncPassword();
          final GraphicDef grap = new GraphicDef("vnc", (short) 0, true, passwd, null);
          devices.addDevice(grap);
  
          final InputDef input = new InputDef("tablet", "usb");
          devices.addDevice(input);
  
          // Always add a virtio scsi controller
          vmTo.getName();
          final ScsiDef sd = new ScsiDef((short) 0, 0, 0, 9, 0, vcpus);
          devices.addDevice(sd);
          logger.debug("Adding SCSI definition for " + vmTo.getName() + ":\n" + sd.toString());
  
          vm.addComponent(devices);
  
          return vm;
      }
focal_method.class_method_signature: LibvirtComputingResource.createVmFromSpec(final VirtualMachineTO vmTo)
focal_method.full_signature: public LibvirtVmDef createVmFromSpec(final VirtualMachineTO vmTo)
focal_method.identifier: createVmFromSpec
focal_method.invocations: setDomainName getName getUuid getUuid setDomUuid setDomDescription toString getOptimiseFor setPlatformEmulator getPlatformEmulator getMetadata put getNodes getDomainUuid put getNodes getCosmicDomainName put getNodes getCosmicDomainPath put getNodes getVmId put getNodes getInstanceName put getNodes getImplementationVersion getPackage put getNodes getCurrentLocalDateTimeStamp put getNodes getCurrentEpoch put getNodes getHostname put getNodes toString getOptimiseFor getVpcNameList put getNodes getResourceTags entrySet put getNodes getKey getValue addComponent setGuestType setHvsType toLowerCase toString setLibvirtVersion setQemuVersion setGuestArch getArch setMachineType setUuid setManufacturer getManufacturer setBootMenuTimeout getBootMenuTimeout getBootOrder getBootOrder setBootOrder setBootOrder setBootOrder addComponent getMinRam getMaxRam getVmMemballoonDisable setMemBalloning setCurrentMem getMinRam setMemorySize getMaxRam setMemorySize getMaxRam getCpus setVcpuNum addComponent setMode getGuestCpuMode setModel getGuestCpuModel setCpuflags getCpuflags getType setFeatures getCpuFeatures equals getOptimiseFor equals getMaintenancePolicy getCpuflags setCpuflags setTopology setTopology addComponent equals getType setShares getCpus getGuestCpuSharesRouter setShares getCpus getGuestCpuShares addComponent addFeature addFeature addFeature addComponent getOptimiseFor addFeature addFeature addFeature setRetries addHyperVFeature equals getType setCrashPolicy getVmTermpolicyCrash setPowerOffPolicy getVmTermpolicyPowerOff setRebootPolicy getVmTermpolicyReboot setCrashPolicy getSystemTermpolicyCrash setPowerOffPolicy getSystemTermpolicyPowerOff setRebootPolicy getSystemTermpolicyReboot addComponent isKvmClockDisabled getOptimiseFor setClockOffset addTimer addTimer addTimer addTimer addTimer addComponent setEmulatorPath setGuestType getGuestType addDevice addDevice getVmRngEnable addDevice getVmWatchdogAction getVmWatchdogModel addDevice getVmVideoHardware getVmVideoRam addDevice addDevice getVncPassword addDevice addDevice getName addDevice debug getName toString addComponent
focal_method.modifiers: public
focal_method.parameters: (final VirtualMachineTO vmTo)
focal_method.return: LibvirtVmDef
focal_method.signature: LibvirtVmDef createVmFromSpec(final VirtualMachineTO vmTo)