[ 
https://issues.apache.org/jira/browse/MINIFI-183?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15869852#comment-15869852
 ] 

ASF GitHub Bot commented on MINIFI-183:
---------------------------------------

Github user achristianson commented on a diff in the pull request:

    https://github.com/apache/nifi-minifi-cpp/pull/43#discussion_r101504064
  
    --- Diff: libminifi/include/ProcessSessionFactory.h ---
    @@ -0,0 +1,52 @@
    +/**
    + * @file ProcessSessionFactory.h
    + * ProcessSessionFactory class declaration
    + *
    + * 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.
    + */
    +#ifndef __PROCESS_SESSION_FACTORY_H__
    +#define __PROCESS_SESSION_FACTORY_H__
    +
    +#include <memory>
    +
    +#include "ProcessContext.h"
    +#include "ProcessSession.h"
    +
    +//! ProcessSessionFactory Class
    +class ProcessSessionFactory
    +{
    +public:
    +   //! Constructor
    +   /*!
    +    * Create a new process session factory
    +    */
    +   ProcessSessionFactory(ProcessContext *processContext) : 
_processContext(processContext) {}
    +
    +   //! Create the session
    +   std::unique_ptr<ProcessSession> createSession();
    --- End diff --
    
    @phrocker No problem. It makes it a lot easier to avoid memory management 
bugs.


> Create ListenHTTP processor
> ---------------------------
>
>                 Key: MINIFI-183
>                 URL: https://issues.apache.org/jira/browse/MINIFI-183
>             Project: Apache NiFi MiNiFi
>          Issue Type: Task
>          Components: C++
>            Reporter: Andrew Christianson
>            Assignee: Andrew Christianson
>
> Create a ListenHTTP processor of similar design/function to the ListenHTTP in 
> the parent Apache NiFi project.
> Being a part of MiNiFi, the server should be very lightweight, handle 
> requests asynchronously, have optional threading, and should support 
> streaming of request/response content to minimize memory requirements.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to