You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rya.apache.org by ca...@apache.org on 2018/01/09 21:48:28 UTC

[11/50] [abbrv] incubator-rya git commit: RYA-377 interactor for stopping the processing of a query.

RYA-377 interactor for stopping the processing of a query.


Project: http://git-wip-us.apache.org/repos/asf/incubator-rya/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-rya/commit/27255cc1
Tree: http://git-wip-us.apache.org/repos/asf/incubator-rya/tree/27255cc1
Diff: http://git-wip-us.apache.org/repos/asf/incubator-rya/diff/27255cc1

Branch: refs/heads/master
Commit: 27255cc15acb557e8c394075dc78e5adc0b61d44
Parents: 5cb9a27
Author: Andrew Smith <sm...@gmail.com>
Authored: Mon Oct 30 18:16:16 2017 -0400
Committer: caleb <ca...@parsons.com>
Committed: Tue Jan 9 15:13:00 2018 -0500

----------------------------------------------------------------------
 .../rya/streams/api/interactor/StopQuery.java   | 41 ++++++++++++++++++++
 1 file changed, 41 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-rya/blob/27255cc1/extras/rya.streams/api/src/main/java/org/apache/rya/streams/api/interactor/StopQuery.java
----------------------------------------------------------------------
diff --git a/extras/rya.streams/api/src/main/java/org/apache/rya/streams/api/interactor/StopQuery.java b/extras/rya.streams/api/src/main/java/org/apache/rya/streams/api/interactor/StopQuery.java
new file mode 100644
index 0000000..9fe0b83
--- /dev/null
+++ b/extras/rya.streams/api/src/main/java/org/apache/rya/streams/api/interactor/StopQuery.java
@@ -0,0 +1,41 @@
+/*
+ * 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.rya.streams.api.interactor;
+
+import java.util.UUID;
+
+import org.apache.rya.streams.api.exception.RyaStreamsException;
+
+import edu.umd.cs.findbugs.annotations.DefaultAnnotation;
+import edu.umd.cs.findbugs.annotations.NonNull;
+
+/**
+ * Stops processing a query in Rya Streams.
+ */
+@DefaultAnnotation(NonNull.class)
+public interface StopQuery {
+
+    /**
+     * Stops processing a query in Rya Streams.
+     *
+     * @param queryID - The UUID for the SPARQL query that will be stopped. (not null)
+     * @throws RyaStreamsException The query could not be processed by Rya Streams.
+     */
+    public void stop(final UUID queryID) throws RyaStreamsException;
+}
\ No newline at end of file