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

How to use
SimpleTopicDefinition
in
org.streampipes.model.grounding

Best Java code snippets using org.streampipes.model.grounding.SimpleTopicDefinition (Showing top 12 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: streampipes/streampipes-ce

public JmsTransportProtocol(String uri, int port, String topicName)
{
  super(uri, new SimpleTopicDefinition(topicName));
  this.port = port;
}

origin: streampipes/streampipes-ce

public KafkaTransportProtocol(String kafkaHost, int kafkaPort, String topic, String zookeeperHost, int zookeeperPort)
{
  super(kafkaHost, new SimpleTopicDefinition(topic));
  this.zookeeperHost = zookeeperHost;
  this.zookeeperPort = zookeeperPort;
  this.kafkaPort = kafkaPort;
}

origin: streampipes/streampipes-ce

public TopicDefinition topicDefinition(TopicDefinition topicDefinition) {
 if (topicDefinition instanceof SimpleTopicDefinition) {
  return new SimpleTopicDefinition((SimpleTopicDefinition) topicDefinition);
 } else {
  return new WildcardTopicDefinition((WildcardTopicDefinition) topicDefinition);
 }
}
origin: org.streampipes/streampipes-messaging-jms

public ActiveMQPublisher(String url, String topic) {
  JmsTransportProtocol protocol = new JmsTransportProtocol();
  protocol.setBrokerHostname(url.substring(0, url.lastIndexOf(":")));
  protocol.setPort(Integer.parseInt(url.substring(url.lastIndexOf(":")+1, url.length())));
  protocol.setTopicDefinition(new SimpleTopicDefinition(topic));
  try {
    connect(protocol);
  } catch (SpRuntimeException e) {
    e.printStackTrace();
  }
}
origin: streampipes/streampipes-ce

public ActiveMQPublisher(String url, String topic) {
  JmsTransportProtocol protocol = new JmsTransportProtocol();
  protocol.setBrokerHostname(url.substring(0, url.lastIndexOf(":")));
  protocol.setPort(Integer.parseInt(url.substring(url.lastIndexOf(":")+1, url.length())));
  protocol.setTopicDefinition(new SimpleTopicDefinition(topic));
  try {
    connect(protocol);
  } catch (SpRuntimeException e) {
    e.printStackTrace();
  }
}
origin: streampipes/streampipes-ce

  public AdapterDescription() {
    super();
    this.rules = new ArrayList<>();
    this.eventGrounding = new EventGrounding();
    this.config = new ArrayList<>();

    // TODO move to another place
    TransportProtocol tp = new KafkaTransportProtocol();
    tp.setTopicDefinition(new SimpleTopicDefinition("bb"));
    this.eventGrounding.setTransportProtocol(tp);
//        this.eventGrounding.setTransportFormats(Arrays.asList(Formats.jsonFormat()));


  }

origin: org.streampipes/streampipes-messaging-kafka

public SpKafkaConsumer(String kafkaUrl, String topic, InternalEventProcessor<byte[]> callback) {
 KafkaTransportProtocol protocol = new KafkaTransportProtocol();
 protocol.setKafkaPort(Integer.parseInt(kafkaUrl.split(":")[1]));
 protocol.setBrokerHostname(kafkaUrl.split(":")[0]);
 protocol.setTopicDefinition(new SimpleTopicDefinition(topic));
 try {
  this.connect(protocol, callback);
 } catch (SpRuntimeException e) {
  e.printStackTrace();
 }
}
origin: streampipes/streampipes-ce

public SpKafkaConsumer(String kafkaUrl, String topic, InternalEventProcessor<byte[]> callback) {
 KafkaTransportProtocol protocol = new KafkaTransportProtocol();
 protocol.setKafkaPort(Integer.parseInt(kafkaUrl.split(":")[1]));
 protocol.setBrokerHostname(kafkaUrl.split(":")[0]);
 protocol.setTopicDefinition(new SimpleTopicDefinition(topic));
 try {
  this.connect(protocol, callback);
 } catch (SpRuntimeException e) {
  e.printStackTrace();
 }
}
origin: org.streampipes/streampipes-connect

  public static EventGrounding createEventGrounding(String kafkaHost, int kafkaPort, EventSchema eventSchema) {
    EventGrounding eventGrounding = new EventGrounding();
    KafkaTransportProtocol transportProtocol = new KafkaTransportProtocol();
    transportProtocol.setBrokerHostname(kafkaHost);
    transportProtocol.setKafkaPort(kafkaPort);

    String topic = "org.streampipes.connect." + UUID.randomUUID();
    System.out.println("Topic: " + topic);
    TopicDefinition topicDefinition = new SimpleTopicDefinition(topic);
    transportProtocol.setTopicDefinition(topicDefinition);

    eventGrounding.setTransportProtocol(transportProtocol);


    return eventGrounding;
  }
}
origin: streampipes/streampipes-ce

  public static EventGrounding createEventGrounding(String kafkaHost, int kafkaPort, EventSchema eventSchema) {
    EventGrounding eventGrounding = new EventGrounding();
    KafkaTransportProtocol transportProtocol = new KafkaTransportProtocol();
    transportProtocol.setBrokerHostname(kafkaHost);
    transportProtocol.setKafkaPort(kafkaPort);

    String topic = "org.streampipes.connect." + UUID.randomUUID();
    System.out.println("Topic: " + topic);
    TopicDefinition topicDefinition = new SimpleTopicDefinition(topic);
    transportProtocol.setTopicDefinition(topicDefinition);

    eventGrounding.setTransportProtocol(transportProtocol);


    return eventGrounding;
  }
}
origin: streampipes/streampipes-ce

 public static TransportProtocol makeDummyProtocol() {
  KafkaTransportProtocol protocol = new KafkaTransportProtocol();
  protocol.setKafkaPort(0);
  protocol.setBrokerHostname("kafka");
  protocol.setTopicDefinition(new SimpleTopicDefinition("test-topic"));

  return protocol;
 }
}
origin: streampipes/streampipes-ce

private JmsTransportProtocol getConsumerSettings() {
  JmsTransportProtocol protocol = new JmsTransportProtocol();
  protocol.setPort(BackendConfig.INSTANCE.getJmsPort());
  protocol.setBrokerHostname("tcp://" +BackendConfig.INSTANCE.getJmsHost());
  protocol.setTopicDefinition(new SimpleTopicDefinition(topic));
  return protocol;
}
org.streampipes.model.groundingSimpleTopicDefinition

Most used methods

  • <init>

Popular in Java

  • Finding current android device location
  • setRequestProperty (URLConnection)
  • getSharedPreferences (Context)
  • runOnUiThread (Activity)
  • FileInputStream (java.io)
    A FileInputStream obtains input bytes from a file in a file system. What files are available depends
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • StringTokenizer (java.util)
    The string tokenizer class allows an application to break a string into tokens. The tokenization met
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
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