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

com.yahoo.log.event.Progress Maven / Gradle / Ivy

There is a newer version: 8.442.54
Show newest version
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.log.event;

/**
 *
 * @author  Bjorn Borud
 */
class Progress extends Event {
    public Progress () {
    }

    public Progress (String name, String value, String total) {
        init(name, value, total);
    }

    public Progress (String name, double value, double total) {
        init(name, Double.toString(value), Double.toString(total));
    }

    public Progress (String name, String value) {
        init(name, value, "");
    }

    public Progress (String name, double value) {
        init(name, Double.toString(value), "");
    }

    private void init (String name, String value, String total) {
        setValue("name", name);
        setValue("value", value);
        setValue("total", total);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy