Codota Logo
EnrichmentConfigurations.<init>
Code IndexAdd Codota to your IDE (free)

How to use
org.apache.metron.common.configuration.EnrichmentConfigurations
constructor

Best Java code snippets using org.apache.metron.common.configuration.EnrichmentConfigurations.<init> (Showing top 9 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ArrayList a =
  • Codota Iconnew ArrayList<String>()
  • Codota Iconnew ArrayList()
  • Codota Iconnew ArrayList<Object>()
  • Smart code suggestions by Codota
}
origin: apache/metron

@Override
public EnrichmentConfigurations defaultConfigurations() {
 return new EnrichmentConfigurations();
}
origin: apache/metron

/**
 * Timeout for this writer.
 * @param sensorName n/a
 * @return timeout in ms
 */
@Override
public int getBatchTimeout(String sensorName) {
 return config.orElse(new EnrichmentConfigurations()).getBatchTimeout();
}
origin: apache/metron

@Override
public Map<String, Object> getGlobalConfig() {
 return config.orElse(new EnrichmentConfigurations()).getGlobalConfig();
}
origin: apache/metron

/**
 * Batch size for writing.
 * @param sensorName n/a
 * @return batch size in # messages
 */
@Override
public int getBatchSize(String sensorName) {
 return config.orElse(new EnrichmentConfigurations()).getBatchSize();
}
origin: apache/metron

@Override
public Map<String, Object> getSensorConfig(String sensorName) {
 return config.orElse(new EnrichmentConfigurations()).getSensorEnrichmentConfig(sensorName)
   .getConfiguration();
}
origin: apache/metron

public static EnrichmentConfigurations getSampleEnrichmentConfigs() throws IOException {
 EnrichmentConfigurations configurations = new EnrichmentConfigurations();
 configurations.updateGlobalConfig(ConfigurationsUtils.readGlobalConfigFromFile(TestConstants.SAMPLE_CONFIG_PATH));
 Map<String, byte[]> sensorEnrichmentConfigs = ConfigurationsUtils.readSensorEnrichmentConfigsFromFile(TestConstants.SAMPLE_CONFIG_PATH);
 for(String sensorType: sensorEnrichmentConfigs.keySet()) {
  configurations.updateSensorEnrichmentConfig(sensorType, sensorEnrichmentConfigs.get(sensorType));
 }
 return configurations;
}
origin: apache/metron

@Test
public void gets_batch_size_and_timeout_from_global_config() throws IOException {
 EnrichmentConfigurations configs = new EnrichmentConfigurations();
 configs.updateGlobalConfig(globalJson.getBytes());
 EnrichmentWriterConfiguration writerConfig = new EnrichmentWriterConfiguration(configs);
 assertThat("batch timeout should match global config setting",
   writerConfig.getBatchTimeout(null), equalTo(555));
 assertThat("list should have single batch timeout matching global config setting",
   writerConfig.getAllConfiguredTimeouts(), equalTo(asList(555)));
 assertThat("batch size should match global config setting", writerConfig.getBatchSize(null),
   equalTo(12345));
}
origin: apache/metron

@Test
public void strategies_build_writer_configs() {
 assertThat(PARSERS.createWriterConfig(writer, new ParserConfigurations()),
   instanceOf(ParserWriterConfiguration.class));
 assertThat(ENRICHMENT.createWriterConfig(writer, new EnrichmentConfigurations()),
   instanceOf(EnrichmentWriterConfiguration.class));
 assertThat(INDEXING.createWriterConfig(writer, new IndexingConfigurations()),
   instanceOf(IndexingWriterConfiguration.class));
 assertThat(PROFILER.createWriterConfig(writer, new ProfilerConfigurations()),
   instanceOf(ProfilerWriterConfiguration.class));
}
origin: apache/metron

@Test
public void test() throws Exception {
 EnrichmentConfigurations sampleConfigurations = new EnrichmentConfigurations();
 UnitTestHelper.setLog4jLevel(ConfiguredBolt.class, Level.FATAL);
 try {
org.apache.metron.common.configurationEnrichmentConfigurations<init>

Popular methods of EnrichmentConfigurations

  • getGlobalConfig
  • getSensorEnrichmentConfig
  • updateSensorEnrichmentConfig
  • updateGlobalConfig
  • delete
  • getAs
  • getBatchSize
    Pulled from global config. Note: enrichment writes out to 1 kafka topic, so it is not pulling this c
  • getBatchTimeout
    Pulled from global config Note: enrichment writes out to 1 kafka topic, so it is not pulling this co
  • getConfigurations
  • getKey
  • getTypes
  • getTypes

Popular in Java

  • Parsing JSON documents to java classes using gson
  • scheduleAtFixedRate (Timer)
  • compareTo (BigDecimal)
  • setContentView (Activity)
  • StringTokenizer (java.util)
    The string tokenizer class allows an application to break a string into tokens. The tokenization met
  • TreeSet (java.util)
    A NavigableSet implementation based on a TreeMap. The elements are ordered using their Comparable, o
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Runner (org.openjdk.jmh.runner)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now