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

com.aliyun.openservices.log.common.Ingestion Maven / Gradle / Ivy

There is a newer version: 0.6.115
Show newest version
package com.aliyun.openservices.log.common;

import com.alibaba.fastjson.JSONObject;

import java.io.Serializable;

public class Ingestion extends ScheduledJob implements Serializable {

    private static final long serialVersionUID = -6535073053545538036L;

    private IngestionConfiguration configuration;

    public Ingestion() {
        setType(JobType.INGESTION);
    }

    public void setConfiguration(IngestionConfiguration configuration) {
        this.configuration = configuration;
    }

    @Override
    public IngestionConfiguration getConfiguration() {
        return configuration;
    }

    public void deserialize(JSONObject jsonObject) {
        super.deserialize(jsonObject);
        configuration = new IngestionConfiguration();
        configuration.deserialize(jsonObject.getJSONObject("configuration"));
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy