public SimpleMetricName(final String name, final String description) { checkArgumentNotNullNorEmpty(name, "name"); this.name = name; this.description = description; }
public RegExpSelectorConfig(final String namePattern, final String descriptionPattern, final String keyExpression) { checkArgumentNotNull(keyExpression, "keyExpression"); this.namePattern = namePattern; this.descriptionPattern = descriptionPattern; this.keyExpression = keyExpression; }
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; }
@Override public Socket createSocket(final String host, final int port) throws IOException { return SocketUtils.createAndConnect(host, port, config); }
public static ApplicationInfo getInstance() { checkStateNotNull(instance, "instance"); return instance; }
public static boolean isNotEmptyNorNull(final String value) { return !isEmptyOrNull(value); }
public ConsoleMetricsWriter(final ConsoleOutputConfig config) { checkArgumentNotNull(config, "config"); this.config = config; }
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 SimpleMetricName(final String name, final String description) { checkArgumentNotNullNorEmpty(name, "name"); this.name = name; this.description = description; }
@Override public Socket createSocket(final String host, final int port) throws IOException { return SocketUtils.createAndConnect(host, port, config); }
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 ConfigurationLoader(final Collection<Class<?>> xbeanClasses, List<XBeanPostProcessor> xbeanPostProcessors) { checkArgumentNotNullNorEmpty(xbeanClasses, "xbeanClasses"); this.xbeanClasses = xbeanClasses; this.xbeanPostProcessors = xbeanPostProcessors; }
protected RowPathSegment(final List<Object> columns) { checkArgumentNotNull(columns, "columns"); this.columns = columns; }
public NamedConfig(final String name) { checkArgumentNotNullNorEmpty(name, "name"); this.name = name; }
public RegExpMetricsSelector(final RegExpSelectorConfig config) { checkArgumentNotNull(config, "config"); this.config = config; }
public ConfigurationLoader(final Collection<Class<?>> xbeanClasses, List<XBeanPostProcessor> xbeanPostProcessors) { checkArgumentNotNullNorEmpty(xbeanClasses, "xbeanClasses"); this.xbeanClasses = xbeanClasses; this.xbeanPostProcessors = xbeanPostProcessors; }
protected RowPathSegment(final List<Object> columns) { checkArgumentNotNull(columns, "columns"); this.columns = columns; }
public RegExpMetricsSelector(final RegExpSelectorConfig config) { checkArgumentNotNull(config, "config"); this.config = config; }