All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.openstack4j.openstack.compute.internal.ext.HypervisorServiceImpl Maven / Gradle / Ivy

There is a newer version: 3.2.0
Show newest version
package org.openstack4j.openstack.compute.internal.ext;

import java.util.List;

import org.openstack4j.api.compute.ext.HypervisorService;
import org.openstack4j.model.compute.ext.Hypervisor;
import org.openstack4j.model.compute.ext.HypervisorStatistics;
import org.openstack4j.openstack.compute.domain.ext.ExtHypervisor.Hypervisors;
import org.openstack4j.openstack.compute.domain.ext.ExtHypervisorStatistics;
import org.openstack4j.openstack.compute.internal.BaseComputeServices;

/**
 * Implementation for the OSHypervisors. 
 * 
 */
public class HypervisorServiceImpl extends BaseComputeServices implements HypervisorService {

	/**
	 * {@inheritDoc}
	 */
	@Override
	public List list() {
		return get(Hypervisors.class, "/os-hypervisors/detail").execute().getList();
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	public HypervisorStatistics statistics() {
		return get(ExtHypervisorStatistics.class, "/os-hypervisors/statistics").execute();
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy