
com.abiquo.tarantino.model.transport.TarantinoResponse Maven / Gradle / Ivy
/**
* Copyright (C) 2008 - Abiquo Holdings S.L. All rights reserved.
*
* Please see /opt/abiquo/tomcat/webapps/legal/ on Abiquo server
* or contact [email protected] for licensing information.
*/
package com.abiquo.tarantino.model.transport;
import java.io.Serializable;
import com.abiquo.hypervisor.plugin.exception.HypervisorPluginError;
public class TarantinoResponse implements Serializable
{
private static final long serialVersionUID = 7243980687421050559L;
public enum JobStateType
{
START, DONE, ERROR, ABORTED, ROLLBACK_START, ROLLBACK_DONE, ROLLBACK_ERROR, ROLLBACK_ABORTED
};
protected String jobId;
protected JobStateType state;
/** for ERROR and ROLLBACK_ERROR adds the cause. TODO use VirtualFactoryException. */
protected String error;
protected HypervisorPluginError pluginError;
public HypervisorPluginError getTarantinoError()
{
return pluginError;
}
public void setTarantinoError(final HypervisorPluginError pluginError)
{
this.pluginError = pluginError;
}
public String getJobId()
{
return jobId;
}
public void setJobId(final String jobId)
{
this.jobId = jobId;
}
public String getError()
{
return error;
}
public void setError(final String error)
{
this.error = error;
}
public JobStateType getState()
{
return state;
}
public void setState(final JobStateType state)
{
this.state = state;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy