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

org.openstack4j.openstack.senlin.internal.SenlinActionServiceImpl Maven / Gradle / Ivy

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

import org.openstack4j.api.senlin.SenlinActionService;
import org.openstack4j.model.senlin.Action;
import org.openstack4j.openstack.senlin.domain.SenlinAction;

import java.util.List;

import static com.google.common.base.Preconditions.checkNotNull;

/**
 * This class contains getters for all implementation of the available action services
 * 
 * @author lion
 */
public class SenlinActionServiceImpl extends BaseSenlinServices implements SenlinActionService {

	@Override
	public List list() {
		return get(SenlinAction.Action.class, uri("/actions")).execute().getList();
	}

	@Override
	public Action get(String actionID) {
		checkNotNull(actionID);
		return get(SenlinAction.class, uri("/actions/%s", actionID)).execute();
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy