Github user joewitt commented on a diff in the pull request:
https://github.com/apache/nifi/pull/1478#discussion_r100959147
--- Diff:
nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/persistence/FlowConfigurationDAO.java
---
@@ -25,11 +25,41 @@
import org.apache.nifi.controller.UninheritableFlowException;
import org.apache.nifi.controller.serialization.FlowSerializationException;
import
org.apache.nifi.controller.serialization.FlowSynchronizationException;
+import org.apache.nifi.encrypt.StringEncryptor;
+import org.apache.nifi.util.NiFiProperties;
/**
* Interface to define service methods for FlowController configuration.
*/
public interface FlowConfigurationDAO {
+ /**
+ * Performs any initialization needed. This should be called only by
the
+ * framework.
+ * @param encryptor protected property encryptor/decryptor
+ * @param nifiProperties collection of NiFi properties
+ * @throws IOException thrown if Flow Configuration fails to initialize
+ */
+ void initialize(StringEncryptor encryptor, NiFiProperties
nifiProperties) throws IOException;
+
+ /**
+ * Locks the Flow to prevent cross-thread Writeing
+ */
+ void writeProtectFlow();
+
+ /**
+ * Unlocks a Write locked flow
+ */
+ void unWriteProtectFlow();
+
+ /**
+ * Locks the Flow to prevent cross-thread Writeing
+ */
+ void readProtectFlow();
--- End diff --
copy/paste error on the read/unread protection javadocs.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---