You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by ze...@apache.org on 2021/10/07 20:53:57 UTC
[incubator-streampipes] 01/03: Remove old classes
This is an automated email from the ASF dual-hosted git repository.
zehnder pushed a commit to branch STREAMPIPES-438
in repository https://gitbox.apache.org/repos/asf/incubator-streampipes.git
commit 843719d50494caffa8e9e91094adda80ed08725a
Author: Philipp Zehnder <ze...@fzi.de>
AuthorDate: Thu Oct 7 22:29:00 2021 +0200
Remove old classes
---
.../connect/container/master/util/Utils.java | 29 ------------
.../connect/container/master/util/WorkerPaths.java | 17 -------
.../adapter/guess/PropertyGuessResults.java | 40 ----------------
.../connect/adapter/guess/PropertyGuesses.java | 54 ----------------------
4 files changed, 140 deletions(-)
diff --git a/streampipes-connect-container-master/src/main/java/org/apache/streampipes/connect/container/master/util/Utils.java b/streampipes-connect-container-master/src/main/java/org/apache/streampipes/connect/container/master/util/Utils.java
deleted file mode 100644
index 3ba2b94..0000000
--- a/streampipes-connect-container-master/src/main/java/org/apache/streampipes/connect/container/master/util/Utils.java
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-
-package org.apache.streampipes.connect.container.master.util;
-
-public class Utils {
-
- public static String addUserNameToApi(String url, String userName) {
- return url;
- //return url + "/api/v1/" + userName + "/";
- }
-
-
-}
diff --git a/streampipes-connect-container-master/src/main/java/org/apache/streampipes/connect/container/master/util/WorkerPaths.java b/streampipes-connect-container-master/src/main/java/org/apache/streampipes/connect/container/master/util/WorkerPaths.java
index 2b5a624..ffe463c 100644
--- a/streampipes-connect-container-master/src/main/java/org/apache/streampipes/connect/container/master/util/WorkerPaths.java
+++ b/streampipes-connect-container-master/src/main/java/org/apache/streampipes/connect/container/master/util/WorkerPaths.java
@@ -20,7 +20,6 @@ package org.apache.streampipes.connect.container.master.util;
public class WorkerPaths {
private static final String WorkerMainPath = "/api/v1/worker";
- private static final String Slash = "/";
public static String getStreamInvokePath() {
return WorkerMainPath + "/stream/invoke";
@@ -42,22 +41,6 @@ public class WorkerPaths {
return WorkerMainPath + "/resolvable/" + elementId + "/configurations";
}
- public static String getAdaptersPath() {
- return WorkerMainPath + "/adapters";
- }
-
- public static String getProtocolsPath() {
- return WorkerMainPath + "/protocols";
- }
-
- public static String getAdaptersPath(String appId) {
- return getAdaptersPath() + Slash + appId;
- }
-
- public static String getProtocolsPath(String appId) {
- return getProtocolsPath() + Slash + appId;
- }
-
public static String getGuessSchemaPath() {
return WorkerMainPath + "/guess/schema";
}
diff --git a/streampipes-connect/src/main/java/org/apache/streampipes/connect/adapter/guess/PropertyGuessResults.java b/streampipes-connect/src/main/java/org/apache/streampipes/connect/adapter/guess/PropertyGuessResults.java
deleted file mode 100644
index ff27fab..0000000
--- a/streampipes-connect/src/main/java/org/apache/streampipes/connect/adapter/guess/PropertyGuessResults.java
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-
-package org.apache.streampipes.connect.adapter.guess;
-
-//TODO Replace this class with DomainPropertyProbabilityList
-public class PropertyGuessResults {
- private PropertyGuesses[] result;
-
- public PropertyGuessResults() {
- }
-
-
- public PropertyGuessResults(PropertyGuesses[] result) {
- this.result = result;
- }
-
- public PropertyGuesses[] getResult() {
- return result;
- }
-
- public void setResult(PropertyGuesses[] result) {
- this.result = result;
- }
-}
diff --git a/streampipes-connect/src/main/java/org/apache/streampipes/connect/adapter/guess/PropertyGuesses.java b/streampipes-connect/src/main/java/org/apache/streampipes/connect/adapter/guess/PropertyGuesses.java
deleted file mode 100644
index 12d706a..0000000
--- a/streampipes-connect/src/main/java/org/apache/streampipes/connect/adapter/guess/PropertyGuesses.java
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-
-package org.apache.streampipes.connect.adapter.guess;
-
-import com.google.gson.annotations.SerializedName;
-
-public class PropertyGuesses {
-
- @SerializedName("class")
- private String clazz;
-
- private double probability;
-
-
- public PropertyGuesses() {
- }
-
- public PropertyGuesses(String clazz, double probability) {
- this.clazz = clazz;
- this.probability = probability;
- }
-
- public String getClazz() {
- return clazz;
- }
-
- public void setClazz(String clazz) {
- this.clazz = clazz;
- }
-
- public double getProbability() {
- return probability;
- }
-
- public void setProbability(double probability) {
- this.probability = probability;
- }
-}