Skip to content

Commit

Permalink
Small fix after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
SamHjelmfelt committed May 20, 2019
1 parent b4b910b commit 36b8587
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import org.apache.nifi.controller.ControllerService;
import org.apache.nifi.controller.ControllerServiceInitializationContext;
import org.apache.nifi.controller.ControllerServiceLookup;
import org.apache.nifi.controller.NodeTypeProvider;
import org.apache.nifi.logging.ComponentLog;
import org.apache.nifi.processor.Processor;
import org.apache.nifi.processor.Relationship;
Expand Down Expand Up @@ -392,6 +393,20 @@ public StateManager getStateManager() {
return stateManager;
}

@Override
public NodeTypeProvider getNodeTypeProvider() {
return new NodeTypeProvider() {
@Override
public boolean isClustered() {
return false;
}
@Override
public boolean isPrimary() {
return true;
}
};
}

@Override
public String getName() {
return componentName;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public class StatelessProcessorWrapper extends AbstractStatelessComponent implem
private volatile boolean initialized = false;


StatelessProcessorWrapper(final String id, final Processor processor, final StatelessProcessorWrapper parent, final StatelessControllerServiceLookup lookup, final VariableRegistry registry,
public StatelessProcessorWrapper(final String id, final Processor processor, final StatelessProcessorWrapper parent, final StatelessControllerServiceLookup lookup, final VariableRegistry registry,
final boolean materializeContent, final ClassLoader classLoader) throws InvocationTargetException, IllegalAccessException {

this.processor = processor;
Expand Down

0 comments on commit 36b8587

Please sign in to comment.