Codota Logo
SimpleTopicDefinition.<init>
Code IndexAdd Codota to your IDE (free)

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

Best Java code snippets using org.streampipes.model.grounding.SimpleTopicDefinition.<init> (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<init>

Popular methods of SimpleTopicDefinition

    Popular in Java

    • Reactive rest calls using spring rest template
    • requestLocationUpdates (LocationManager)
    • getSupportFragmentManager (FragmentActivity)
      Return the FragmentManager for interacting with fragments associated with this activity.
    • notifyDataSetChanged (ArrayAdapter)
    • Color (java.awt)
      The Color class is used encapsulate colors in the default sRGB color space or colors in arbitrary co
    • Proxy (java.net)
      This class represents proxy server settings. A created instance of Proxy stores a type and an addres
    • Manifest (java.util.jar)
      The Manifest class is used to obtain attribute information for a JarFile and its entries.
    • SSLHandshakeException (javax.net.ssl)
      The exception that is thrown when a handshake could not be completed successfully.
    • JLabel (javax.swing)
    • 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