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

com.glookast.commons.capture.TransferJob Maven / Gradle / Ivy

Go to download

Helper classes with Jackson annotations for easy interfacing with Glookast Products

There is a newer version: 3.1.6
Show newest version
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy