@Override public HypervisorType getSupportedHypervisorType() { return HypervisorType.valueOf(KVMConstant.KVM_HYPERVISOR_TYPE); }
@Override public HypervisorType getConsoleBackendHypervisorType() { return HypervisorType.valueOf(KVMConstant.KVM_HYPERVISOR_TYPE); }
@Override public HypervisorType getVirtualRouterSupportedHypervisorType() { return HypervisorType.valueOf(KVMConstant.KVM_HYPERVISOR_TYPE); }
@Override public HypervisorType getHypervisorType() { return HypervisorType.valueOf(SimulatorConstant.SIMULATOR_HYPERVISOR_TYPE); } }
@Override public HypervisorType getHypervisorTypeForReestablishExtensionPoint() { return HypervisorType.valueOf(KVMConstant.KVM_HYPERVISOR_TYPE); }
@Override public HypervisorType getSupportedHypervisorType() { return HypervisorType.valueOf(SimulatorConstant.SIMULATOR_HYPERVISOR_TYPE); }
@Override public HypervisorType getSecurityGroupBackendHypervisorType() { return HypervisorType.valueOf(SimulatorConstant.SIMULATOR_HYPERVISOR_TYPE); }
@Override public HypervisorType getSupportedHypervisorTypeForVmInstanceStateChangeNotifyPoint() { return HypervisorType.valueOf(SimulatorConstant.SIMULATOR_HYPERVISOR_TYPE); }
@Override public HypervisorType getHypervisorType() { return HypervisorType.valueOf(KVMConstant.KVM_HYPERVISOR_TYPE); }
@Override public HypervisorType getHypervisorTypeForReestablishExtensionPoint() { return HypervisorType.valueOf(KVMConstant.KVM_HYPERVISOR_TYPE); }
@Override public HypervisorType getSecurityGroupBackendHypervisorType() { return HypervisorType.valueOf(KVMConstant.KVM_HYPERVISOR_TYPE); }
@Override public HypervisorType getSupportedHypervisorType() { return HypervisorType.valueOf(KVMConstant.KVM_HYPERVISOR_TYPE); }
@Override public HypervisorType getHypervisorTypeForReestablishExtensionPoint() { return HypervisorType.valueOf(KVMConstant.KVM_HYPERVISOR_TYPE); }
@Override public HypervisorType getSupportedHypervisorType() { return HypervisorType.valueOf(SimulatorConstant.SIMULATOR_HYPERVISOR_TYPE); }
private NfsPrimaryStorageBackend getBackendByClusterUuid(String clusterUuid) { SimpleQuery<ClusterVO> query = dbf.createQuery(ClusterVO.class); query.select(ClusterVO_.hypervisorType); query.add(ClusterVO_.uuid, Op.EQ, clusterUuid); String hvType = query.findValue(); return getBackend(HypervisorType.valueOf(hvType)); }
protected void realizeNetwork(String hostUuid, String htype, Completion completion) { final HypervisorType hvType = HypervisorType.valueOf(htype); final L2NetworkType l2Type = L2NetworkType.valueOf(self.getType()); L2NetworkRealizationExtensionPoint ext = l2Mgr.getRealizationExtension(l2Type, hvType); ext.realize(getSelfInventory(), hostUuid, completion); }
protected void realizeNetwork(String hostUuid, String htype, Completion completion) { final HypervisorType hvType = HypervisorType.valueOf(htype); final L2NetworkType l2Type = L2NetworkType.valueOf(self.getType()); L2NetworkRealizationExtensionPoint ext = l2Mgr.getRealizationExtension(l2Type, hvType); ext.realize(getSelfInventory(), hostUuid, completion); }
protected void realizeNetwork(String hostUuid, String htype, Completion completion) { final HypervisorType hvType = HypervisorType.valueOf(htype); final L2NetworkType l2Type = L2NetworkType.valueOf(self.getType()); L2NetworkRealizationExtensionPoint ext = l2Mgr.getRealizationExtension(l2Type, hvType); ext.realize(getSelfInventory(), hostUuid, completion); }
private void handle(PrimaryStorageRemoveCachedImageMsg msg) { if (self.getAttachedClusterRefs().isEmpty()) { PrimaryStorageRemoveCachedImageReply reply = new PrimaryStorageRemoveCachedImageReply(); reply.setError(operr("primary storage[uuid:%s] doesn't attach to any cluster", self.getUuid())); bus.reply(msg, reply); return; } PrimaryStorageClusterRefVO ref = self.getAttachedClusterRefs().iterator().next(); ClusterVO cluster = dbf.findByUuid(ref.getClusterUuid(), ClusterVO.class); getBackend(HypervisorType.valueOf(cluster.getHypervisorType())).deleteImageCache(msg.getInventory()); }
private void passThrough(HostMessage msg) { HostVO vo = dbf.findByUuid(msg.getHostUuid(), HostVO.class); if (vo == null && allowedMessageAfterSoftDeletion.contains(msg.getClass())) { HostEO eo = dbf.findByUuid(msg.getHostUuid(), HostEO.class); vo = ObjectUtils.newAndCopy(eo, HostVO.class); } if (vo == null) { ErrorCode err = Platform.err(SysErrors.RESOURCE_NOT_FOUND, "cannot find host[uuid:%s], it may have been deleted", msg.getHostUuid()); throw new OperationFailureException(err); } HypervisorFactory factory = this.getHypervisorFactory(HypervisorType.valueOf(vo.getHypervisorType())); Host host = factory.getHost(vo); host.handleMessage((Message) msg); }