public class UFTPServer extends Object implements Runnable
ServerThread
is started, which waits for incoming client requests.
At the same time, the server listens on a command-socket, waiting for
UFTPTransferRequest
requests. Client requests are linked to jobs,
i.e. only clients announced via a Job are accepted. Modifier and Type | Class and Description |
---|---|
class |
UFTPServer.JobConnectionWorker |
Modifier and Type | Field and Description |
---|---|
static int |
BACKLOG
Backlog for the server sockets
|
static int |
CMDSOCKERR |
static int |
LISTENSOCKERR |
static int |
SYNERR
Error codes
|
static int |
THREADERR |
Constructor and Description |
---|
UFTPServer(InetAddress host,
int jobPort,
InetAddress host2,
int srvPort2) |
UFTPServer(InetAddress cmdip,
int cmdport,
InetAddress srvip,
int srvport,
String advertiseAddress,
PortManager portManager) |
Modifier and Type | Method and Description |
---|---|
static org.apache.commons.cli.Options |
createOptions() |
String |
getServerInfo() |
int |
getTimeout() |
static String |
getVersion() |
static void |
main(String[] args)
starts a server reading params from commandline args
|
static void |
printHeader() |
static void |
printUsage(org.apache.commons.cli.Options options) |
void |
run() |
void |
setTimeout(int timeout) |
void |
stop()
stops the server.
|
public static final int SYNERR
public static final int LISTENSOCKERR
public static final int THREADERR
public static final int CMDSOCKERR
public static final int BACKLOG
public UFTPServer(InetAddress cmdip, int cmdport, InetAddress srvip, int srvport, String advertiseAddress, PortManager portManager) throws IOException
IOException
public UFTPServer(InetAddress host, int jobPort, InetAddress host2, int srvPort2) throws IOException
host
- jobPort
- host2
- srvPort2
- IOException
public int getTimeout()
public void setTimeout(int timeout)
public void stop()
public static void main(String[] args)
public static org.apache.commons.cli.Options createOptions()
public static String getVersion()
public static void printHeader()
public static void printUsage(org.apache.commons.cli.Options options)
public String getServerInfo()
Copyright © 2010–2016 UNICORE. All rights reserved.