eduardofontes edited a comment on issue #3898: NIFI-6886 - Bugfix 
SiteToSiteBulletinReportingTask
URL: https://github.com/apache/nifi/pull/3898#issuecomment-557227628
 
 
   @bbende 
   The interface org.apache.nifi.controller.ConfigurationContext doesn't have 
the method getStateManager like interface 
org.apache.nifi.reporting.ReportingContext. I figure out that 
org.apache.nifi.remote.client.SiteToSiteClient.Builder() must have a 
StateManager so config can create a PeerPersistence:
   
   `
           public PeerPersistence getPeerPersistence() {
               if (stateManager != null) {
                   return new StatePeerPersistence(stateManager);
               } else if (peerPersistenceFile != null) {
                   return new FilePeerPersistence(peerPersistenceFile);
               }
               return null;
           }
   `

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to