
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 int |
BUFFERSIZEDEFAULT
Default size for buffers (NIO)
|
static long |
RETRYINMS
Time elapse for retry in ms
|
static int |
RETRYNB
Number of retry before error
|
static long |
WAITFORNETOP
Time elapse for WRITE OR CLOSE WAIT elaps in ms
|
| 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
|
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,
boolean active,
boolean remove)
Return and remove the FtpSession
|
FtpGlobalTrafficShapingHandler |
getGlobalTrafficShapingHandler() |
int |
getNbBindedPassive() |
int |
getNumberSessions() |
ExecutorService |
getWorker() |
boolean |
hasFtpSession(InetAddress ipOnly,
InetSocketAddress fullIp)
Test if the couple of addresses is already in the context
|
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 static final long WAITFORNETOP
public static final int BUFFERSIZEDEFAULT
public FtpInternalConfiguration(FtpConfiguration configuration)
configuration - public void serverStartup()
throws FtpNoConnectionException
FtpNoConnectionExceptionpublic ExecutorService getWorker()
public void setNewFtpSession(InetAddress ipOnly, InetSocketAddress fullIp, FtpSession session)
ipOnly - fullIp - session - public FtpSession getFtpSession(io.netty.channel.Channel channel, boolean active, boolean remove)
channel - active - public void delFtpSession(InetAddress ipOnly, InetSocketAddress fullIp)
ipOnly - fullIp - public boolean hasFtpSession(InetAddress ipOnly, InetSocketAddress fullIp)
ipOnly - fullIp - public int getNumberSessions()
public void bindPassive(InetSocketAddress address, boolean ssl) throws Reply425Exception
address - ssl - Reply425Exception - in case the channel cannot be openedpublic void unbindPassive(InetSocketAddress address)
address - public int getNbBindedPassive()
public io.netty.util.concurrent.EventExecutorGroup getExecutor()
public io.netty.util.concurrent.EventExecutorGroup getDataExecutor()
public io.netty.bootstrap.Bootstrap getActiveBootstrap(boolean ssl)
ssl - public io.netty.channel.group.ChannelGroup getCommandChannelGroup()
public io.netty.channel.group.ChannelGroup getDataChannelGroup()
public FtpGlobalTrafficShapingHandler getGlobalTrafficShapingHandler()
public io.netty.handler.traffic.ChannelTrafficShapingHandler newChannelTrafficShapingHandler()
public void releaseResources()
public boolean isAcceptAuthProt()
public boolean isUsingNativeSsl()
public void setUsingNativeSsl(boolean usingNativeSsl)
usingNativeSsl - the usingNativeSsl to setpublic void setAcceptAuthProt(boolean acceptAuthProt)
acceptAuthProt - the acceptAuthProt to setCopyright © 2009–2020 Waarp. All rights reserved.