private int getProperSampleSearchIntervalSeconds(ManagementRESTServiceConfiguration mRest) { return mRest == null ? StatisticsGateway.DEFAULT_SEARCH_INTERVAL_SECS : mRest.getSampleSearchIntervalSeconds(); }
/** * A factory method for {@link SampledCounterConfig} based on the global settings defined on this object * * @see #getSampleSearchIntervalSeconds() * @see #getSampleHistorySize() * * @return a {@code SampledCounterConfig} */ public SampledRateCounterConfig makeSampledSearchRateCounterConfig() { return new SampledRateCounterConfig(getSampleSearchIntervalSeconds(), getSampleHistorySize(), true); }
private int getProperSampleSearchIntervalSeconds(ManagementRESTServiceConfiguration mRest) { return mRest == null ? StatisticsGateway.DEFAULT_SEARCH_INTERVAL_SECS : mRest.getSampleSearchIntervalSeconds(); }
private int getProperSampleSearchIntervalSeconds(ManagementRESTServiceConfiguration mRest) { return mRest == null ? StatisticsGateway.DEFAULT_SEARCH_INTERVAL_SECS : mRest.getSampleSearchIntervalSeconds(); }
/** * A factory method for {@link SampledCounterConfig} based on the global settings defined on this object * * @see #getSampleSearchIntervalSeconds() * @see #getSampleHistorySize() * * @return a {@code SampledCounterConfig} */ public SampledRateCounterConfig makeSampledSearchRateCounterConfig() { return new SampledRateCounterConfig(getSampleSearchIntervalSeconds(), getSampleHistorySize(), true); }
/** * A factory method for {@link SampledCounterConfig} based on the global settings defined on this object * * @see #getSampleSearchIntervalSeconds() * @see #getSampleHistorySize() * * @return a {@code SampledCounterConfig} */ public SampledRateCounterConfig makeSampledSearchRateCounterConfig() { return new SampledRateCounterConfig(getSampleSearchIntervalSeconds(), getSampleHistorySize(), true); }
/** * A factory method for {@link SampledCounterConfig} based on the global settings defined on this object * * @see #getSampleSearchIntervalSeconds() * @see #getSampleHistorySize() * * @return a {@code SampledCounterConfig} */ public SampledRateCounterConfig makeSampledSearchRateCounterConfig() { return new SampledRateCounterConfig(getSampleSearchIntervalSeconds(), getSampleHistorySize(), true); }
private void init() { if (managementRESTServiceConfiguration == null) { return; } addAttribute(new SimpleNodeAttribute("enabled", managementRESTServiceConfiguration.isEnabled()).defaultValue(false)); addAttribute(new SimpleNodeAttribute("bind", managementRESTServiceConfiguration.getBind()) .defaultValue(ManagementRESTServiceConfiguration.DEFAULT_BIND)); addAttribute(new SimpleNodeAttribute("securityServiceLocation", managementRESTServiceConfiguration .getSecurityServiceLocation()).optional(true)); addAttribute(new SimpleNodeAttribute("securityServiceTimeout", managementRESTServiceConfiguration .getSecurityServiceTimeout()).optional(true) .defaultValue(ManagementRESTServiceConfiguration.DEFAULT_SECURITY_SVC_TIMEOUT)); addAttribute(new SimpleNodeAttribute("sslEnabled", managementRESTServiceConfiguration.isSslEnabled()) .optional(true).defaultValue(false)); addAttribute(new SimpleNodeAttribute("needClientAuth", managementRESTServiceConfiguration.isNeedClientAuth()) .optional(true).defaultValue(false)); addAttribute(new SimpleNodeAttribute("sampleHistorySize", managementRESTServiceConfiguration.getSampleHistorySize()) .optional(true).defaultValue(StatisticsGateway.DEFAULT_HISTORY_SIZE)); addAttribute(new SimpleNodeAttribute("sampleIntervalSeconds", managementRESTServiceConfiguration .getSampleIntervalSeconds()).optional(true).defaultValue(StatisticsGateway.DEFAULT_INTERVAL_SECS)); addAttribute(new SimpleNodeAttribute("sampleSearchIntervalSeconds", managementRESTServiceConfiguration .getSampleSearchIntervalSeconds()).optional(true).defaultValue(StatisticsGateway.DEFAULT_SEARCH_INTERVAL_SECS)); } }
private void init() { if (managementRESTServiceConfiguration == null) { return; } addAttribute(new SimpleNodeAttribute("enabled", managementRESTServiceConfiguration.isEnabled()).defaultValue(false)); addAttribute(new SimpleNodeAttribute("bind", managementRESTServiceConfiguration.getBind()) .defaultValue(ManagementRESTServiceConfiguration.DEFAULT_BIND)); addAttribute(new SimpleNodeAttribute("securityServiceLocation", managementRESTServiceConfiguration .getSecurityServiceLocation()).optional(true)); addAttribute(new SimpleNodeAttribute("securityServiceTimeout", managementRESTServiceConfiguration .getSecurityServiceTimeout()).optional(true) .defaultValue(ManagementRESTServiceConfiguration.DEFAULT_SECURITY_SVC_TIMEOUT)); addAttribute(new SimpleNodeAttribute("sslEnabled", managementRESTServiceConfiguration.isSslEnabled()) .optional(true).defaultValue(false)); addAttribute(new SimpleNodeAttribute("needClientAuth", managementRESTServiceConfiguration.isNeedClientAuth()) .optional(true).defaultValue(false)); addAttribute(new SimpleNodeAttribute("sampleHistorySize", managementRESTServiceConfiguration.getSampleHistorySize()) .optional(true).defaultValue(StatisticsGateway.DEFAULT_HISTORY_SIZE)); addAttribute(new SimpleNodeAttribute("sampleIntervalSeconds", managementRESTServiceConfiguration .getSampleIntervalSeconds()).optional(true).defaultValue(StatisticsGateway.DEFAULT_INTERVAL_SECS)); addAttribute(new SimpleNodeAttribute("sampleSearchIntervalSeconds", managementRESTServiceConfiguration .getSampleSearchIntervalSeconds()).optional(true).defaultValue(StatisticsGateway.DEFAULT_SEARCH_INTERVAL_SECS)); } }
private void init() { if (managementRESTServiceConfiguration == null) { return; } addAttribute(new SimpleNodeAttribute("enabled", managementRESTServiceConfiguration.isEnabled()).defaultValue(false)); addAttribute(new SimpleNodeAttribute("bind", managementRESTServiceConfiguration.getBind()) .defaultValue(ManagementRESTServiceConfiguration.DEFAULT_BIND)); addAttribute(new SimpleNodeAttribute("securityServiceLocation", managementRESTServiceConfiguration .getSecurityServiceLocation()).optional(true)); addAttribute(new SimpleNodeAttribute("securityServiceTimeout", managementRESTServiceConfiguration .getSecurityServiceTimeout()).optional(true) .defaultValue(ManagementRESTServiceConfiguration.DEFAULT_SECURITY_SVC_TIMEOUT)); addAttribute(new SimpleNodeAttribute("sslEnabled", managementRESTServiceConfiguration.isSslEnabled()) .optional(true).defaultValue(false)); addAttribute(new SimpleNodeAttribute("needClientAuth", managementRESTServiceConfiguration.isNeedClientAuth()) .optional(true).defaultValue(false)); addAttribute(new SimpleNodeAttribute("sampleHistorySize", managementRESTServiceConfiguration.getSampleHistorySize()) .optional(true).defaultValue(CacheStatisticsSampler.DEFAULT_HISTORY_SIZE)); addAttribute(new SimpleNodeAttribute("sampleIntervalSeconds", managementRESTServiceConfiguration .getSampleIntervalSeconds()).optional(true).defaultValue(CacheStatisticsSampler.DEFAULT_INTERVAL_SECS)); addAttribute(new SimpleNodeAttribute("sampleSearchIntervalSeconds", managementRESTServiceConfiguration .getSampleSearchIntervalSeconds()).optional(true).defaultValue(CacheStatisticsSampler.DEFAULT_SEARCH_INTERVAL_SEC)); } }
private void init() { if (managementRESTServiceConfiguration == null) { return; } addAttribute(new SimpleNodeAttribute("enabled", managementRESTServiceConfiguration.isEnabled()).defaultValue(false)); addAttribute(new SimpleNodeAttribute("bind", managementRESTServiceConfiguration.getBind()) .defaultValue(ManagementRESTServiceConfiguration.DEFAULT_BIND)); addAttribute(new SimpleNodeAttribute("securityServiceLocation", managementRESTServiceConfiguration .getSecurityServiceLocation()).optional(true)); addAttribute(new SimpleNodeAttribute("securityServiceTimeout", managementRESTServiceConfiguration .getSecurityServiceTimeout()).optional(true) .defaultValue(ManagementRESTServiceConfiguration.DEFAULT_SECURITY_SVC_TIMEOUT)); addAttribute(new SimpleNodeAttribute("sslEnabled", managementRESTServiceConfiguration.isSslEnabled()) .optional(true).defaultValue(false)); addAttribute(new SimpleNodeAttribute("needClientAuth", managementRESTServiceConfiguration.isNeedClientAuth()) .optional(true).defaultValue(false)); addAttribute(new SimpleNodeAttribute("sampleHistorySize", managementRESTServiceConfiguration.getSampleHistorySize()) .optional(true).defaultValue(StatisticsGateway.DEFAULT_HISTORY_SIZE)); addAttribute(new SimpleNodeAttribute("sampleIntervalSeconds", managementRESTServiceConfiguration .getSampleIntervalSeconds()).optional(true).defaultValue(StatisticsGateway.DEFAULT_INTERVAL_SECS)); addAttribute(new SimpleNodeAttribute("sampleSearchIntervalSeconds", managementRESTServiceConfiguration .getSampleSearchIntervalSeconds()).optional(true).defaultValue(StatisticsGateway.DEFAULT_SEARCH_INTERVAL_SECS)); } }