Author: ningjiang
Date: Mon Aug 29 13:14:19 2011
New Revision: 1162790
URL: http://svn.apache.org/viewvc?rev=1162790&view=rev
Log:
CAMEL-4356 changed the option name to fastExistsCheck
Modified:
camel/trunk/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/FtpOperations.java
camel/trunk/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/RemoteFileEndpoint.java
camel/trunk/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/SftpOperations.java
camel/trunk/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/FtpProducerFileFastExistFailTest.java
Modified:
camel/trunk/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/FtpOperations.java
URL:
http://svn.apache.org/viewvc/camel/trunk/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/FtpOperations.java?rev=1162790&r1=1162789&r2=1162790&view=diff
==============================================================================
---
camel/trunk/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/FtpOperations.java
(original)
+++
camel/trunk/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/FtpOperations.java
Mon Aug 29 13:14:19 2011
@@ -507,7 +507,7 @@ public class FtpOperations implements Re
public boolean existsFile(String name) throws
GenericFileOperationFailedException {
log.trace("existsFile({})", name);
- if (endpoint.isFastExist()) {
+ if (endpoint.isFastExistsCheck()) {
return fastExistsFile(name);
}
// check whether a file already exists
Modified:
camel/trunk/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/RemoteFileEndpoint.java
URL:
http://svn.apache.org/viewvc/camel/trunk/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/RemoteFileEndpoint.java?rev=1162790&r1=1162789&r2=1162790&view=diff
==============================================================================
---
camel/trunk/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/RemoteFileEndpoint.java
(original)
+++
camel/trunk/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/RemoteFileEndpoint.java
Mon Aug 29 13:14:19 2011
@@ -33,7 +33,7 @@ public abstract class RemoteFileEndpoint
private int maximumReconnectAttempts = 3;
private long reconnectDelay = 1000;
private boolean disconnect;
- private boolean fastExist;
+ private boolean fastExistsCheck;
public RemoteFileEndpoint() {
// no args constructor for spring bean endpoint configuration
@@ -172,12 +172,12 @@ public abstract class RemoteFileEndpoint
this.disconnect = disconnect;
}
- public boolean isFastExist() {
- return fastExist;
+ public boolean isFastExistsCheck() {
+ return fastExistsCheck;
}
- public void setFastExist(boolean fastExist) {
- this.fastExist = fastExist;
+ public void setFastExistsCheck(boolean fastExistsCheck) {
+ this.fastExistsCheck = fastExistsCheck;
}
}
Modified:
camel/trunk/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/SftpOperations.java
URL:
http://svn.apache.org/viewvc/camel/trunk/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/SftpOperations.java?rev=1162790&r1=1162789&r2=1162790&view=diff
==============================================================================
---
camel/trunk/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/SftpOperations.java
(original)
+++
camel/trunk/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/SftpOperations.java
Mon Aug 29 13:14:19 2011
@@ -678,7 +678,7 @@ public class SftpOperations implements R
public boolean existsFile(String name) throws
GenericFileOperationFailedException {
LOG.trace("existsFile({})", name);
- if (endpoint.isFastExist()) {
+ if (endpoint.isFastExistsCheck()) {
return fastExistsFile(name);
}
// check whether a file already exists
Modified:
camel/trunk/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/FtpProducerFileFastExistFailTest.java
URL:
http://svn.apache.org/viewvc/camel/trunk/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/FtpProducerFileFastExistFailTest.java?rev=1162790&r1=1162789&r2=1162790&view=diff
==============================================================================
---
camel/trunk/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/FtpProducerFileFastExistFailTest.java
(original)
+++
camel/trunk/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/FtpProducerFileFastExistFailTest.java
Mon Aug 29 13:14:19 2011
@@ -30,7 +30,7 @@ import org.junit.Test;
public class FtpProducerFileFastExistFailTest extends
FtpProducerFileExistFailTest {
private String getFtpUrl() {
- return "ftp://admin@localhost:" + getPort() +
"/exist?fastExist=true&password=admin&delay=2000&noop=true&fileExist=Fail";
+ return "ftp://admin@localhost:" + getPort() +
"/exist?fastExistsCheck=true&password=admin&delay=2000&noop=true&fileExist=Fail";
}
}
\ No newline at end of file