Codota Logo
ConfigurationsUtils.writeToZookeeper
Code IndexAdd Codota to your IDE (free)

How to use
writeToZookeeper
method
in
org.apache.metron.common.configuration.ConfigurationsUtils

Best Java code snippets using org.apache.metron.common.configuration.ConfigurationsUtils.writeToZookeeper (Showing top 7 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ScheduledThreadPoolExecutor s =
  • Codota Iconnew ScheduledThreadPoolExecutor(corePoolSize)
  • Codota IconThreadFactory threadFactory;new ScheduledThreadPoolExecutor(corePoolSize, threadFactory)
  • Codota IconString str;new ScheduledThreadPoolExecutor(1, new ThreadFactoryBuilder().setNameFormat(str).build())
  • Smart code suggestions by Codota
}
origin: apache/metron

/**
 * Writes config to path in Zookeeper, /metron/topology/$CONFIG_TYPE/$CONFIG_NAME
 */
public static void writeConfigToZookeeper(String configPath, byte[] config, String zookeeperUrl)
  throws Exception {
 try (CuratorFramework client = getClient(zookeeperUrl)) {
  client.start();
  writeToZookeeper(configPath, config, client);
 }
}
origin: apache/metron

public static void writeConfigToZookeeper(ConfigurationType configType,Optional<String> configName,
  byte[] configData, CuratorFramework client) throws Exception {
 writeToZookeeper(getConfigZKPath(configType, configName), configData, client);
}
origin: apache/metron

public static void writeGlobalConfigToZookeeper(byte[] globalConfig, CuratorFramework client) throws Exception {
 GLOBAL.deserialize(new String(globalConfig));
 writeToZookeeper(GLOBAL.getZookeeperRoot(), globalConfig, client);
}
origin: apache/metron

public static void writeSensorEnrichmentConfigToZookeeper(String sensorType, byte[] configData, CuratorFramework client) throws Exception {
 ENRICHMENT.deserialize(new String(configData));
 writeToZookeeper(ENRICHMENT.getZookeeperRoot() + "/" + sensorType, configData, client);
}
origin: apache/metron

public static void writeSensorIndexingConfigToZookeeper(String sensorType, byte[] configData, CuratorFramework client) throws Exception {
 INDEXING.deserialize(new String(configData));
 writeToZookeeper(INDEXING.getZookeeperRoot() + "/" + sensorType, configData, client);
}
origin: apache/metron

public static void writeProfilerConfigToZookeeper(byte[] config, CuratorFramework client) throws Exception {
 PROFILER.deserialize(new String(config));
 writeToZookeeper(PROFILER.getZookeeperRoot(), config, client);
}
origin: apache/metron

public static void writeSensorParserConfigToZookeeper(String sensorType, byte[] configData, CuratorFramework client) throws Exception {
 SensorParserConfig c = (SensorParserConfig) PARSER.deserialize(new String(configData));
 c.init();
 writeToZookeeper(PARSER.getZookeeperRoot() + "/" + sensorType, configData, client);
}
org.apache.metron.common.configurationConfigurationsUtilswriteToZookeeper

Popular methods of ConfigurationsUtils

  • getClient
  • writeGlobalConfigToZookeeper
  • writeSensorParserConfigToZookeeper
  • writeSensorEnrichmentConfigToZookeeper
  • writeSensorIndexingConfigToZookeeper
  • readGlobalConfigBytesFromZookeeper
  • readGlobalConfigFromFile
  • readSensorEnrichmentConfigsFromFile
  • readSensorParserConfigsFromFile
  • setupStellarStatically
  • writeProfilerConfigToZookeeper
  • applyConfigPatchToZookeeper
    Reads Json data for the specified config type from zookeeper, applies the patch from patchData, and
  • writeProfilerConfigToZookeeper,
  • applyConfigPatchToZookeeper,
  • getFieldName,
  • readConfigBytesFromZookeeper,
  • readSensorEnrichmentConfigBytesFromZookeeper,
  • readSensorIndexingConfigBytesFromZookeeper,
  • readSensorIndexingConfigsFromFile,
  • readSensorParserConfigBytesFromZookeeper,
  • readSensorParserConfigFromZookeeper,
  • updateParserConfigsFromZookeeper

Popular in Java

  • Reactive rest calls using spring rest template
  • getContentResolver (Context)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • getExternalFilesDir (Context)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • ImageIO (javax.imageio)
  • JFileChooser (javax.swing)
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