Class FtpEmbeddedInfraService
java.lang.Object
org.apache.camel.test.infra.common.services.AbstractService
org.apache.camel.test.infra.ftp.services.embedded.FtpEmbeddedInfraService
- All Implemented Interfaces:
AutoCloseable,org.apache.camel.test.infra.common.services.InfrastructureService,FtpInfraService
- Direct Known Subclasses:
FtpsEmbeddedInfraService
@InfraService(service=FtpInfraService.class,
description="Embedded FTP Server",
serviceAlias="ftp")
public class FtpEmbeddedInfraService
extends org.apache.camel.test.infra.common.services.AbstractService
implements FtpInfraService
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected static final Stringprotected EmbeddedConfigurationBuilderprotected org.apache.ftpserver.FtpServerprotected intprotected Pathprotected String -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedFtpEmbeddedInfraService(EmbeddedConfigurationBuilder embeddedConfigurationTemplate) -
Method Summary
Modifier and TypeMethodDescriptionintprotected org.apache.ftpserver.FtpServerFactorycreateFtpServerFactory(EmbeddedConfiguration embeddedConfiguration) protected voidcreateUser(org.apache.ftpserver.ftplet.UserManager userMgr, String name, String password, Path home, boolean writePermission) voidintgetPort()voidprotected voidregisterProperties(BiConsumer<String, String> store) voidresume()protected voidsetUp()protected voidtearDown()Methods inherited from class org.apache.camel.test.infra.common.services.AbstractService
initialize, shutdownMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.camel.test.infra.common.services.InfrastructureService
close, initialize, shutdown
-
Field Details
-
DEFAULT_LISTENER
- See Also:
-
ftpServer
protected org.apache.ftpserver.FtpServer ftpServer -
port
protected int port -
testDirectory
-
configurationTestDirectory
-
rootDir
-
embeddedConfigurationTemplate
-
-
Constructor Details
-
FtpEmbeddedInfraService
public FtpEmbeddedInfraService() -
FtpEmbeddedInfraService
-
-
Method Details
-
setUp
- Specified by:
setUpin classorg.apache.camel.test.infra.common.services.AbstractService- Throws:
Exception
-
createUser
-
createFtpServerFactory
protected org.apache.ftpserver.FtpServerFactory createFtpServerFactory(EmbeddedConfiguration embeddedConfiguration) -
tearDown
protected void tearDown()- Specified by:
tearDownin classorg.apache.camel.test.infra.common.services.AbstractService
-
disconnectAllSessions
public void disconnectAllSessions() -
registerProperties
- Specified by:
registerPropertiesin classorg.apache.camel.test.infra.common.services.AbstractService
-
getFtpRootDir
- Specified by:
getFtpRootDirin interfaceFtpInfraService
-
resume
public void resume() -
getPort
public int getPort()- Specified by:
getPortin interfaceFtpInfraService
-
countConnections
public int countConnections() -
ftpFile
-
registerProperties
public void registerProperties()- Specified by:
registerPropertiesin interfaceorg.apache.camel.test.infra.common.services.InfrastructureService
-