Codota Logo
ClusterValue
Code IndexAdd Codota to your IDE (free)

How to use
ClusterValue
in
com.homeaway.digitalplatform.streamregistry

Best Java code snippets using com.homeaway.digitalplatform.streamregistry.ClusterValue (Showing top 4 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
LocalDateTime l =
  • Codota Iconnew LocalDateTime()
  • Codota IconLocalDateTime.now()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseLocalDateTime(text)
  • Smart code suggestions by Codota
}
origin: homeaway/stream-registry

  @Override
  public Optional<ClusterValue> getClusterByKey(ClusterKey clusterKey) {
    ClusterValue clusterValue;
    Validate.validState(store != null, "Infra Manager should be configured");

    try {
      log.debug("Approximate Num. of Entries in Infra Table-{}", store.approximateNumEntries());
      clusterValue = store.get(clusterKey);
    } catch (Exception e) {
      throw new IllegalStateException("Error while retrieving the cluster Value using cluster key:" + clusterKey, e);
    }

    if (clusterValue == null) {
      log.error("Cluster Not Found, key: {}", clusterKey);
    } else {
      log.info("Cluster Name - {}", clusterValue.getClusterProperties());
    }

    return Optional.ofNullable(clusterValue);
  }
}
origin: homeaway/stream-registry

 @Override
 @SuppressWarnings("unchecked")
 public ClusterValue build() {
  try {
   ClusterValue record = new ClusterValue();
   record.clusterProperties = fieldSetFlags()[0] ? this.clusterProperties : (java.util.Map<java.lang.String,java.lang.String>) defaultValue(fields()[0]);
   return record;
  } catch (java.lang.Exception e) {
   throw new org.apache.avro.AvroRuntimeException(e);
  }
 }
}
origin: homeaway/stream-registry

private void upsertTopics(Stream stream, String vpc, boolean isNewStream) {
  ClusterValue clusterValue = getClusterDetails(vpc, env, stream.getTags().getHint(), "producer");
  Properties topicConfig = new Properties();
  if (stream.getTopicConfig() != null) {
    topicConfig.putAll(stream.getTopicConfig());
  }
  String bootstrapServer = clusterValue.getClusterProperties().get(ProducerConfig.BOOTSTRAP_SERVERS_CONFIG);
  String zkConnect = clusterValue.getClusterProperties().get(KafkaProducerConfig.ZOOKEEPER_QUORUM);
  topicConfig.put(ProducerConfig.BOOTSTRAP_SERVERS_CONFIG, bootstrapServer);
  topicConfig.put(KafkaProducerConfig.ZOOKEEPER_QUORUM, zkConnect);
  kafkaManager.upsertTopics(Collections.singleton(stream.getName()), stream.getPartitions(), stream.getReplicationFactor(), topicConfig, isNewStream);
  log.info("Topic {} created/updated at {}", stream.getName(), bootstrapServer);
}
origin: homeaway/stream-registry

Optional<String> bootstrapServers = Optional.ofNullable(clusterValue.getClusterProperties().get(ProducerConfig.BOOTSTRAP_SERVERS_CONFIG));
Optional<String> schemaRegistryURL = Optional.ofNullable(clusterValue.getClusterProperties().get(AbstractKafkaAvroSerDeConfig.SCHEMA_REGISTRY_URL_CONFIG));
Optional<String> clusterName = Optional.ofNullable(clusterValue.getClusterProperties().get(CLUSTER_NAME));
com.homeaway.digitalplatform.streamregistryClusterValue

Most used methods

  • getClusterProperties
    Gets the value of the 'clusterProperties' field.
  • <init>
    All-args constructor.

Popular in Java

  • Making http requests using okhttp
  • addToBackStack (FragmentTransaction)
  • orElseThrow (Optional)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • TimerTask (java.util)
    A task that can be scheduled for one-time or repeated execution by a Timer.
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Collectors (java.util.stream)
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