Tabnine Logo
EventGrounding.<init>
Code IndexAdd Tabnine to your IDE (free)

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

Best Java code snippets using org.streampipes.model.grounding.EventGrounding.<init> (Showing top 18 results out of 315)

origin: streampipes/streampipes-ce

protected AbstractProcessingElementBuilder(String id, String label, String description, T element) {
 super(id, label, description, element);
 this.streamRequirements = new ArrayList<>();
 this.stream1Properties = new ArrayList<>();
 this.stream2Properties = new ArrayList<>();
 this.supportedGrounding = new EventGrounding();
}
origin: streampipes/streampipes-ce

protected DataSetBuilder(String id, String label, String description) {
 super(id, label, description, new SpDataSet());
 this.eventProperties = new ArrayList<>();
 this.supportedGrounding = new EventGrounding();
}
origin: streampipes/streampipes-ce

protected DataStreamBuilder(String id, String label, String description) {
  super(id, label, description, new SpDataStream());
  this.eventProperties = new ArrayList<>();
  this.eventGrounding = new EventGrounding();
}
origin: org.streampipes/streampipes-pipeline-management

public EventGrounding getEventGrounding() {
  EventGrounding grounding = new EventGrounding();
  grounding.setTransportFormats(Arrays.asList(getFormat()));
  grounding.setTransportProtocols(Arrays.asList(getProtocol()));
  return grounding;
}
origin: streampipes/streampipes-ce

public EventGrounding getEventGrounding() {
  EventGrounding grounding = new EventGrounding();
  grounding.setTransportFormats(Arrays.asList(getFormat()));
  grounding.setTransportProtocols(Arrays.asList(getProtocol()));
  return grounding;
}
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: streampipes/streampipes-ce

public SpDataSet(SpDataSet other) {
 super(other);
 this.datasetInvocationId = other.getDatasetInvocationId();
 if (other.getSupportedGrounding() != null) this.supportedGrounding = new EventGrounding(other.getSupportedGrounding());
}
origin: streampipes/streampipes-ce

 public static EventGrounding makeDummyGrounding() {
  EventGrounding grounding = new EventGrounding();
  grounding.setTransportFormats(Arrays.asList(new TransportFormat()));
  grounding.setTransportProtocol(ProtocolGenerator.makeDummyProtocol());

  return grounding;
 }
}
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 EventGrounding getSupportedGrounding()
  {
    EventGrounding grounding = new EventGrounding();
    grounding.setTransportFormats(standardFormat());
    grounding.setTransportProtocols(standardProtocols());
    return grounding;
  }
}
origin: streampipes/streampipes-ce

public SpDataStream(SpDataStream other) {
  super(other);
  if (other.getEventGrounding() != null) this.eventGrounding = new EventGrounding(other.getEventGrounding());
  if (other.getEventSchema() != null) this.eventSchema = new EventSchema(other.getEventSchema());
  if (other.getHasEventStreamQualities() != null) this.hasEventStreamQualities = other.getHasEventStreamQualities().stream().map(EventStreamQualityDefinition::new).collect(Collectors.toCollection(ArrayList::new));
  if (other.getRequiresEventStreamQualities() != null) this.requiresEventStreamQualities = other.getRequiresEventStreamQualities().stream().map(EventStreamQualityRequirement::new).collect(Collectors.toCollection(ArrayList::new));
  if (other.getMeasurementCapability() != null) this.measurementCapability =  new Cloner().mc(other.getMeasurementCapability());
  if (other.getMeasurementObject() != null) this.measurementObject = new Cloner().mo(other.getMeasurementObject());
}
origin: org.streampipes/streampipes-pipeline-management

 public DataSetModificationMessage selectGrounding() {
  // TODO grounding negotiation
  TransportProtocol protocol = new KafkaTransportProtocol(BackendConfig.INSTANCE.getKafkaHost(),
      BackendConfig.INSTANCE.getKafkaPort(),
      TopicGenerator.generateRandomTopic(),
      BackendConfig.INSTANCE.getZookeeperHost(),
      BackendConfig.INSTANCE.getZookeeperPort());
  TransportFormat format = spDataSet.getSupportedGrounding().getTransportFormats().get(0);

  EventGrounding outputGrounding = new EventGrounding();
  outputGrounding.setTransportProtocol(protocol);
  outputGrounding.setTransportFormats(Arrays.asList(format));

  return new DataSetModificationMessage(outputGrounding,RandomStringUtils.randomAlphanumeric(10));
 }
}
origin: streampipes/streampipes-ce

 public DataSetModificationMessage selectGrounding() {
  // TODO grounding negotiation
  TransportProtocol protocol = new KafkaTransportProtocol(BackendConfig.INSTANCE.getKafkaHost(),
      BackendConfig.INSTANCE.getKafkaPort(),
      TopicGenerator.generateRandomTopic(),
      BackendConfig.INSTANCE.getZookeeperHost(),
      BackendConfig.INSTANCE.getZookeeperPort());
  TransportFormat format = spDataSet.getSupportedGrounding().getTransportFormats().get(0);

  EventGrounding outputGrounding = new EventGrounding();
  outputGrounding.setTransportProtocol(protocol);
  outputGrounding.setTransportFormats(Arrays.asList(format));

  return new DataSetModificationMessage(outputGrounding,RandomStringUtils.randomAlphanumeric(10));
 }
}
origin: streampipes/streampipes-ce

public AdapterDescription(AdapterDescription other) {
  super(other);
  this.adapterId = other.getAdapterId();
  this.userName = other.getUserName();
  this.rules = other.getRules();
  this.adapterType = other.getAdapterType();
  this.icon = other.getIcon();
  if (other.getEventGrounding() != null) this.eventGrounding = new EventGrounding(other.getEventGrounding());
}
origin: streampipes/streampipes-ce

public ConsumableStreamPipesEntity(ConsumableStreamPipesEntity other) {
  super(other);
  if (other.getSpDataStreams() != null) this.spDataStreams = new Cloner().streams(other.getSpDataStreams());
  this.staticProperties = new Cloner().staticProperties(other.getStaticProperties());
  if (other.getSupportedGrounding() != null) this.supportedGrounding = new EventGrounding(other.getSupportedGrounding());	
}
origin: streampipes/streampipes-ce

if (adapterDescription instanceof AdapterSetDescription) {
  ds = ((AdapterSetDescription) adapterDescription).getDataSet();
  EventGrounding eg = new EventGrounding();
  eg.setTransportProtocol(SupportedProtocols.kafka());
  eg.setTransportFormats(Arrays.asList(SupportedFormats.jsonFormat()));
  EventGrounding eg = new EventGrounding();
  eg.setTransportFormats(Arrays.asList(Formats.jsonFormat()));
  eg.setTransportProtocol(tp);
origin: streampipes/streampipes-ce

public InvocableStreamPipesEntity(InvocableStreamPipesEntity other)
{
  super(other);
  this.belongsTo = other.getBelongsTo();
  this.correspondingPipeline = other.getCorrespondingPipeline();
  this.inputStreams = new Cloner().streams(other.getInputStreams());
  this.configured = other.isConfigured();
  if (other.getStreamRequirements() != null) this.streamRequirements = new Cloner().streams(other.getStreamRequirements());
  if (other.getStaticProperties() != null) this.staticProperties = new Cloner().staticProperties(other.getStaticProperties());
  this.DOM = other.getDOM();
  if (other.getSupportedGrounding() != null) this.supportedGrounding = new EventGrounding(other.getSupportedGrounding());
}

org.streampipes.model.groundingEventGrounding<init>

Popular methods of EventGrounding

  • getTransportProtocol
  • setTransportProtocol
  • setTransportFormats
  • getTransportFormats
  • setTransportProtocols
  • getTransportProtocols

Popular in Java

  • Making http requests using okhttp
  • setScale (BigDecimal)
  • getSystemService (Context)
  • getContentResolver (Context)
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • Permission (java.security)
    Legacy security code; do not use.
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • JCheckBox (javax.swing)
  • JFileChooser (javax.swing)
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now