You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/09/01 14:47:00 UTC
[jira] [Commented] (NIFIREG-10) Implement initial registry service
layer
[ https://issues.apache.org/jira/browse/NIFIREG-10?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16150658#comment-16150658 ]
ASF GitHub Bot commented on NIFIREG-10:
---------------------------------------
Github user kevdoran commented on a diff in the pull request:
https://github.com/apache/nifi-registry/pull/7#discussion_r136591864
--- Diff: nifi-registry-web-api/src/test/java/org/apache/nifi/registry/web/TestRestAPI.java ---
@@ -0,0 +1,152 @@
+/*
+ * 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.registry.web;
+
+import org.apache.nifi.registry.bucket.Bucket;
+import org.apache.nifi.registry.flow.VersionedFlow;
+import org.apache.nifi.registry.flow.VersionedFlowSnapshot;
+import org.apache.nifi.registry.flow.VersionedFlowSnapshotMetadata;
+import org.apache.nifi.registry.flow.VersionedProcessGroup;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import javax.ws.rs.WebApplicationException;
+import javax.ws.rs.client.Client;
+import javax.ws.rs.client.ClientBuilder;
+import javax.ws.rs.client.Entity;
+import javax.ws.rs.core.MediaType;
+import javax.ws.rs.core.Response;
+
+public class TestRestAPI {
--- End diff --
Curious, where does this get run from? Is it automated as part of the build or is there an executable jar that is output somewhere? I like having it, just can't find what artifact it is a part of :-)
> Implement initial registry service layer
> ----------------------------------------
>
> Key: NIFIREG-10
> URL: https://issues.apache.org/jira/browse/NIFIREG-10
> Project: NiFi Registry
> Issue Type: Improvement
> Reporter: Bryan Bende
> Assignee: Bryan Bende
> Priority: Minor
>
> This ticket is to implement a service layer that will be called by the REST layer and will use the providers to perform the desired actions, i.e. for saving a snapshot, it will call the metadata provider to create the snapshot there, and then call a serializer to get the bytes of the snapshot, and then persist the bytes using the flow persistence provider.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)