
org.ctoolkit.restapi.client.agent.model.JobInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ctoolkit-client-agent Show documentation
Show all versions of ctoolkit-client-agent Show documentation
CtoolkiT REST API Client Implementation of Cloud Toolkit Migration Agent
/*
* Copyright (c) 2017 Comvai, s.r.o. All Rights Reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.ctoolkit.restapi.client.agent.model;
import java.io.Serializable;
/**
* Job info
*
* @author Jozef Pohorelec
*/
public abstract class JobInfo
implements Serializable
{
private Long id;
private String jobId;
private String jobUrl;
private int processedItems;
private JobState state;
private String stackTrace;
public Long getId()
{
return id;
}
public void setId( Long id )
{
this.id = id;
}
public String getJobId()
{
return jobId;
}
public void setJobId( String jobId )
{
this.jobId = jobId;
}
public String getJobUrl()
{
return jobUrl;
}
public void setJobUrl( String jobUrl )
{
this.jobUrl = jobUrl;
}
public int getProcessedItems()
{
return processedItems;
}
public void setProcessedItems( int processedItems )
{
this.processedItems = processedItems;
}
public JobState getState()
{
return state;
}
public void setState( JobState state )
{
this.state = state;
}
public String getStackTrace()
{
return stackTrace;
}
public void setStackTrace( String stackTrace )
{
this.stackTrace = stackTrace;
}
@Override
public String toString()
{
return "JobInfo{" +
"id=" + id +
", jobId='" + jobId + '\'' +
", jobUrl='" + jobUrl + '\'' +
", processedItems=" + processedItems +
", state=" + state +
", stackTrace='" + stackTrace + '\'' +
'}';
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy