|
Lightweight Bartering Grid | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectlbg.protocol.data.EmbeddedFTPServer
public class EmbeddedFTPServer
An FTP server with minimal functionnalities. Its main purpose is to be easily used (i.e. not too much hassle).
| Constructor Summary | |
|---|---|
EmbeddedFTPServer(java.lang.String hostname,
java.lang.String sharedDirectory)
|
|
| Method Summary | |
|---|---|
void |
forceNewUser()
Sets new user login and password for FTP Server. The server needs to be restarted for this change to take effect. |
static void |
main(java.lang.String[] argv)
|
void |
setConfig(int port)
Sets the FTP server configuration. If a server is already running, it will need to be restarted for the changes to take effect. |
void |
setConfig(int port,
java.lang.String user,
java.lang.String password)
Sets the FTP server configuration. If a server is already running, it will need to be restarted for the changes to take effect. |
void |
start()
Load an FTP Server and start it. If a server is already running, do nothing. |
void |
stop()
Stops the associated FTP Server if it's running. All reference to it are lost, except the given properties if any. Does nothing if no server is active. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public EmbeddedFTPServer(java.lang.String hostname,
java.lang.String sharedDirectory)
| Method Detail |
|---|
public void setConfig(int port)
throws GridException
port - FTP Requests port
GridException - if the parameters are invalidstart(),
stop()
public void setConfig(int port,
java.lang.String user,
java.lang.String password)
throws GridException
port - FTP Requests portuser - User namepassword - Associated password
GridException - if the parameters are invalidstart(),
stop()
public void start()
throws GridException
GridExceptionsetConfig(int),
setConfig(int, String, String),
stop()public void stop()
setConfig(int),
setConfig(int, String, String)
public void forceNewUser()
throws GridException
GridException - If the former user couldn't be deleted.public java.lang.String toString()
toString in class java.lang.Object
public static void main(java.lang.String[] argv)
throws java.lang.Exception
java.lang.Exception
|
Lightweight Bartering Grid | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright (c) 2005-2008, Cyril Briquet, parts Xavier Dalem.