Codota Logo
ZkPathsConfig.getInternalDiscoveryPath
Code IndexAdd Codota to your IDE (free)

How to use
getInternalDiscoveryPath
method
in
org.apache.druid.server.initialization.ZkPathsConfig

Best Java code snippets using org.apache.druid.server.initialization.ZkPathsConfig.getInternalDiscoveryPath (Showing top 6 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
OutputStreamWriter o =
  • Codota IconOutputStream out;new OutputStreamWriter(out)
  • Codota IconOutputStream out;String charsetName;new OutputStreamWriter(out, charsetName)
  • Codota IconHttpURLConnection connection;new OutputStreamWriter(connection.getOutputStream())
  • Smart code suggestions by Codota
}
origin: apache/incubator-druid

@Override
public DruidNodeDiscovery getForNodeType(NodeType nodeType)
{
 Preconditions.checkState(lifecycleLock.awaitStarted(1, TimeUnit.MILLISECONDS));
 return nodeTypeWatchers.computeIfAbsent(
   nodeType,
   nType -> {
    log.info("Creating NodeTypeWatcher for nodeType [%s].", nType);
    NodeTypeWatcher nodeTypeWatcher = new NodeTypeWatcher(
      listenerExecutor,
      curatorFramework,
      config.getInternalDiscoveryPath(),
      jsonMapper,
      nType
    );
    nodeTypeWatcher.start();
    log.info("Created NodeTypeWatcher for nodeType [%s].", nType);
    return nodeTypeWatcher;
   }
 );
}
origin: apache/incubator-druid

@Override
public void announce(DiscoveryDruidNode discoveryDruidNode)
{
 try {
  log.info("Announcing [%s].", discoveryDruidNode);
  String path = ZKPaths.makePath(
    config.getInternalDiscoveryPath(),
    discoveryDruidNode.getNodeType().toString(),
    discoveryDruidNode.getDruidNode().getHostAndPortToUse()
  );
  announcer.announce(path, jsonMapper.writeValueAsBytes(discoveryDruidNode));
  log.info("Announced [%s].", discoveryDruidNode);
 }
 catch (JsonProcessingException e) {
  throw Throwables.propagate(e);
 }
}
origin: apache/incubator-druid

 @Override
 public void unannounce(DiscoveryDruidNode discoveryDruidNode)
 {
  log.info("Unannouncing [%s].", discoveryDruidNode);

  String path = ZKPaths.makePath(
    config.getInternalDiscoveryPath(),
    discoveryDruidNode.getNodeType().toString(),
    discoveryDruidNode.getDruidNode().getHostAndPortToUse()
  );
  announcer.unannounce(path);

  log.info("Unannounced [%s].", discoveryDruidNode);
 }
}
origin: org.apache.druid/druid-server

@Override
public DruidNodeDiscovery getForNodeType(String nodeType)
{
 Preconditions.checkState(lifecycleLock.awaitStarted(1, TimeUnit.MILLISECONDS));
 return nodeTypeWatchers.compute(
   nodeType,
   (k, v) -> {
    if (v != null) {
     return v;
    }
    log.info("Creating NodeTypeWatcher for nodeType [%s].", nodeType);
    NodeTypeWatcher nodeTypeWatcher = new NodeTypeWatcher(
      listenerExecutor,
      curatorFramework,
      config.getInternalDiscoveryPath(),
      jsonMapper,
      nodeType
    );
    nodeTypeWatcher.start();
    log.info("Created NodeTypeWatcher for nodeType [%s].", nodeType);
    return nodeTypeWatcher;
   }
 );
}
origin: org.apache.druid/druid-server

@Override
public void announce(DiscoveryDruidNode discoveryDruidNode)
{
 try {
  log.info("Announcing [%s].", discoveryDruidNode);
  announcer.announce(
    ZKPaths.makePath(
      config.getInternalDiscoveryPath(),
      discoveryDruidNode.getNodeType(),
      discoveryDruidNode.getDruidNode().getHostAndPortToUse()
    ),
    jsonMapper.writeValueAsBytes(discoveryDruidNode)
  );
  log.info("Announced [%s].", discoveryDruidNode);
 }
 catch (JsonProcessingException e) {
  throw Throwables.propagate(e);
 }
}
origin: org.apache.druid/druid-server

 @Override
 public void unannounce(DiscoveryDruidNode discoveryDruidNode)
 {
  log.info("Unannouncing [%s].", discoveryDruidNode);

  announcer.unannounce(
    ZKPaths.makePath(
      config.getInternalDiscoveryPath(),
      discoveryDruidNode.getNodeType(),
      discoveryDruidNode.getDruidNode().getHostAndPortToUse()
    )
  );

  log.info("Unannounced [%s].", discoveryDruidNode);
 }
}
org.apache.druid.server.initializationZkPathsConfiggetInternalDiscoveryPath

Popular methods of ZkPathsConfig

  • <init>
  • defaultPath
  • getAnnouncementsPath
  • getLiveSegmentsPath
  • getLoadQueuePath
  • equals
  • getBase
  • getConnectorPath
  • getCoordinatorPath
  • getOverlordPath
  • getPropertiesPath
  • getServedSegmentsPath
  • getPropertiesPath,
  • getServedSegmentsPath,
  • hashCode

Popular in Java

  • Creating JSON documents from java classes using gson
  • getApplicationContext (Context)
  • getContentResolver (Context)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • JOptionPane (javax.swing)
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Option (scala)
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