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

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

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

origin: org.streampipes/streampipes-wrapper-distributed

protected TransportProtocol protocol(SpDataStream stream) {
 return stream
     .getEventGrounding()
     .getTransportProtocol();
}
origin: streampipes/streampipes-ce

protected TransportProtocol protocol(SpDataStream stream) {
 return stream
     .getEventGrounding()
     .getTransportProtocol();
}
origin: streampipes/streampipes-ce

public static String extractBroker(AdapterDescription adapterDescription) {
  EventGrounding eventGrounding = getEventGrounding(adapterDescription);
  String host = eventGrounding.getTransportProtocol().getBrokerHostname();
  int port = ((KafkaTransportProtocol) eventGrounding.getTransportProtocol()).getKafkaPort();
  return host + ":" + port;
}
origin: org.streampipes/streampipes-connect

public static String extractBroker(AdapterDescription adapterDescription) {
  String host = adapterDescription.getEventGrounding().getTransportProtocol().getBrokerHostname();
  int port = ((KafkaTransportProtocol) adapterDescription.getEventGrounding().getTransportProtocol()).getKafkaPort();
  return host + ":" + port;
}
origin: streampipes/streampipes-ce

public String getBrokerHostname() {
 if (getEventGrounding() == null || getEventGrounding().getTransportProtocol() == null ||
     getEventGrounding().getTransportProtocol().getBrokerHostname() == null) {
  return "";
 } else {
  return getEventGrounding().getTransportProtocol().getBrokerHostname();
 }
}
origin: streampipes/streampipes-ce

public String getActualTopicName() {
 if (getEventGrounding() == null || getEventGrounding().getTransportProtocol() == null ||
     getEventGrounding().getTransportProtocol().getTopicDefinition() == null) {
  return "";
 } else {
  return getEventGrounding().getTransportProtocol().getTopicDefinition()
      .getActualTopicName();
 }
}
origin: org.streampipes/streampipes-pipeline-management

private String getOutputTopic() {
 return spDataStream
     .getEventGrounding()
     .getTransportProtocol()
     .getTopicDefinition()
     .getActualTopicName();
}
origin: org.streampipes/streampipes-pipeline-management

public String getCurrentData() throws SpRuntimeException {
 if (spDataStream.getEventGrounding().getTransportProtocol() instanceof KafkaTransportProtocol) {
  return getLatestEventFromKafka();
 } else {
  return getLatestEventFromJms();
 }
}
origin: streampipes/streampipes-ce

public String inputTopic(Integer streamIndex) {
 return sepaElement
     .getInputStreams()
     .get(streamIndex)
     .getEventGrounding()
     .getTransportProtocol()
     .getTopicDefinition()
     .getActualTopicName();
}
origin: streampipes/streampipes-ce

private TransportProtocol protocol() {
  return params
      .getGraph()
      .getOutputStream()
      .getEventGrounding()
      .getTransportProtocol();
}
origin: streampipes/streampipes-ce

@Override
public List<SpInputCollector> getInputCollectors() throws SpRuntimeException {
 List<SpInputCollector> inputCollectors = new ArrayList<>();
 for (SpDataStream is : bindingParams.getGraph().getInputStreams()) {
  inputCollectors.add(ProtocolManager.findInputCollector(is.getEventGrounding()
      .getTransportProtocol(), is.getEventGrounding().getTransportFormats().get(0),
      singletonEngine));
 }
 return inputCollectors;
}
origin: streampipes/streampipes-ce

public String getCurrentData() throws SpRuntimeException {
 if (spDataStream.getEventGrounding().getTransportProtocol() instanceof KafkaTransportProtocol) {
  return getLatestEventFromKafka();
 } else {
  return getLatestEventFromJms();
 }
}
origin: streampipes/streampipes-ce

@Override
public List<SpInputCollector> getInputCollectors() throws SpRuntimeException {
 List<SpInputCollector> inputCollectors = new ArrayList<>();
 for (SpDataStream is : bindingParams.getGraph().getInputStreams()) {
  inputCollectors.add(ProtocolManager.findInputCollector(is.getEventGrounding()
          .getTransportProtocol(), is.getEventGrounding().getTransportFormats().get(0),
      singletonEngine));
 }
 return inputCollectors;
}
origin: streampipes/streampipes-ce

private String getOutputTopic() {
 return spDataStream
     .getEventGrounding()
     .getTransportProtocol()
     .getTopicDefinition()
     .getActualTopicName();
}
origin: org.streampipes/streampipes-wrapper

BindingParams(I graph) {
 this.graph = graph;
 this.inEventTypes = new HashMap<>();
 graph.getInputStreams().forEach(is ->
     inEventTypes.put(is.getEventGrounding().getTransportProtocol().getTopicDefinition().getActualTopicName(), SchemaUtils
         .toRuntimeMap
         (is.getEventSchema().getEventProperties())));
 graph.getInputStreams().forEach(s -> inputStreamParams.add(new InputStreamParams(s)));
}
origin: streampipes/streampipes-ce

BindingParams(I graph) {
 this.graph = graph;
 this.inEventTypes = new HashMap<>();
 graph.getInputStreams().forEach(is ->
     inEventTypes.put(is.getEventGrounding().getTransportProtocol().getTopicDefinition().getActualTopicName(), SchemaUtils
         .toRuntimeMap
         (is.getEventSchema().getEventProperties())));
 graph.getInputStreams().forEach(s -> inputStreamParams.add(new InputStreamParams(s)));
}
origin: org.streampipes/streampipes-wrapper

public InputStreamParams(SpDataStream inputStream) {
  super();
  this.eventGrounding = inputStream.getEventGrounding();
  this.inName = eventGrounding.getTransportProtocol().getTopicDefinition().getActualTopicName();
  this.eventSchema = inputStream.getEventSchema();
}

origin: streampipes/streampipes-ce

@Override
public SpOutputCollector getOutputCollector() throws SpRuntimeException {
 return ProtocolManager.findOutputCollector(bindingParams.getGraph().getOutputStream()
     .getEventGrounding().getTransportProtocol(), bindingParams.getGraph().getOutputStream
     ().getEventGrounding().getTransportFormats().get(0));
}
origin: org.streampipes/streampipes-wrapper

public EventProcessorBindingParams(DataProcessorInvocation graph)
{
  super(new DataProcessorInvocation(graph));
  this.outEventType = SchemaUtils.toRuntimeMap(graph.getOutputStream().getEventSchema().getEventProperties());
  outputStream = graph.getOutputStream();
  EventGrounding outputGrounding = outputStream.getEventGrounding();
  outName = outputGrounding.getTransportProtocol().getTopicDefinition().getActualTopicName();
  
}
origin: streampipes/streampipes-ce

public EventProcessorBindingParams(DataProcessorInvocation graph)
{
  super(new DataProcessorInvocation(graph));
  this.outEventType = SchemaUtils.toRuntimeMap(graph.getOutputStream().getEventSchema().getEventProperties());
  outputStream = graph.getOutputStream();
  EventGrounding outputGrounding = outputStream.getEventGrounding();
  outName = outputGrounding.getTransportProtocol().getTopicDefinition().getActualTopicName();
  
}
org.streampipes.model.groundingEventGroundinggetTransportProtocol

Popular methods of EventGrounding

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

Popular in Java

  • Finding current android device location
  • scheduleAtFixedRate (Timer)
  • getResourceAsStream (ClassLoader)
  • setContentView (Activity)
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • From CI to AI: The AI layer in your organization
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