Skip to content

Commit 7b621d1

Browse files
authored
NIFI-15557: Allow Connectors to enable a Controller Service using overridden property values (#63)
1 parent 7107ba5 commit 7b621d1

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

src/main/java/org/apache/nifi/components/connector/components/ControllerServiceLifecycle.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
package org.apache.nifi.components.connector.components;
1919

20+
import java.util.Map;
2021
import java.util.concurrent.CompletableFuture;
2122

2223
public interface ControllerServiceLifecycle {
@@ -25,6 +26,16 @@ public interface ControllerServiceLifecycle {
2526

2627
CompletableFuture<Void> enable();
2728

29+
/**
30+
* Enables the Controller Service using the provided property value overrides. The overrides are merged with
31+
* the currently configured property values, with the overrides taking precedence. This allows enabling a service
32+
* with temporary property value overrides without modifying the service's configuration.
33+
*
34+
* @param propertyValueOverrides the property value overrides to apply when enabling the service
35+
* @return a CompletableFuture that completes when the service has been enabled
36+
*/
37+
CompletableFuture<Void> enable(Map<String, String> propertyValueOverrides);
38+
2839
CompletableFuture<Void> disable();
2940

3041
}

0 commit comments

Comments
 (0)