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

io.nosqlbench.engine.api.activityimpl.ProgressAndStateMeter Maven / Gradle / Ivy

Go to download

The engine API for nosqlbench; Provides the interfaces needed to build internal modules for the nosqlbench core engine

There is a newer version: 5.17.0
Show newest version
package io.nosqlbench.engine.api.activityimpl;

import io.nosqlbench.engine.api.activityapi.core.ProgressMeter;
import io.nosqlbench.engine.api.activityapi.core.RunState;
import io.nosqlbench.engine.api.activityimpl.input.StateCapable;

public class ProgressAndStateMeter implements ProgressMeter, StateCapable {
    private final ProgressMeter meter;
    private final StateCapable statesrc;

    public ProgressAndStateMeter(ProgressMeter meter, StateCapable statesrc) {
        this.meter = meter;
        this.statesrc = statesrc;
    }

    @Override
    public String getProgressName() {
        return meter.getProgressName();
    }

    @Override
    public long getStartedAtMillis() {
        return meter.getStartedAtMillis();
    }

    @Override
    public long getProgressMin() {
        return meter.getProgressMin();
    }

    @Override
    public long getProgressCurrent() {
        return meter.getProgressCurrent();
    }

    @Override
    public long getProgressMax() {
        return meter.getProgressMax();
    }

    @Override
    public long getRecyclesCurrent() {
        return meter.getRecyclesCurrent();
    }

    @Override
    public long getRecyclesMax() {
        return meter.getRecyclesMax();
    }

    @Override
    public RunState getRunState() {
        return statesrc.getRunState();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy