|
|
|
@ -73,6 +73,11 @@ public class ServerManagementUDP extends ServerManagement {
|
|
|
|
|
*/
|
|
|
|
|
public void run() {
|
|
|
|
|
logger.writeUDP("Server sucessfully started", LogLevel.Info);
|
|
|
|
|
Runtime.getRuntime().addShutdownHook(new Thread() {
|
|
|
|
|
public void run() {
|
|
|
|
|
sendUnregisterRequest();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
fileListWatcher = (FileWatcher)new FileWatcherUDP(logger, 10000, server, tracker, baseDirectory); // checking every 10 seconds
|
|
|
|
|
Thread flwt = new Thread(fileListWatcher);
|
|
|
|
|
flwt.start();
|
|
|
|
|