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

com.datorama.oss.timbermill.unit.PluginApplierTask Maven / Gradle / Ivy

There is a newer version: 2.5.3
Show newest version
package com.datorama.oss.timbermill.unit;

import java.time.ZonedDateTime;
import java.util.Map;

import com.datorama.oss.timbermill.common.TimbermillDatesUtils;

import static com.datorama.oss.timbermill.common.Constants.EXCEPTION;

public class PluginApplierTask extends Task{
    public PluginApplierTask(String env, String pluginName, String pluginClass, TaskStatus status, String exception, ZonedDateTime endTime, long duration, ZonedDateTime startTime, long daysRotation) {
        setName("metadata_timbermill_plugin");
        setEnv(env);
        setStartTime(startTime);
        setEndTime(endTime);
        setDuration(duration);
        setDateToDelete(TimbermillDatesUtils.getDateToDeleteWithDefault(daysRotation));
        setStatus(status);

        Map tasksStrings = getString();
        tasksStrings.put("pluginName", pluginName);
        tasksStrings.put("pluginClass", pluginClass);
        if (exception != null){
            getText().put(EXCEPTION, exception);
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy