private void run() {
        try {
            // Sleep some time before first maintenance, unit test depend on files not being removed immediately
            Thread.sleep(1000);
            while (true) {
                maintenance();
                waitForTrigger(2000);
            }
        } catch (Exception e) {
            // just exit thread on exception, nothing is safe afterwards
            System.err.println("Fatal exception in FilesArchived-maintainer thread: "+e);
        }
    }
File instance representing root directory of archive
logserver/src/main/java/com/yahoo/logserver/handlers/archive/FilesArchived.java