Skip to content

Commit

Permalink
[#1289] Remove class ProtocolStreamDescription
Browse files Browse the repository at this point in the history
  • Loading branch information
tenthe committed Feb 15, 2023
1 parent 73aabb8 commit b28fbd2
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 51 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
package org.apache.streampipes.connect.management.management;

import org.apache.streampipes.model.SpDataStream;
import org.apache.streampipes.model.connect.adapter.AdapterStreamDescription;
import org.apache.streampipes.model.connect.adapter.AdapterDescription;
import org.apache.streampipes.model.connect.adapter.SpecificAdapterStreamDescription;
import org.apache.streampipes.model.schema.EventPropertyPrimitive;
import org.apache.streampipes.model.schema.EventSchema;
Expand All @@ -42,7 +42,7 @@ public void updateDataStream() {
EventSchema newEventSchema = new EventSchema();
newEventSchema.addEventProperty(new EventPropertyPrimitive());

AdapterStreamDescription adapterDescription = new SpecificAdapterStreamDescription();
AdapterDescription adapterDescription = new SpecificAdapterStreamDescription();
SpDataStream newDataStream = new SpDataStream();
newDataStream.setEventSchema(newEventSchema);
adapterDescription.setName(newAdapterName);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@

package org.apache.streampipes.extensions.management.connect;

import org.apache.streampipes.model.connect.adapter.AdapterStreamDescription;
import org.apache.streampipes.model.connect.adapter.AdapterDescription;
import org.apache.streampipes.model.connect.adapter.GenericAdapterStreamDescription;

import java.util.ArrayList;

public class Utils {

public static AdapterStreamDescription getMinimalStreamAdapter() {
AdapterStreamDescription result = new GenericAdapterStreamDescription();
public static AdapterDescription getMinimalStreamAdapter() {
AdapterDescription result = new GenericAdapterStreamDescription();
String id = "https://t.de/";
result.setElementId(id);
result.setRules(new ArrayList<>());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
public abstract class AdapterDescription extends NamedStreamPipesEntity {

protected SpDataStream dataStream;

protected boolean running;
private EventGrounding eventGrounding;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

import org.apache.streampipes.model.connect.grounding.FormatDescription;
import org.apache.streampipes.model.connect.grounding.ProtocolDescription;
import org.apache.streampipes.model.connect.grounding.ProtocolStreamDescription;
import org.apache.streampipes.model.schema.EventSchema;
import org.apache.streampipes.model.shared.annotation.TsModel;
import org.apache.streampipes.model.util.ElementIdGenerator;
Expand All @@ -39,7 +38,7 @@ public GenericAdapterStreamDescription() {
}

public GenericAdapterStreamDescription(FormatDescription formatDescription,
ProtocolStreamDescription protocolDescription) {
ProtocolDescription protocolDescription) {
this.formatDescription = formatDescription;
this.protocolDescription = protocolDescription;
}
Expand All @@ -51,7 +50,7 @@ public GenericAdapterStreamDescription(GenericAdapterStreamDescription other) {
this.formatDescription = new FormatDescription(other.getFormatDescription());
}
if (other.getProtocolDescription() != null) {
this.protocolDescription = new ProtocolStreamDescription(other.getProtocolDescription());
this.protocolDescription = new ProtocolDescription(other.getProtocolDescription());
}
}

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
/* tslint:disable */
/* eslint-disable */
// @ts-nocheck
// Generated using typescript-generator version 3.1.1185 on 2023-02-15 16:22:37.
// Generated using typescript-generator version 3.1.1185 on 2023-02-15 16:54:35.

export class ExtensionsServiceEndpointItem {
appId: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
/* tslint:disable */
/* eslint-disable */
// @ts-nocheck
// Generated using typescript-generator version 3.1.1185 on 2023-02-15 16:22:35.
// Generated using typescript-generator version 3.1.1185 on 2023-02-15 16:54:34.

export class NamedStreamPipesEntity {
'@class':
Expand Down

0 comments on commit b28fbd2

Please sign in to comment.