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

com.imperva.stepping.PerfSamplerStepConfig Maven / Gradle / Ivy

Go to download

Stepping is a framework designed to ease the implementation of data processing solutions. In use cases where we need to implement data or data-streaming algorithms or any other processing on data, we need to first handle many different infrastructure issues. For example, we need to decide how to split the data processing logic into different steps, think about our threading policy, how to handle communication between the different steps, error handling etc. One of the most important subjects is the Threading Policy of our solution. For example, we need to think how many threads to open, have the option to distribute the processing of data to multiple 'executors' in parallel, have a thread-safe communication layer between the threads etc. On top of that we also care a lot about the performance of our solution, we want to make sure that the latency added by these infrastructures is minimal as possible. Stepping aims to handle many of these aspects so developers can spend their time on the business logic instead of solving these infrastructure and data flow issues issues over and over again.

There is a newer version: 5.1.0
Show newest version
package com.imperva.stepping;

public class PerfSamplerStepConfig {
    private boolean enable;
    private String packages;
    private int reportInterval;

    public PerfSamplerStepConfig(){
        SteppingProperties stepProp = SteppingProperties.getInstance();
        enable = new Boolean(stepProp.getProperty("stepping.default.algo.perfsampler.enable"));
        packages = stepProp.getProperty("stepping.default.algo.perfsampler.packages");
        reportInterval = new Integer(stepProp.getProperty("stepping.default.algo.perfsampler.reportinterval"));
    }

    public boolean isEnable() {
        return enable;
    }

    public void setEnable(boolean enable) {
        this.enable = enable;
    }

    public String getPackages() {
        return packages;
    }

    public void setPackages(String packages) {
        this.packages = packages;
    }

    public int getReportInterval() {
        return reportInterval;
    }

    public void setReportInterval(int reportInterval) {
        this.reportInterval = reportInterval;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy