diff options
Diffstat (limited to 'src/main/java/org/openslx/imagemaster/App.java')
-rw-r--r-- | src/main/java/org/openslx/imagemaster/App.java | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/main/java/org/openslx/imagemaster/App.java b/src/main/java/org/openslx/imagemaster/App.java index 8040d35..9a5fd15 100644 --- a/src/main/java/org/openslx/imagemaster/App.java +++ b/src/main/java/org/openslx/imagemaster/App.java @@ -4,6 +4,7 @@ import java.util.ArrayList; import java.util.List; import org.apache.log4j.Logger; +import org.openslx.imagemaster.server.MasterFtpServer; import org.openslx.imagemaster.thrift.server.BinaryListener; /** @@ -19,13 +20,20 @@ public class App public static void main( String[] args ) { // Init logging - log.info( "Starting Application" ); + log.info( "Starting Application" ); // Create binary listener Thread t; t = new Thread(new BinaryListener(), "BinaryListener"); servers.add(t); t.start(); + + // Create Ftp Server + Thread f; + f = new Thread(new MasterFtpServer(2221, "admin", "admin", "/home/nils/ftp"), "FtpServer"); + servers.add(f); + f.start(); + // Run more servers // ... // Wait for all servers to die |