true
if the Controller Service with the given
* identifier has been enabled but is still in the transitioning state,
* otherwise returns false
. If the given identifier is not
diff --git a/nifi-bootstrap/src/main/java/org/apache/nifi/bootstrap/ShutdownHook.java b/nifi-bootstrap/src/main/java/org/apache/nifi/bootstrap/ShutdownHook.java
index 9d5d1a04cb..6cedbb127e 100644
--- a/nifi-bootstrap/src/main/java/org/apache/nifi/bootstrap/ShutdownHook.java
+++ b/nifi-bootstrap/src/main/java/org/apache/nifi/bootstrap/ShutdownHook.java
@@ -91,7 +91,7 @@ public class ShutdownHook extends Thread {
System.err.println("Failed to delete status file " + statusFile.getAbsolutePath() + "; this file should be cleaned up manually");
}
}catch (IOException ex){
- System.err.println("Failed to retrive status file " + ex);
+ System.err.println("Failed to retrieve status file " + ex);
}
}
}
diff --git a/nifi-commons/nifi-expression-language/src/main/java/org/apache/nifi/attribute/expression/language/ValueLookup.java b/nifi-commons/nifi-expression-language/src/main/java/org/apache/nifi/attribute/expression/language/ValueLookup.java
index 44da5a3d2a..5b0cdda852 100644
--- a/nifi-commons/nifi-expression-language/src/main/java/org/apache/nifi/attribute/expression/language/ValueLookup.java
+++ b/nifi-commons/nifi-expression-language/src/main/java/org/apache/nifi/attribute/expression/language/ValueLookup.java
@@ -105,7 +105,7 @@ final class ValueLookup implements Map* If the first phase of the above two-phase commit completes and all nodes indicate that the - * request may continue, this means that all nodes have agreed that the client's Revisios are + * request may continue, this means that all nodes have agreed that the client's Revisions are * acceptable. *
*/ diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/controller/TemplateUtils.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/controller/TemplateUtils.java index aa845945ef..759edb57fe 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/controller/TemplateUtils.java +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/controller/TemplateUtils.java @@ -216,7 +216,7 @@ public class TemplateUtils { * so that if one of these things changes, the template itself changes, which makes it hard to * use a CM tool for versioning. So we remove all that we don't need. * - * @param descriptor the ProeprtyDescriptor to scrub + * @param descriptor the PropertyDescriptor to scrub */ private static void scrubPropertyDescriptor(final PropertyDescriptorDTO descriptor) { descriptor.setAllowableValues(null); diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/controller/state/manager/StandardStateManagerProvider.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/controller/state/manager/StandardStateManagerProvider.java index 7e247fdae9..21368e852c 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/controller/state/manager/StandardStateManagerProvider.java +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/controller/state/manager/StandardStateManagerProvider.java @@ -136,7 +136,7 @@ public class StandardStateManagerProvider implements StateManagerProvider{ if (providerId.trim().isEmpty()) { throw new IllegalStateException("Cannot create " + providerDescription + " because the '" + providerIdPropertyName + "' property in the NiFi Properties file has no value set. This is a required property and must reference the identifier of one of the " - + providerXmlElementName + " elements in the State Management Configuraiton File (" + configFile + ")"); + + providerXmlElementName + " elements in the State Management Configuration File (" + configFile + ")"); } final StateManagerConfiguration config = StateManagerConfiguration.parse(configFile); diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/util/ReflectionUtils.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/util/ReflectionUtils.java index 5e1838a2a0..08feff67bd 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/util/ReflectionUtils.java +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/util/ReflectionUtils.java @@ -232,7 +232,7 @@ public class ReflectionUtils { try { return invokeMethodsWithAnnotations(true, logger, instance, annotationArray, args); } catch (Exception e) { - LOG.error("Failed while attemptiing to invoke methods with '" + Arrays.asList(annotationArray) + "' annotations", e); + LOG.error("Failed while attempting to invoke methods with '" + Arrays.asList(annotationArray) + "' annotations", e); return false; } } diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-site-to-site/src/main/java/org/apache/nifi/remote/HttpRemoteSiteListener.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-site-to-site/src/main/java/org/apache/nifi/remote/HttpRemoteSiteListener.java index 7a001abc2b..c9c523ef26 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-site-to-site/src/main/java/org/apache/nifi/remote/HttpRemoteSiteListener.java +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-site-to-site/src/main/java/org/apache/nifi/remote/HttpRemoteSiteListener.java @@ -91,12 +91,12 @@ public class HttpRemoteSiteListener implements RemoteSiteListener { private class TransactionWrapper { private final FlowFileTransaction transaction; - private final HandshakeProperties handshakenProperties; + private final HandshakeProperties handshakeProperties; private long lastCommunicationAt; - private TransactionWrapper(final FlowFileTransaction transaction, final HandshakeProperties handshakenProperties) { + private TransactionWrapper(final FlowFileTransaction transaction, final HandshakeProperties handshakeProperties) { this.transaction = transaction; - this.handshakenProperties = handshakenProperties; + this.handshakeProperties = handshakeProperties; this.lastCommunicationAt = System.currentTimeMillis(); } @@ -197,7 +197,7 @@ public class HttpRemoteSiteListener implements RemoteSiteListener { public HandshakeProperties getHandshakenProperties(final String transactionId) { TransactionWrapper transaction = transactions.get(transactionId); if (isTransactionActive(transaction)) { - return transaction.handshakenProperties; + return transaction.handshakeProperties; } return null; } diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-site-to-site/src/main/java/org/apache/nifi/remote/protocol/AbstractFlowFileServerProtocol.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-site-to-site/src/main/java/org/apache/nifi/remote/protocol/AbstractFlowFileServerProtocol.java index fe324add1c..2ba87a279e 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-site-to-site/src/main/java/org/apache/nifi/remote/protocol/AbstractFlowFileServerProtocol.java +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-site-to-site/src/main/java/org/apache/nifi/remote/protocol/AbstractFlowFileServerProtocol.java @@ -63,7 +63,7 @@ public abstract class AbstractFlowFileServerProtocol implements ServerProtocol { protected boolean shutdown = false; protected FlowFileCodec negotiatedFlowFileCodec = null; - protected HandshakeProperties handshakenProperties; + protected HandshakeProperties handshakeProperties; protected static final long DEFAULT_BATCH_NANOS = TimeUnit.SECONDS.toNanos(5L); @@ -195,7 +195,7 @@ public abstract class AbstractFlowFileServerProtocol implements ServerProtocol { logger.debug("{} Handshaking with {}", this, peer); - this.handshakenProperties = doHandshake(peer); + this.handshakeProperties = doHandshake(peer); logger.debug("{} Finished handshake with {}", this, peer); handshakeCompleted = true; @@ -242,7 +242,7 @@ public abstract class AbstractFlowFileServerProtocol implements ServerProtocol { String calculatedCRC = ""; OutputStream os = new DataOutputStream(commsSession.getOutput().getOutputStream()); while (continueTransaction) { - final boolean useGzip = handshakenProperties.isUseGzip(); + final boolean useGzip = handshakeProperties.isUseGzip(); final OutputStream flowFileOutputStream = useGzip ? new CompressionOutputStream(os) : os; logger.debug("{} Sending {} to {}", new Object[]{this, flowFile, peer}); @@ -278,15 +278,15 @@ public abstract class AbstractFlowFileServerProtocol implements ServerProtocol { // determine if we should check for more data on queue. final long sendingNanos = System.nanoTime() - startNanos; boolean poll = true; - double batchDurationNanos = handshakenProperties.getBatchDurationNanos(); + double batchDurationNanos = handshakeProperties.getBatchDurationNanos(); if (sendingNanos >= batchDurationNanos && batchDurationNanos > 0L) { poll = false; } - double batchBytes = handshakenProperties.getBatchBytes(); + double batchBytes = handshakeProperties.getBatchBytes(); if (bytesSent >= batchBytes && batchBytes > 0L) { poll = false; } - double batchCount = handshakenProperties.getBatchCount(); + double batchCount = handshakeProperties.getBatchCount(); if (flowFilesSent.size() >= batchCount && batchCount > 0) { poll = false; } @@ -433,7 +433,7 @@ public abstract class AbstractFlowFileServerProtocol implements ServerProtocol { boolean continueTransaction = true; while (continueTransaction) { final long startNanos = System.nanoTime(); - final InputStream flowFileInputStream = handshakenProperties.isUseGzip() ? new CompressionInputStream(dis) : dis; + final InputStream flowFileInputStream = handshakeProperties.isUseGzip() ? new CompressionInputStream(dis) : dis; final CheckedInputStream checkedInputStream = new CheckedInputStream(flowFileInputStream, crc); final DataPacket dataPacket = codec.decode(checkedInputStream); @@ -551,12 +551,12 @@ public abstract class AbstractFlowFileServerProtocol implements ServerProtocol { @Override public long getRequestExpiration() { - return handshakenProperties.getExpirationMillis(); + return handshakeProperties.getExpirationMillis(); } @Override public String toString() { - String commid = handshakenProperties != null ? handshakenProperties.getCommsIdentifier() : null; + String commid = handshakeProperties != null ? handshakeProperties.getCommsIdentifier() : null; return getClass().getSimpleName() + "[CommsID=" + commid + "]"; } } diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-site-to-site/src/main/java/org/apache/nifi/remote/protocol/http/StandardHttpFlowFileServerProtocol.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-site-to-site/src/main/java/org/apache/nifi/remote/protocol/http/StandardHttpFlowFileServerProtocol.java index 0795b5d0a3..a35b160021 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-site-to-site/src/main/java/org/apache/nifi/remote/protocol/http/StandardHttpFlowFileServerProtocol.java +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-site-to-site/src/main/java/org/apache/nifi/remote/protocol/http/StandardHttpFlowFileServerProtocol.java @@ -181,7 +181,7 @@ public class StandardHttpFlowFileServerProtocol extends AbstractFlowFileServerPr HttpServerCommunicationsSession commSession = (HttpServerCommunicationsSession) peer.getCommunicationsSession(); String transactionId = commSession.getTransactionId(); logger.debug("{} Holding transaction. transactionId={}", this, transactionId); - transactionManager.holdTransaction(transactionId, transaction, handshakenProperties); + transactionManager.holdTransaction(transactionId, transaction, handshakeProperties); return transaction.getFlowFilesSent().size(); } diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-site-to-site/src/main/java/org/apache/nifi/remote/protocol/socket/SocketFlowFileServerProtocol.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-site-to-site/src/main/java/org/apache/nifi/remote/protocol/socket/SocketFlowFileServerProtocol.java index 8ecf96c83f..b67276ee6e 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-site-to-site/src/main/java/org/apache/nifi/remote/protocol/socket/SocketFlowFileServerProtocol.java +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-site-to-site/src/main/java/org/apache/nifi/remote/protocol/socket/SocketFlowFileServerProtocol.java @@ -222,7 +222,7 @@ public class SocketFlowFileServerProtocol extends AbstractFlowFileServerProtocol @Override protected String createTransitUri(Peer peer, String sourceFlowFileIdentifier) { - String transitUriPrefix = handshakenProperties.getTransitUriPrefix(); + String transitUriPrefix = handshakeProperties.getTransitUriPrefix(); return (transitUriPrefix == null) ? peer.getUrl() : transitUriPrefix + sourceFlowFileIdentifier; } } diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/audit/AccessPolicyAuditor.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/audit/AccessPolicyAuditor.java index c84f7fdc99..90f562d544 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/audit/AccessPolicyAuditor.java +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/audit/AccessPolicyAuditor.java @@ -96,7 +96,7 @@ public class AccessPolicyAuditor extends NiFiAuditor { + "args(accessPolicyDTO) && " + "target(accessPolicyDAO)") public AccessPolicy updateAccessPolicyAdvice(ProceedingJoinPoint proceedingJoinPoint, AccessPolicyDTO accessPolicyDTO, AccessPolicyDAO accessPolicyDAO) throws Throwable { - // determine the initial values for each property/setting thats changing + // determine the initial values for each property/setting that's changing AccessPolicy accessPolicy = accessPolicyDAO.getAccessPolicy(accessPolicyDTO.getId()); final Map