Codota Logo
SchemaRegistry.init
Code IndexAdd Codota to your IDE (free)

How to use
init
method
in
com.linkedin.camus.schemaregistry.SchemaRegistry

Best Java code snippets using com.linkedin.camus.schemaregistry.SchemaRegistry.init (Showing top 4 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
BufferedReader b =
  • Codota IconInputStream in;new BufferedReader(new InputStreamReader(in))
  • Codota IconReader in;new BufferedReader(in)
  • Codota IconFile file;new BufferedReader(new FileReader(file))
  • Smart code suggestions by Codota
}
origin: linkedin/camus

@Override
public void init(Properties props, String topicName) {
 super.init(props, topicName);
 try {
  SchemaRegistry<Schema> registry =
    (SchemaRegistry<Schema>) Class.forName(
      props.getProperty(KafkaAvroMessageEncoder.KAFKA_MESSAGE_CODER_SCHEMA_REGISTRY_CLASS)).newInstance();
  log.info("Prop " + KafkaAvroMessageEncoder.KAFKA_MESSAGE_CODER_SCHEMA_REGISTRY_CLASS + " is: "
       + props.getProperty(KafkaAvroMessageEncoder.KAFKA_MESSAGE_CODER_SCHEMA_REGISTRY_CLASS));
  log.info("Underlying schema registry for topic: " + topicName + " is: " + registry);
  registry.init(props);
  this.registry = new CachedSchemaRegistry<Schema>(registry, props);
  this.latestSchema = registry.getLatestSchemaByTopic(topicName).getSchema();
 } catch (Exception e) {
  throw new MessageDecoderException(e);
 }
 decoderFactory = DecoderFactory.get();
}
origin: linkedin/camus

public void init(Properties props, String topicName) {
 super.init(props, topicName);
 this.props = props;
 this.topicName = topicName;
 
 this.schemaIDField = props.getProperty(CAMUS_SCHEMA_ID_FIELD, DEFAULT_SCHEMA_ID_FIELD);
 try {
  SchemaRegistry<Schema> registry = (SchemaRegistry<Schema>) Class.forName(
    props.getProperty(KafkaAvroMessageEncoder.KAFKA_MESSAGE_CODER_SCHEMA_REGISTRY_CLASS)).newInstance();
  log.info("Prop " + KafkaAvroMessageEncoder.KAFKA_MESSAGE_CODER_SCHEMA_REGISTRY_CLASS + " is: "
    + props.getProperty(KafkaAvroMessageEncoder.KAFKA_MESSAGE_CODER_SCHEMA_REGISTRY_CLASS));
  log.info("Underlying schema registry for topic: " + topicName + " is: " + registry);
  registry.init(props);
  
  this.registry = new CachedSchemaRegistry<Schema>(registry, props);
  this.latestSchema = ((Schema) registry.getLatestSchemaByTopic(topicName).getSchema());
 } catch (Exception e) {
  throw new MessageDecoderException(e);
 }
 
 this.decoderFactory = DecoderFactory.get();
}

origin: confluentinc/camus

@Override
public void init(Properties props, String topicName) {
 super.init(props, topicName);
 try {
  client =
    (SchemaRegistry<Schema>) Class.forName(props.getProperty(KAFKA_MESSAGE_CODER_SCHEMA_REGISTRY_CLASS))
      .newInstance();
  client.init(props);
 } catch (Exception e) {
  throw new MessageEncoderException(e);
 }
}
origin: confluentinc/camus

 @Parameters
 public static Collection data() {
  Properties props = new Properties();
  props.put(AvroRestSchemaRegistry.ETL_SCHEMA_REGISTRY_URL, "http://localhost:8123/schema-repo/");
  SchemaRegistry<Schema> avroSchemaRegistry = new AvroRestSchemaRegistry();

  avroSchemaRegistry.init(props);
  Object[][] data = new Object[][] { { avroSchemaRegistry } };
  return Arrays.asList(data);
 }
}
com.linkedin.camus.schemaregistrySchemaRegistryinit

Javadoc

Initializer for SchemaRegistry;

Popular methods of SchemaRegistry

  • getSchemaByID
    Get a schema for a given topic/id pair, regardless of whether the schema was the last one written fo
  • getLatestSchemaByTopic
    Get the last schema that was written for a specific topic.
  • register
    Store a schema in the registry. If a schema already exists for this topic, the old schema will not b

Popular in Java

  • Finding current android device location
  • getSystemService (Context)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • findViewById (Activity)
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Join (org.hibernate.mapping)
  • Logger (org.slf4j)
    The main user interface to logging. It is expected that logging takes place through concrete impleme
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