You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by GitBox <gi...@apache.org> on 2022/07/14 06:27:08 UTC

[GitHub] [nifi] kulikg commented on a diff in pull request #6192: NIFI-10212 added ListSmb processor and SmbConnectionPoolService

kulikg commented on code in PR #6192:
URL: https://github.com/apache/nifi/pull/6192#discussion_r920794378


##########
nifi-nar-bundles/nifi-smb-bundle/nifi-smb-connection-pool-api/src/main/java/org/apache/nifi/services/smb/SmbConnectionPoolService.java:
##########
@@ -0,0 +1,60 @@
+/*
+ * 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.services.smb;
+
+import com.hierynomus.smbj.SMBClient;
+import com.hierynomus.smbj.auth.AuthenticationContext;
+import org.apache.nifi.controller.ControllerService;
+
+public interface SmbConnectionPoolService extends ControllerService {
+
+    /**
+     * Returns the name of the share to connect.
+     *
+     * @return the share
+     */
+    String getShareName();
+
+    /**
+     * Returns the hostname to connect to.
+     *
+     * @return the hostname
+     */
+    String getHostname();
+
+    /**
+     * Returns the port using to connect.
+     *
+     * @return the port.
+     */
+    Integer getPort();
+
+    /**
+     * Returns the SmbClient to use
+     *
+     * @return the smbClient
+     */
+    SMBClient getSmbClient();
+
+    /**
+     * Returns the authentication context.
+     *
+     * @return the authentication context.
+     */
+    AuthenticationContext getAuthenticationContext();

Review Comment:
   Thank you for your help making this processor better! We've discussed your suggestions and decided to share the session from the interface. I really like the idea to have a generic file listing interface. But it would turn ListSmb processor into a generic listing processor and would be a bit confusing next to the other listing processors.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@nifi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org