public ConsoleMetricsWriter(final ConsoleOutputConfig config) { checkArgumentNotNull(config, "config"); this.config = config; }
public JdbcInputConfig(final String name, final Map<String, Object> variables, final String pool, final List<String> queries) { super(name, variables); checkArgumentNotNull(pool, "pool"); checkArgumentNotNullNorEmpty(queries, "queries"); this.pool= pool; this.queries = Collections.unmodifiableList(queries); }
public GraphiteOutputConfig(final String name, final boolean default_, final String host, final int port, final String prefix) { super(name, default_); checkArgumentNotNullNorEmpty(host, "host"); checkArgument(port > 0 && port < 65536, "port must be in range [1,65535]"); this.host = host; this.port = port; this.prefix = prefix; }
public WebMethodsInputConfig(final String name, final Map<String, Object> variables, final URL url, final String username, final String password, final Map<String, String> headers, final boolean preemptiveAuthEnabled, final SocketOptionsConfig socketOptions, final long maxEntrySize, final DateFormat dateFormat) { super(name, variables, url, username, password, headers, preemptiveAuthEnabled, socketOptions, null); checkArgumentNotNull(dateFormat, "dateFormat"); checkArgument(maxEntrySize > 0, "maxEntrySize must greater than 0"); this.maxEntrySize = maxEntrySize; this.dateFormat = dateFormat; }
public SimpleMetricName(final String name, final String description) { checkArgumentNotNullNorEmpty(name, "name"); this.name = name; this.description = description; }
public OracleNoSQLInputConfig(final String name, final Map<String, Object> variables, final List<HostConfig> hosts, Optional<String> storeName, Optional<Path> trustFile, Optional<LoginConfig> login) { super(name, variables); checkArgumentNotNullNorEmpty(hosts, "hosts"); this.hosts = hosts; this.storeName = storeName; this.trustFile = trustFile; this.login = login; if (login.isPresent() || trustFile.isPresent() || storeName.isPresent()) { Preconditions.checkArgumentPresent(login, "login"); Preconditions.checkArgumentPresent(trustFile, "trustFile"); if (!Files.exists(trustFile.get())) { throw new IllegalArgumentException("The trust file [" + trustFile.get().toAbsolutePath() + "] does not exist"); } Preconditions.checkArgumentPresent(storeName, "storeName"); } }
public static ApplicationInfo getInstance() { checkStateNotNull(instance, "instance"); return instance; }
public SamplerConfig(final String name, final String pool, final int interval, final boolean ignored, final boolean disabled, final Map<String, Object> globalVariables, final List<ValueTransformerConfig> valueTransformers) { super(name); checkArgumentNotNull(pool, "pool"); checkArgument(interval > 0, "interval must be greater than 0 seconds"); checkArgumentNotNull(globalVariables, "globalVariables"); checkArgumentNotNull(valueTransformers, "valueTransformers"); this.pool = pool; this.interval = interval; this.ignored = ignored; this.disabled = disabled; this.globalVariables = unmodifiableMap(globalVariables); this.valueTransformers = unmodifiableList(valueTransformers); }
public ConfigurationLoader(final Collection<Class<?>> xbeanClasses, List<XBeanPostProcessor> xbeanPostProcessors) { checkArgumentNotNullNorEmpty(xbeanClasses, "xbeanClasses"); this.xbeanClasses = xbeanClasses; this.xbeanPostProcessors = xbeanPostProcessors; }
public static ApplicationInfo getInstance() { checkStateNotNull(instance, "instance"); return instance; }
public RegExpSelectorConfig(final String namePattern, final String descriptionPattern, final String keyExpression) { checkArgumentNotNull(keyExpression, "keyExpression"); this.namePattern = namePattern; this.descriptionPattern = descriptionPattern; this.keyExpression = keyExpression; }
public JdbcInputConfig(final String name, final Map<String, Object> variables, final String pool, final List<String> queries) { super(name, variables); checkArgumentNotNull(pool, "pool"); checkArgumentNotNullNorEmpty(queries, "queries"); this.pool= pool; this.queries = Collections.unmodifiableList(queries); }
public GraphiteOutputConfig(final String name, final boolean default_, final String host, final int port, final String prefix) { super(name, default_); checkArgumentNotNullNorEmpty(host, "host"); checkArgument(port > 0 && port < 65536, "port must be in range [1,65535]"); this.host = host; this.port = port; this.prefix = prefix; }
public SamplerConfig(final String name, final String pool, final int interval, final boolean ignored, final boolean disabled, final Map<String, Object> globalVariables, final List<ValueTransformerConfig> valueTransformers) { super(name); checkArgumentNotNull(pool, "pool"); checkArgument(interval > 0, "interval must be greater than 0 seconds"); checkArgumentNotNull(globalVariables, "globalVariables"); checkArgumentNotNull(valueTransformers, "valueTransformers"); this.pool = pool; this.interval = interval; this.ignored = ignored; this.disabled = disabled; this.globalVariables = unmodifiableMap(globalVariables); this.valueTransformers = unmodifiableList(valueTransformers); }
public SimpleMetricName(final String name, final String description) { checkArgumentNotNullNorEmpty(name, "name"); this.name = name; this.description = description; }
protected RowPathSegment(final List<Object> columns) { checkArgumentNotNull(columns, "columns"); this.columns = columns; }
public JmxMetricName(final ObjectName objectName, final String attributeName, final PropertyPath propertyPath, final String description) { checkArgumentNotNull(objectName, "objectName"); checkArgumentNotNull(propertyPath, "propertyPath"); checkArgumentNotNullNorEmpty(attributeName, "attributeName"); this.objectName = objectName; this.attributeName = attributeName; this.propertyPath = propertyPath; this.description = description; this.name = generateName(); }
public JdbcConnectionPoolConfig(final int minSize, final int maxSize, final String name, final boolean ignored, final String url, final String driver, final String username, final String password, final Map<String, String> options, final int loginTimeout) { super(name, ignored); checkArgumentNotNullNorEmpty(url, "url"); checkArgument(maxSize >= minSize, "Max size must be greater than min size"); this.minSize = minSize; this.maxSize = maxSize; this.url = url; this.driver = driver; this.username = username; this.password = password; this.options = Collections.unmodifiableMap(options); this.loginTimeout = loginTimeout; }
public ConfigurationLoader(final Collection<Class<?>> xbeanClasses, List<XBeanPostProcessor> xbeanPostProcessors) { checkArgumentNotNullNorEmpty(xbeanClasses, "xbeanClasses"); this.xbeanClasses = xbeanClasses; this.xbeanPostProcessors = xbeanPostProcessors; }
public RegExpSelectorConfig(final String namePattern, final String descriptionPattern, final String keyExpression) { checkArgumentNotNull(keyExpression, "keyExpression"); this.namePattern = namePattern; this.descriptionPattern = descriptionPattern; this.keyExpression = keyExpression; }