public class FtpInternalConfiguration extends Object
Modifier and Type | Class and Description |
---|---|
static class |
FtpInternalConfiguration.BindAddress
org.waarp.ftp.core.config BindAddress
|
Modifier and Type | Field and Description |
---|---|
static long |
RETRYINMS
Time elapse for retry in ms
|
static int |
RETRYNB
Number of retry before error
|
Constructor and Description |
---|
FtpInternalConfiguration(FtpConfiguration configuration)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
bindPassive(InetSocketAddress address,
boolean ssl)
Try to add a Passive Channel listening to the specified local address
|
void |
delFtpSession(InetAddress ipOnly,
InetSocketAddress fullIp)
Remove the FtpSession
|
FtpSession |
findPassiveFtpSession(io.netty.channel.Channel channel) |
io.netty.bootstrap.Bootstrap |
getActiveBootstrap(boolean ssl) |
io.netty.channel.group.ChannelGroup |
getCommandChannelGroup() |
io.netty.channel.group.ChannelGroup |
getDataChannelGroup() |
io.netty.util.concurrent.EventExecutorGroup |
getDataExecutor()
Return the associated Executor for Data Event
|
io.netty.util.concurrent.EventExecutorGroup |
getExecutor()
Return the associated Executor for Command Event
|
FtpSession |
getFtpSession(io.netty.channel.Channel channel)
Return and remove the FtpSession
|
FtpGlobalTrafficShapingHandler |
getGlobalTrafficShapingHandler() |
int |
getNbBindedPassive() |
int |
getNumberSessions() |
ExecutorService |
getWorker() |
boolean |
isAcceptAuthProt() |
boolean |
isUsingNativeSsl() |
io.netty.handler.traffic.ChannelTrafficShapingHandler |
newChannelTrafficShapingHandler() |
void |
releaseResources() |
void |
serverStartup()
Startup the server
|
void |
setAcceptAuthProt(boolean acceptAuthProt) |
void |
setNewFtpSession(InetAddress ipOnly,
InetSocketAddress fullIp,
FtpSession session)
Add a session from a couple of addresses
|
void |
setUsingNativeSsl(boolean usingNativeSsl) |
void |
unbindPassive(InetSocketAddress address)
Try to unbind (closing the parent channel) the Passive Channel listening
to
the specified local address if
the last one.
|
public static final long RETRYINMS
public static final int RETRYNB
public FtpInternalConfiguration(FtpConfiguration configuration)
configuration
- public final void serverStartup() throws FtpNoConnectionException
FtpNoConnectionException
public final ExecutorService getWorker()
public final void setNewFtpSession(InetAddress ipOnly, InetSocketAddress fullIp, FtpSession session)
ipOnly
- fullIp
- session
- public final FtpSession getFtpSession(io.netty.channel.Channel channel)
channel
- public final void delFtpSession(InetAddress ipOnly, InetSocketAddress fullIp)
ipOnly
- fullIp
- public final int getNumberSessions()
public final FtpSession findPassiveFtpSession(io.netty.channel.Channel channel)
channel
- public final void bindPassive(InetSocketAddress address, boolean ssl) throws Reply425Exception
address
- ssl
- Reply425Exception
- in case the channel cannot be openedpublic final void unbindPassive(InetSocketAddress address)
address
- public final int getNbBindedPassive()
public final io.netty.util.concurrent.EventExecutorGroup getExecutor()
public final io.netty.util.concurrent.EventExecutorGroup getDataExecutor()
public final io.netty.bootstrap.Bootstrap getActiveBootstrap(boolean ssl)
ssl
- public final io.netty.channel.group.ChannelGroup getCommandChannelGroup()
public final io.netty.channel.group.ChannelGroup getDataChannelGroup()
public final FtpGlobalTrafficShapingHandler getGlobalTrafficShapingHandler()
public final io.netty.handler.traffic.ChannelTrafficShapingHandler newChannelTrafficShapingHandler()
public final void releaseResources()
public final boolean isAcceptAuthProt()
public final boolean isUsingNativeSsl()
public final void setUsingNativeSsl(boolean usingNativeSsl)
usingNativeSsl
- the usingNativeSsl to setpublic final void setAcceptAuthProt(boolean acceptAuthProt)
acceptAuthProt
- the acceptAuthProt to setCopyright © 2009–2022 Waarp. All rights reserved.