Tabnine Logo
EventGrounding.setTransportFormats
Code IndexAdd Tabnine to your IDE (free)

How to use
setTransportFormats
method
in
org.streampipes.model.grounding.EventGrounding

Best Java code snippets using org.streampipes.model.grounding.EventGrounding.setTransportFormats (Showing top 10 results out of 315)

origin: streampipes/streampipes-ce

/**
 * Assigns a new {@link org.streampipes.model.grounding.TransportFormat} to the stream definition.
 * @param format The transport format of the stream at runtime (e.g., JSON or Thrift). Use
 * {@link org.streampipes.sdk.helpers.Formats} to use some pre-defined formats (or create a new format as
 *               described in the developer guide).
 * @return this
 */
public DataStreamBuilder format(TransportFormat format) {
  this.eventGrounding.setTransportFormats(Collections.singletonList(format));
  return this;
}
origin: streampipes/streampipes-ce

public DataSetBuilder supportedFormat(TransportFormat format) {
 this.supportedGrounding.setTransportFormats(Collections.singletonList(format));
 return this;
}
origin: streampipes/streampipes-ce

/**
 * Assigns supported transport formats to the pipeline elements that can be handled at runtime (e.g.,
 * JSON or XMl).
 * @param formats A list of supported {@link org.streampipes.model.grounding.TransportFormat}s. Use
 *                {@link org.streampipes.sdk.helpers.SupportedFormats} to assign formats from some pre-defined
 *                 ones or create your own by following the developer guide.
 * @return this
 */
public BU supportedFormats(List<TransportFormat> formats) {
 this.supportedGrounding.setTransportFormats(formats);
 return me();
}
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 static EventGrounding makeDummyGrounding() {
  EventGrounding grounding = new EventGrounding();
  grounding.setTransportFormats(Arrays.asList(new TransportFormat()));
  grounding.setTransportProtocol(ProtocolGenerator.makeDummyProtocol());

  return grounding;
 }
}
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 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: 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

  EventGrounding eg = new EventGrounding();
  eg.setTransportProtocol(SupportedProtocols.kafka());
  eg.setTransportFormats(Arrays.asList(SupportedFormats.jsonFormat()));
  ((SpDataSet) ds).setSupportedGrounding(eg);
} else {
  eg.setTransportFormats(Arrays.asList(Formats.jsonFormat()));
  eg.setTransportProtocol(tp);
org.streampipes.model.groundingEventGroundingsetTransportFormats

Popular methods of EventGrounding

  • getTransportProtocol
  • <init>
  • setTransportProtocol
  • getTransportFormats
  • setTransportProtocols
  • getTransportProtocols

Popular in Java

  • Finding current android device location
  • putExtra (Intent)
  • scheduleAtFixedRate (Timer)
  • getSystemService (Context)
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • ImageIO (javax.imageio)
  • Best plugins for Eclipse
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