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

io.sbk.params.Parameters Maven / Gradle / Ivy

/**
 * Copyright (c) KMG. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 */

package io.sbk.params;

/**
 * Interface Parameters.
 */
public interface Parameters extends ActionParameter {

    /**
     * Get the execution time in seconds.
     *
     * @return seconds to run
     */
    long getTotalSecondsToRun();

    /**
     * Get the Total Number of records to read/writer.
     *
     * @return number of records.
     */
    long getTotalRecords();

    /**
     * Size of the record/event to read or write.
     *
     * @return size of the record.
     */
    int getRecordSize();

    /**
     * Number of records/events to write/read per single flush/sync.
     *
     * @return number of records per sync.
     */
    int getRecordsPerSync();

    /**
     * Number of records/events to write/read per Second.
     *
     * @return number of records per seconds.
     */
    int getRecordsPerSec();

    /**
     * Number of Writers/Producers.
     *
     * @return Number of Writers.
     */
    int getWritersCount();

    /**
     * Number of Readers/Consumers.
     *
     * @return Number of Readers.
     */
    int getReadersCount();

    /**
     * Time out for data to read.
     *
     * @return time-out in milliseconds.
     */
    int getTimeoutMS();


    /**
     * get the number of writers / step to increase.
     *
     * @return delta value.
     */
    int getWritersStep();


    /**
     * get duration of writers step in seconds.
     *
     * @return get the interval in seconds .
     */
    int getWritersStepSeconds();


    /**
     * get the number of readers / step to increase.
     *
     * @return delta value.
     */
    int getReadersStep();


    /**
     * get duration of readers step in seconds.
     *
     * @return get the interval in seconds .
     */
    int getReadersStepSeconds();


    /**
     * get duration idle sleep in Milliseconds.
     *
     * @return get idle sleep in milliseconds .
     */
    int getIdleSleepMilliSeconds();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy