public void setvds(VDS value) { vdsStatic = value.getStaticData(); }
public void setCurrentKernelCmdline(String currentKernelArguments) { getStaticData().setCurrentKernelCmdline(currentKernelArguments); }
public String getLastStoredKernelCmdline() { return getStaticData().getLastStoredKernelCmdline(); }
public void setLastStoredKernelCmdline(String lastSentKernelArguments) { getStaticData().setLastStoredKernelCmdline(lastSentKernelArguments); }
public String getCurrentKernelCmdline() { return getStaticData().getCurrentKernelCmdline(); }
@Override public ActionParametersBase getParameters(Host incoming, VDS entity) { VdsStatic updated = getMapper(modelType, VdsStatic.class).map(incoming, entity.getStaticData()); UpdateVdsActionParameters updateParams = new UpdateVdsActionParameters(updated, incoming.getRootPassword(), false); // Updating Fence-agents is deprecated from this context, so the original, unchanged, list of agents is // passed to the engine. updateParams.setFenceAgents(entity.getFenceAgents()); if (incoming.isSetOverrideIptables()) { updateParams.setOverrideFirewall(incoming.isOverrideIptables()); } updateParams = (UpdateVdsActionParameters) getMapper (Host.class, VdsOperationActionParameters.class).map(incoming, updateParams); return updateParams; } }
static VDS setUpEntityExpectations(VDS entity, VdsStatistics statistics, int index) { entity.setId(GUIDS[index]); entity.getStaticData().setName(NAMES[index]); entity.setHostName(ADDRESSES[index]); entity.setStatus(VDS_STATUS[index]); entity.setStoragePoolId(GUIDS[1]); if (statistics != null) { setUpStatisticalEntityExpectations(entity, statistics); } return entity; }
@Override public Response install(Action action) { // REVISIT fencing options VDS vds = getEntity(); UpdateVdsActionParameters params = new UpdateVdsActionParameters(vds.getStaticData(), action.getRootPassword(), true); params.setFenceAgents(null); // Explicitly set null, to be clear we don't want to update fence agents. params.setHostedEngineDeployConfiguration(HostResourceParametersUtil.getHostedEngineDeployConfiguration(this)); params = (UpdateVdsActionParameters) getMapper (Action.class, VdsOperationActionParameters.class).map(action, params); if (vds.isOvirtVintageNode()) { params.setReinstallOrUpgrade(true); if (action.isSetImage()) { params.setoVirtIsoFile(action.getImage()); return doAction(ActionType.UpgradeOvirtNode, params, action); } } // Installation is only done in maintenance mode, and should by default leave the host in maintenance mode. // this is why the default value for 'activate' here is false (vs in adding or approving a host, where it is 'true') boolean activate = ParametersHelper.getBooleanParameter(httpHeaders, uriInfo, BackendHostsResource.ACTIVATE, true, false); params.setActivateHost(activate); return doAction(ActionType.UpdateVds, params, action); }
model.setSsh(map(entity.getStaticData(), null)); Cpu cpu = new Cpu(); CpuTopology cpuTopology = new CpuTopology();
if (getEntity().getStaticData().isReinstallRequired()) { setHasReinstallRequiredAlert(true);