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

nl.vpro.rs.client.AbstractApiClientMXBean Maven / Gradle / Ivy

The newest version!
package nl.vpro.rs.client;

import javax.management.MXBean;

import nl.vpro.jmx.Description;
import nl.vpro.jmx.Units;

/**
 * @author Michiel Meeuwissen
 * @since 0.51
 */
@MXBean
public interface AbstractApiClientMXBean {


    String getBaseUrl();
    void setBaseUrl(String url);

    @Units("duration")
    String getConnectionRequestTimeout();
    void setConnectionRequestTimeout(String connectionRequestTimeout);

    @Units("duration")
    String getConnectTimeout();
    void setConnectTimeout(String connectTimeout);

    @Units("duration")
    String getSocketTimeout();
    void setSocketTimeout(String socketTimeout);

    String getConnectionInPoolTTL();
    void  setConnectionInPoolTTL(String connectionInPoolTTL);

    String getValidateAfterInactivity();

    void  setValidateAfterInactivity(String validateAfterInactivity);

    String getCounts();
    long getCount(String method);
    long getTotalCount();

    String getCountWindowString();
    void setCountWindowString(String s);
    Integer getBucketCount();
    void setBucketCount(Integer bucketCount);

    String getWarnThresholdString();
    void setWarnThresholdString(String s);

    Integer getMaxConnections();
    void setMaxConnections(Integer maxConnections);
    Integer getMaxConnectionsPerRoute();
    void setMaxConnectionsPerRoute(Integer maxConnectionsPerRoute);

    Integer getMaxConnectionsNoTimeout();
    void setMaxConnectionsNoTimeout(Integer maxConnections);
    Integer getMaxConnectionsPerRouteNoTimeout();
    void setMaxConnectionsPerRouteNoTimeout(Integer maxConnectionsPerRoute);


    @Units("events/minute")
    double getRate();

    String getInitializationInstant();

    void invalidate();


    @Description("Just performs a test call. By this one check via jmx whether the client is working. The argument is probably some id of the items in the api this client is serving")
    String test(String arg);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy