use of org.ovirt.engine.core.common.businessentities.VDS in project ovirt-engine by oVirt.
the class HostListModel method openCockpitWithoutSSO.
private void openCockpitWithoutSSO() {
// https://[HOST_FQDN]:9000
String cockpitPort = (String) AsyncDataProvider.getInstance().getConfigValuePreConverted(ConfigValues.CockpitPort);
for (VDS item : getSelectedItems()) {
// open new browser-tab for every selected host
StringBuilder cockpitUrl = new StringBuilder();
cockpitUrl.append(Uri.SCHEME_HTTPS);
// $NON-NLS-1$
cockpitUrl.append("://");
cockpitUrl.append(item.getHostName());
if (StringHelper.isNotNullOrEmpty(cockpitPort)) {
cockpitUrl.append(':');
cockpitUrl.append(cockpitPort);
}
// $NON-NLS-1$
getLogger().info("About to open: " + cockpitUrl.toString());
// $NON-NLS-1$
Window.open(cockpitUrl.toString(), "_blank", "");
}
}
use of org.ovirt.engine.core.common.businessentities.VDS in project ovirt-engine by oVirt.
the class HostListModel method setGlobalHaMaintenance.
private void setGlobalHaMaintenance(boolean enabled) {
VDS vds = getSelectedItem();
if (vds == null || !vds.getHighlyAvailableIsConfigured()) {
return;
}
SetHaMaintenanceParameters params = new SetHaMaintenanceParameters(vds.getId(), HaMaintenanceMode.GLOBAL, enabled);
Frontend.getInstance().runAction(ActionType.SetHaMaintenance, params);
}
use of org.ovirt.engine.core.common.businessentities.VDS in project ovirt-engine by oVirt.
the class HostSetupNetworksModel method queryFreeBonds.
private void queryFreeBonds() {
// query for all unused, existing bonds on the host
VDS vds = getEntity();
Frontend.getInstance().runQuery(QueryType.GetVdsFreeBondsByVdsId, new IdQueryParameters(vds.getId()), new AsyncQuery<QueryReturnValue>(returnValue -> {
allBonds = returnValue.getReturnValue();
queryTLVInformation();
initNetworkModels();
initNicModels();
stopProgress();
}));
}
use of org.ovirt.engine.core.common.businessentities.VDS in project ovirt-engine by oVirt.
the class HostSetupNetworksModel method queryNetworks.
private void queryNetworks() {
VDS vds = getEntity();
// query for networks
AsyncDataProvider.getInstance().getClusterNetworkList(new AsyncQuery<>(returnValue -> {
allNetworks = returnValue;
// chain the qoss query
queryQoss();
}), vds.getClusterId());
}
use of org.ovirt.engine.core.common.businessentities.VDS in project ovirt-engine by oVirt.
the class HostSetupNetworksModel method queryInterfaces.
private void queryInterfaces() {
VDS vds = getEntity();
IdQueryParameters params = new IdQueryParameters(vds.getId());
params.setRefresh(false);
// query for interfaces
Frontend.getInstance().runQuery(QueryType.GetVdsInterfacesByVdsId, params, new AsyncQuery<>((QueryReturnValue returnValue) -> {
allExistingNics = returnValue.getReturnValue();
existingVlanDevicesByVlanId = mapVlanDevicesByVlanId();
initCreateOrUpdateBondParameters();
initNicLabelsParameters();
// chain the network attachments query
queryNetworkAttachments();
}));
}
Aggregations