|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgoldengate.ftp.core.utils.FtpChannelUtils
public class FtpChannelUtils
Some useful functions related to Channel of Netty
Constructor Summary | |
---|---|
FtpChannelUtils(FtpConfiguration configuration)
|
Method Summary | |
---|---|
static void |
addCommandChannel(org.jboss.netty.channel.Channel channel,
FtpConfiguration configuration)
Add a command channel into the list |
static void |
addDataChannel(org.jboss.netty.channel.Channel channel,
FtpConfiguration configuration)
Add a data channel into the list |
static String |
get2428Address(InetSocketAddress address)
Return the (RFC2428) Address in the format compatible with FTP (RFC2428) |
static InetSocketAddress |
get2428InetSocketAddress(String arg)
Get the (RFC2428) InetSocketAddress corresponding to the FTP format of address (RFC2428) |
static String |
getAddress(InetSocketAddress address)
Return the Address in the format compatible with FTP argument |
static InetSocketAddress |
getInetSocketAddress(String arg)
Get the InetSocketAddress corresponding to the FTP format of address |
static InetAddress |
getLocalInetAddress(org.jboss.netty.channel.Channel channel)
Get the Local InetAddress |
static InetSocketAddress |
getLocalInetSocketAddress(org.jboss.netty.channel.Channel channel)
Get the Local InetSocketAddress |
static InetAddress |
getRemoteInetAddress(org.jboss.netty.channel.Channel channel)
Get the Remote InetAddress |
static InetSocketAddress |
getRemoteInetSocketAddress(org.jboss.netty.channel.Channel channel)
Get the Remote InetSocketAddress |
static int |
nbCommandChannels(FtpConfiguration configuration)
Return the current number of command connections |
static int |
nbDataChannels(FtpConfiguration configuration)
Return the current number of data connections |
void |
run()
|
static void |
stopLogger()
|
static void |
teminateServer(FtpConfiguration configuration)
This function is the top function to be called when the server is to be shutdown. |
static int |
validCommandChannels(FtpConfiguration configuration)
Return the number of still positive command connections |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FtpChannelUtils(FtpConfiguration configuration)
Method Detail |
---|
public static InetAddress getRemoteInetAddress(org.jboss.netty.channel.Channel channel)
channel
-
public static InetAddress getLocalInetAddress(org.jboss.netty.channel.Channel channel)
channel
-
public static InetSocketAddress getRemoteInetSocketAddress(org.jboss.netty.channel.Channel channel)
channel
-
public static InetSocketAddress getLocalInetSocketAddress(org.jboss.netty.channel.Channel channel)
channel
-
public static InetSocketAddress getInetSocketAddress(String arg)
arg
-
public static String getAddress(InetSocketAddress address)
address
-
public static InetSocketAddress get2428InetSocketAddress(String arg)
arg
-
public static String get2428Address(InetSocketAddress address)
address
-
public static int nbCommandChannels(FtpConfiguration configuration)
configuration
-
public static int nbDataChannels(FtpConfiguration configuration)
configuration
-
public static int validCommandChannels(FtpConfiguration configuration)
configuration
-
public static void teminateServer(FtpConfiguration configuration)
configuration
- public static void addCommandChannel(org.jboss.netty.channel.Channel channel, FtpConfiguration configuration)
channel
- configuration
- public static void addDataChannel(org.jboss.netty.channel.Channel channel, FtpConfiguration configuration)
channel
- configuration
- public void run()
run
in interface Runnable
public static void stopLogger()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |