com.glookast.commons.capture.TransferJob Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of commons-capture Show documentation
Show all versions of commons-capture Show documentation
Helper classes with Jackson annotations for easy interfacing with Glookast Products
package com.glookast.commons.capture;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.UUID;
@Data
@NoArgsConstructor
@AllArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, defaultImpl = TransferJob.class)
public class TransferJob
{
protected String id;
protected int channelId;
protected UUID captureJobId;
protected UUID transformProfileId;
protected String transformProfileName;
protected UUID outputSystemId;
protected String outputSystemName;
protected TransferJobStatus status;
protected String statusMessage;
protected double progress;
public TransferJob(TransferJob transferJob)
{
this.id = transferJob.id;
this.channelId = transferJob.channelId;
this.captureJobId = transferJob.captureJobId;
this.transformProfileId = transferJob.transformProfileId;
this.transformProfileName = transferJob.transformProfileName;
this.outputSystemId = transferJob.outputSystemId;
this.outputSystemName = transferJob.outputSystemName;
this.status = transferJob.status;
this.statusMessage = transferJob.statusMessage;
this.progress = transferJob.progress;
}
}