public class ClientFactory extends Object
Constructor and Description |
---|
ClientFactory() |
Modifier and Type | Method and Description |
---|---|
static void |
configureClient(AbstractUFTPClient client,
org.apache.commons.cli.CommandLine line,
org.apache.log4j.Logger logger)
configures the client using the number of connections, secret, encryption
key and buffer size from the commandline
|
static AbstractUFTPClient |
create(String[] args) |
static org.apache.commons.cli.Options |
createOptions()
helper to create commandline options understood by UFTP clients
|
static InetAddress[] |
getServers(org.apache.commons.cli.CommandLine line,
org.apache.log4j.Logger logger) |
static boolean |
isSend(org.apache.commons.cli.CommandLine line) |
static void |
printUsage(org.apache.commons.cli.Options options) |
public static AbstractUFTPClient create(String[] args) throws Exception
Exception
public static boolean isSend(org.apache.commons.cli.CommandLine line)
public static void configureClient(AbstractUFTPClient client, org.apache.commons.cli.CommandLine line, org.apache.log4j.Logger logger)
client
- - the UFTP clientline
- - the commandlinelogger
- public static InetAddress[] getServers(org.apache.commons.cli.CommandLine line, org.apache.log4j.Logger logger)
public static org.apache.commons.cli.Options createOptions()
public static void printUsage(org.apache.commons.cli.Options options)
Copyright © 2010–2016 UNICORE. All rights reserved.