You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by al...@apache.org on 2017/11/27 17:11:45 UTC
[1/2] nifi-minifi git commit: MINIFI-314: Adds
NoOpProvenanceRepository.
Repository: nifi-minifi
Updated Branches:
refs/heads/master 97d509953 -> a4b57b069
MINIFI-314: Adds NoOpProvenanceRepository.
This closes #98.
Signed-off-by: Aldrin Piri <al...@apache.org>
Project: http://git-wip-us.apache.org/repos/asf/nifi-minifi/repo
Commit: http://git-wip-us.apache.org/repos/asf/nifi-minifi/commit/37ddeb15
Tree: http://git-wip-us.apache.org/repos/asf/nifi-minifi/tree/37ddeb15
Diff: http://git-wip-us.apache.org/repos/asf/nifi-minifi/diff/37ddeb15
Branch: refs/heads/master
Commit: 37ddeb15f8d38244c017db72700c816513cc51c7
Parents: 97d5099
Author: jzonthemtn <jz...@apache.org>
Authored: Tue Nov 21 13:34:15 2017 -0500
Committer: Aldrin Piri <al...@apache.org>
Committed: Mon Nov 27 12:10:51 2017 -0500
----------------------------------------------------------------------
.../minifi-provenance-repositories/pom.xml | 34 +++++
.../provenance/NoOpProvenanceRepository.java | 143 +++++++++++++++++++
...he.nifi.provenance.ProvenanceEventRepository | 15 ++
....apache.nifi.provenance.ProvenanceRepository | 15 ++
.../minifi-provenance-repository-bundle/pom.xml | 3 +-
5 files changed, 209 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/nifi-minifi/blob/37ddeb15/minifi-nar-bundles/minifi-provenance-repository-bundle/minifi-provenance-repositories/pom.xml
----------------------------------------------------------------------
diff --git a/minifi-nar-bundles/minifi-provenance-repository-bundle/minifi-provenance-repositories/pom.xml b/minifi-nar-bundles/minifi-provenance-repository-bundle/minifi-provenance-repositories/pom.xml
new file mode 100644
index 0000000..f1f80ae
--- /dev/null
+++ b/minifi-nar-bundles/minifi-provenance-repository-bundle/minifi-provenance-repositories/pom.xml
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+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.
+ -->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.apache.nifi.minifi</groupId>
+ <artifactId>minifi-provenance-repository-bundle</artifactId>
+ <version>0.2.1-SNAPSHOT</version>
+ </parent>
+
+ <artifactId>minifi-provenance-repositories</artifactId>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.nifi</groupId>
+ <artifactId>nifi-data-provenance-utils</artifactId>
+ </dependency>
+ </dependencies>
+</project>
http://git-wip-us.apache.org/repos/asf/nifi-minifi/blob/37ddeb15/minifi-nar-bundles/minifi-provenance-repository-bundle/minifi-provenance-repositories/src/main/java/org/apache/nifi/provenance/NoOpProvenanceRepository.java
----------------------------------------------------------------------
diff --git a/minifi-nar-bundles/minifi-provenance-repository-bundle/minifi-provenance-repositories/src/main/java/org/apache/nifi/provenance/NoOpProvenanceRepository.java b/minifi-nar-bundles/minifi-provenance-repository-bundle/minifi-provenance-repositories/src/main/java/org/apache/nifi/provenance/NoOpProvenanceRepository.java
new file mode 100644
index 0000000..726cf2b
--- /dev/null
+++ b/minifi-nar-bundles/minifi-provenance-repository-bundle/minifi-provenance-repositories/src/main/java/org/apache/nifi/provenance/NoOpProvenanceRepository.java
@@ -0,0 +1,143 @@
+/*
+ * 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.nifi.provenance;
+
+import java.io.IOException;
+import java.util.Collections;
+import java.util.List;
+
+import org.apache.nifi.authorization.Authorizer;
+import org.apache.nifi.authorization.user.NiFiUser;
+import org.apache.nifi.events.EventReporter;
+import org.apache.nifi.provenance.lineage.ComputeLineageSubmission;
+import org.apache.nifi.provenance.search.Query;
+import org.apache.nifi.provenance.search.QuerySubmission;
+import org.apache.nifi.provenance.search.SearchableField;
+
+/**
+ * Implementation of {@link ProvenanceRepository} that does not
+ * store events.
+ *
+ */
+public class NoOpProvenanceRepository implements ProvenanceRepository {
+
+ @Override
+ public void initialize(EventReporter eventReporter, Authorizer authorizer,
+ ProvenanceAuthorizableFactory factory, IdentifierLookup identifierLookup)
+ throws IOException {
+
+ }
+
+ @Override
+ public void close() throws IOException {
+
+ }
+
+ @Override
+ public ProvenanceEventBuilder eventBuilder() {
+ return new StandardProvenanceEventRecord.Builder();
+ }
+
+ @Override
+ public ProvenanceEventRecord getEvent(long id) throws IOException {
+ return null;
+ }
+
+ @Override
+ public ProvenanceEventRecord getEvent(final long id, final NiFiUser user) throws IOException {
+ return null;
+ }
+
+ @Override
+ public List<ProvenanceEventRecord> getEvents(long firstRecordId, int maxRecords)
+ throws IOException {
+ return Collections.emptyList();
+ }
+
+ @Override
+ public List<ProvenanceEventRecord> getEvents(long firstRecordId,
+ int maxRecords, NiFiUser niFiUser) throws IOException {
+ return Collections.emptyList();
+ }
+
+ @Override
+ public Long getMaxEventId() {
+ return null;
+ }
+
+ @Override
+ public void registerEvent(ProvenanceEventRecord records) {
+
+ }
+
+ @Override
+ public void registerEvents(Iterable<ProvenanceEventRecord> records) {
+
+ }
+
+ @Override
+ public ProvenanceEventRepository getProvenanceEventRepository() {
+ return this;
+ }
+
+ @Override
+ public QuerySubmission submitQuery(Query query, NiFiUser niFiUser) {
+ return null;
+ }
+
+ @Override
+ public QuerySubmission retrieveQuerySubmission(String queryIdentifier, NiFiUser niFiUser) {
+ return null;
+ }
+
+ @Override
+ public ComputeLineageSubmission submitLineageComputation(String s, NiFiUser niFiUser) {
+ return null;
+ }
+
+ @Override
+ public ComputeLineageSubmission submitLineageComputation(long eventId, NiFiUser user) {
+ return null;
+ }
+
+ @Override
+ public List<SearchableField> getSearchableFields() {
+ return null;
+ }
+
+ @Override
+ public List<SearchableField> getSearchableAttributes() {
+ return null;
+ }
+
+ @Override
+ public AsyncLineageSubmission retrieveLineageSubmission(final String lineageIdentifier,
+ final NiFiUser user) {
+ return null;
+ }
+
+ @Override
+ public AsyncLineageSubmission submitExpandParents(final long eventId, final NiFiUser user) {
+ return null;
+ }
+
+ @Override
+ public AsyncLineageSubmission submitExpandChildren(final long eventId, final NiFiUser user) {
+ return null;
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/nifi-minifi/blob/37ddeb15/minifi-nar-bundles/minifi-provenance-repository-bundle/minifi-provenance-repositories/src/main/resources/META-INF/services/org.apache.nifi.provenance.ProvenanceEventRepository
----------------------------------------------------------------------
diff --git a/minifi-nar-bundles/minifi-provenance-repository-bundle/minifi-provenance-repositories/src/main/resources/META-INF/services/org.apache.nifi.provenance.ProvenanceEventRepository b/minifi-nar-bundles/minifi-provenance-repository-bundle/minifi-provenance-repositories/src/main/resources/META-INF/services/org.apache.nifi.provenance.ProvenanceEventRepository
new file mode 100644
index 0000000..1cf1f31
--- /dev/null
+++ b/minifi-nar-bundles/minifi-provenance-repository-bundle/minifi-provenance-repositories/src/main/resources/META-INF/services/org.apache.nifi.provenance.ProvenanceEventRepository
@@ -0,0 +1,15 @@
+# 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.
+org.apache.nifi.provenance.NoOpProvenanceRepository
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/nifi-minifi/blob/37ddeb15/minifi-nar-bundles/minifi-provenance-repository-bundle/minifi-provenance-repositories/src/main/resources/META-INF/services/org.apache.nifi.provenance.ProvenanceRepository
----------------------------------------------------------------------
diff --git a/minifi-nar-bundles/minifi-provenance-repository-bundle/minifi-provenance-repositories/src/main/resources/META-INF/services/org.apache.nifi.provenance.ProvenanceRepository b/minifi-nar-bundles/minifi-provenance-repository-bundle/minifi-provenance-repositories/src/main/resources/META-INF/services/org.apache.nifi.provenance.ProvenanceRepository
new file mode 100644
index 0000000..1cf1f31
--- /dev/null
+++ b/minifi-nar-bundles/minifi-provenance-repository-bundle/minifi-provenance-repositories/src/main/resources/META-INF/services/org.apache.nifi.provenance.ProvenanceRepository
@@ -0,0 +1,15 @@
+# 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.
+org.apache.nifi.provenance.NoOpProvenanceRepository
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/nifi-minifi/blob/37ddeb15/minifi-nar-bundles/minifi-provenance-repository-bundle/pom.xml
----------------------------------------------------------------------
diff --git a/minifi-nar-bundles/minifi-provenance-repository-bundle/pom.xml b/minifi-nar-bundles/minifi-provenance-repository-bundle/pom.xml
index 8355359..3d6d305 100644
--- a/minifi-nar-bundles/minifi-provenance-repository-bundle/pom.xml
+++ b/minifi-nar-bundles/minifi-provenance-repository-bundle/pom.xml
@@ -30,6 +30,7 @@ limitations under the License.
<modules>
<module>minifi-provenance-repository-nar</module>
<module>minifi-persistent-provenance-repository</module>
+ <module>minifi-provenance-repositories</module>
</modules>
-</project>
\ No newline at end of file
+</project>
[2/2] nifi-minifi git commit: MINIFI-314 Add the NoOp Repository jar
to the provenance repositories NAR
Posted by al...@apache.org.
MINIFI-314 Add the NoOp Repository jar to the provenance repositories NAR
Project: http://git-wip-us.apache.org/repos/asf/nifi-minifi/repo
Commit: http://git-wip-us.apache.org/repos/asf/nifi-minifi/commit/a4b57b06
Tree: http://git-wip-us.apache.org/repos/asf/nifi-minifi/tree/a4b57b06
Diff: http://git-wip-us.apache.org/repos/asf/nifi-minifi/diff/a4b57b06
Branch: refs/heads/master
Commit: a4b57b0694d51343d44ba64d39d2a5b536e57950
Parents: 37ddeb1
Author: Aldrin Piri <al...@apache.org>
Authored: Mon Nov 27 12:08:16 2017 -0500
Committer: Aldrin Piri <al...@apache.org>
Committed: Mon Nov 27 12:11:03 2017 -0500
----------------------------------------------------------------------
.../minifi-provenance-repository-nar/pom.xml | 4 ++++
pom.xml | 5 +++++
2 files changed, 9 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/nifi-minifi/blob/a4b57b06/minifi-nar-bundles/minifi-provenance-repository-bundle/minifi-provenance-repository-nar/pom.xml
----------------------------------------------------------------------
diff --git a/minifi-nar-bundles/minifi-provenance-repository-bundle/minifi-provenance-repository-nar/pom.xml b/minifi-nar-bundles/minifi-provenance-repository-bundle/minifi-provenance-repository-nar/pom.xml
index b00fa15..8d95caf 100644
--- a/minifi-nar-bundles/minifi-provenance-repository-bundle/minifi-provenance-repository-nar/pom.xml
+++ b/minifi-nar-bundles/minifi-provenance-repository-bundle/minifi-provenance-repository-nar/pom.xml
@@ -33,6 +33,10 @@ limitations under the License.
<artifactId>minifi-persistent-provenance-repository</artifactId>
</dependency>
<dependency>
+ <groupId>org.apache.nifi.minifi</groupId>
+ <artifactId>minifi-provenance-repositories</artifactId>
+ </dependency>
+ <dependency>
<groupId>org.apache.nifi</groupId>
<artifactId>nifi-data-provenance-utils</artifactId>
<scope>provided</scope>
http://git-wip-us.apache.org/repos/asf/nifi-minifi/blob/a4b57b06/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index ccb399f..ae12d67 100644
--- a/pom.xml
+++ b/pom.xml
@@ -229,6 +229,11 @@ limitations under the License.
<scope>runtime</scope>
<type>zip</type>
</dependency>
+ <dependency>
+ <groupId>org.apache.nifi.minifi</groupId>
+ <artifactId>minifi-provenance-repositories</artifactId>
+ <version>0.2.1-SNAPSHOT</version>
+ </dependency>
<dependency>
<groupId>ch.qos.logback</groupId>