Tabnine Logo
EnrichmentConfigurations.updateGlobalConfig
Code IndexAdd Tabnine to your IDE (free)

How to use
updateGlobalConfig
method
in
org.apache.metron.common.configuration.EnrichmentConfigurations

Best Java code snippets using org.apache.metron.common.configuration.EnrichmentConfigurations.updateGlobalConfig (Showing top 5 results out of 315)

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

File asnHdfsFile = new File(new File(baseDir), "GeoLite2-ASN.tar.gz");
globalConfig.put(GeoLiteAsnDatabase.ASN_HDFS_FILE, asnHdfsFile.getAbsolutePath());
threatIntelJoinBolt.getConfigurations().updateGlobalConfig(globalConfig);
threatIntelJoinBolt.withMaxCacheSize(100);
threatIntelJoinBolt.withMaxTimeRetain(10000);
origin: apache/metron

File geoHdfsFile = new File(new File(baseDir), "GeoLite2-City.mmdb.gz");
globalConfig.put(GeoLiteCityDatabase.GEO_HDFS_FILE, geoHdfsFile.getAbsolutePath());
genericEnrichmentBolt.getConfigurations().updateGlobalConfig(globalConfig);
origin: apache/metron

sampleConfigurations.updateGlobalConfig(ConfigurationsUtils.readGlobalConfigFromFile(TestConstants.SAMPLE_CONFIG_PATH));
Map<String, byte[]> sensorEnrichmentConfigs = ConfigurationsUtils.readSensorEnrichmentConfigsFromFile(TestConstants.ENRICHMENTS_CONFIGS_PATH);
for (String sensorType : sensorEnrichmentConfigs.keySet()) {
org.apache.metron.common.configurationEnrichmentConfigurationsupdateGlobalConfig

Popular methods of EnrichmentConfigurations

  • getGlobalConfig
  • getSensorEnrichmentConfig
  • <init>
  • updateSensorEnrichmentConfig
  • 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

  • Running tasks concurrently on multiple threads
  • notifyDataSetChanged (ArrayAdapter)
  • getContentResolver (Context)
  • getResourceAsStream (ClassLoader)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Table (org.hibernate.mapping)
    A relational table
  • From CI to AI: The AI layer in your organization
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