public class TestSftpConfiguration extends SftpConfiguration
DATE_TIME_FORMAT| Constructor and Description |
|---|
TestSftpConfiguration(String hostIpOrNameParameter,
Integer portParameter,
String userParameter,
String passParameter,
Integer connectionRetrySleepParameter,
Integer connectionRetriesParameter,
Integer connectionTimeoutParameter,
String strictHostKeyCheckingParameter,
String privateKeyPathParameter,
Pattern fileNamePattern,
String pathOutParameter,
LocalTime startTimeParameter,
LocalTime endTimeParameter,
int priorityParameter,
String uploadFileStrategyConfig,
Integer maxTotalConnections,
Integer maxIdleConnections,
Integer minIdleConnections,
boolean hystrixEnabled)
Initializes the
TestSftpConfiguration with the given parameters. |
| Modifier and Type | Method and Description |
|---|---|
LocalTime |
getEndTime() |
Pattern |
getFileNamePattern() |
String |
getHost() |
Integer |
getMaxIdleConnections()
if > 0 then pooling is enabled
|
Integer |
getMaxNumberOfConnections()
if > 0 then pooling is enabled
|
Integer |
getMinIdleConnections() |
String |
getPassword() |
String |
getPath() |
Integer |
getPort() |
int |
getPriority() |
String |
getPrivateKeyPath() |
Integer |
getRetries() |
Integer |
getRetrySleep() |
LocalTime |
getStartTime() |
String |
getStrictHostKeySetting() |
Integer |
getTimeout() |
UploadFileStrategy |
getUploadFileStrategy()
return uploadFileStrategy, e.g.
|
String |
getUsername() |
boolean |
isHystrixEnabled() |
equals, hashCode, toStringpublic TestSftpConfiguration(String hostIpOrNameParameter, Integer portParameter, String userParameter, String passParameter, Integer connectionRetrySleepParameter, Integer connectionRetriesParameter, Integer connectionTimeoutParameter, String strictHostKeyCheckingParameter, String privateKeyPathParameter, Pattern fileNamePattern, String pathOutParameter, LocalTime startTimeParameter, LocalTime endTimeParameter, int priorityParameter, String uploadFileStrategyConfig, Integer maxTotalConnections, Integer maxIdleConnections, Integer minIdleConnections, boolean hystrixEnabled)
TestSftpConfiguration with the given parameters.hostIpOrNameParameter - address of the host (example: localhost)portParameter - port of the host(example: 22)userParameter - userName for connection (example: testuser)passParameter - password for connection (example: abc123)connectionRetrySleepParameter - time to sleep between connection retriesconnectionRetriesParameter - how many retries if connection failsconnectionTimeoutParameter - timeout of the connectionstrictHostKeyCheckingParameter - use strict host keyprivateKeyPathParameter - path and file with private keyfileNamePattern - pattern to filter files bypathOutParameter - default destination path for uploading filesstartTimeParameter - connector start-time on a daily base, leave empty or set equal to endtime for 24/7 activationendTimeParameter - connector end-time on a daily base, leave empty or set equal to endtime for 24/7 activationpriorityParameter - custom priority in case of using multiple TestSftpConfigurationsuploadFileStrategyConfig - configuration Value of upload File StrategymaxTotalConnections - the maximum number of parallel sftp-connections.maxIdleConnections - the maximum number of not used, but not disconnected sftp-connectionsminIdleConnections - the minimum number of sftp-connections in connection-pool, that should be openedhystrixEnabled - public Integer getMaxIdleConnections()
SftpConfigurationgetMaxIdleConnections in class SftpConfigurationpublic Integer getMaxNumberOfConnections()
SftpConfigurationgetMaxNumberOfConnections in class SftpConfigurationpublic Integer getMinIdleConnections()
getMinIdleConnections in class SftpConfigurationpublic LocalTime getStartTime()
getStartTime in class SftpConfigurationpublic LocalTime getEndTime()
getEndTime in class SftpConfigurationpublic int getPriority()
getPriority in class SftpConfigurationpublic String getHost()
getHost in class SftpConfigurationpublic Integer getPort()
getPort in class SftpConfigurationpublic String getPath()
getPath in class SftpConfigurationpublic String getUsername()
getUsername in class SftpConfigurationpublic String getPassword()
getPassword in class SftpConfigurationpublic Integer getRetrySleep()
getRetrySleep in class SftpConfigurationpublic Integer getRetries()
getRetries in class SftpConfigurationpublic Integer getTimeout()
getTimeout in class SftpConfigurationpublic String getStrictHostKeySetting()
getStrictHostKeySetting in class SftpConfigurationpublic String getPrivateKeyPath()
getPrivateKeyPath in class SftpConfigurationpublic Pattern getFileNamePattern()
getFileNamePattern in class SftpConfigurationpublic UploadFileStrategy getUploadFileStrategy()
SftpConfigurationgetUploadFileStrategy in class SftpConfigurationUploadFileStrategypublic boolean isHystrixEnabled()
isHystrixEnabled in class SftpConfigurationCopyright © 2017–2020. All rights reserved.