Tabnine Logo
Preconditions.checkArgumentNotNullNorEmpty
Code IndexAdd Tabnine to your IDE (free)

How to use
checkArgumentNotNullNorEmpty
method
in
org.metricssampler.util.Preconditions

Best Java code snippets using org.metricssampler.util.Preconditions.checkArgumentNotNullNorEmpty (Showing top 19 results out of 315)

origin: com.github.dimovelev/metrics-sampler-core

public SimpleMetricName(final String name, final String description) {
  checkArgumentNotNullNorEmpty(name, "name");
  this.name = name;
  this.description = description;
}
origin: dimovelev/metrics-sampler

public SimpleMetricName(final String name, final String description) {
  checkArgumentNotNullNorEmpty(name, "name");
  this.name = name;
  this.description = description;
}
origin: com.github.dimovelev/metrics-sampler-core

public ConfigurationLoader(final Collection<Class<?>> xbeanClasses, List<XBeanPostProcessor> xbeanPostProcessors) {
  checkArgumentNotNullNorEmpty(xbeanClasses, "xbeanClasses");
  this.xbeanClasses = xbeanClasses;
  this.xbeanPostProcessors = xbeanPostProcessors;
}
origin: dimovelev/metrics-sampler

public ConfigurationLoader(final Collection<Class<?>> xbeanClasses, List<XBeanPostProcessor> xbeanPostProcessors) {
  checkArgumentNotNullNorEmpty(xbeanClasses, "xbeanClasses");
  this.xbeanClasses = xbeanClasses;
  this.xbeanPostProcessors = xbeanPostProcessors;
}
origin: com.github.dimovelev/metrics-sampler-core

public NamedConfig(final String name) {
  checkArgumentNotNullNorEmpty(name, "name");
  this.name = name;
}
origin: dimovelev/metrics-sampler

public NamedConfig(final String name) {
  checkArgumentNotNullNorEmpty(name, "name");
  this.name = name;
}
origin: com.github.dimovelev/metrics-sampler-extension-jdbc

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);
}
origin: com.github.dimovelev/metrics-sampler-extension-graphite

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;
}
origin: dimovelev/metrics-sampler

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);
}
origin: dimovelev/metrics-sampler

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;
}
origin: com.github.dimovelev/metrics-sampler-extension-jdbc

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;
}
origin: dimovelev/metrics-sampler

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;
}
origin: com.github.dimovelev/metrics-sampler-extension-oracle-nosql

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");
  }
}
origin: com.github.dimovelev/metrics-sampler-core

checkArgumentNotNullNorEmpty(prefix, "prefix");
if (host != null) {
  variables.put(prefix + ".host", host);
origin: dimovelev/metrics-sampler

checkArgumentNotNullNorEmpty(prefix, "prefix");
if (host != null) {
  variables.put(prefix + ".host", host);
origin: com.github.dimovelev/metrics-sampler-core

protected Configuration load(final String filename) {
  checkArgumentNotNullNorEmpty(filename, "filename");
  final File file = new File(filename);
  final XStream xstream = createXStream();
  try {
    final ConfigurationXBean result = loadFile(file, xstream);
    applyPostProcessing(result);
    return result.toConfig();
  } catch (final XStreamException | IOException e) {
    throw new ConfigurationException("Failed to load configuration from \"" + file.getAbsolutePath() + "\"", e);
  }
}
origin: com.github.dimovelev/metrics-sampler-extension-jmx

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();
}
origin: dimovelev/metrics-sampler

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();
}
origin: dimovelev/metrics-sampler

protected Configuration load(final String filename) {
  checkArgumentNotNullNorEmpty(filename, "filename");
  final File file = new File(filename);
  final XStream xstream = createXStream();
  try {
    final ConfigurationXBean result = loadFile(file, xstream);
    applyPostProcessing(result);
    return result.toConfig();
  } catch (final XStreamException | IOException e) {
    throw new ConfigurationException("Failed to load configuration from \"" + file.getAbsolutePath() + "\"", e);
  }
}
org.metricssampler.utilPreconditionscheckArgumentNotNullNorEmpty

Popular methods of Preconditions

  • checkArgumentNotNull
  • checkArgument
  • checkArgumentPresent
  • checkStateNotNull

Popular in Java

  • Making http post requests using okhttp
  • getSystemService (Context)
  • getResourceAsStream (ClassLoader)
  • requestLocationUpdates (LocationManager)
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Option (scala)
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now