@Override
    public void run()
    {
        final FileTime now = FileTime.fromMillis( System.currentTimeMillis() );
        for (final ContextHandler.CoreContextHandler handler: this.server.getDescendants(ContextHandler.CoreContextHandler.class))
        {
            final File tempDirectory = handler.getTempDirectory();
            try
            {
                Log.debug( "Updating the last modified timestamp of content in Jetty's temporary storage in: {}", tempDirectory);
                Files.walk( tempDirectory.toPath() )
                    .forEach( f -> {
                        try
                        {
                            Log.trace( "Setting the last modified timestamp of file '{}' in Jetty's temporary storage to: {}", f, now);
                            Files.setLastModifiedTime( f, now );
                        }
                        catch ( IOException e )
                        {
                            Log.warn( "An exception occurred while trying to update the last modified timestamp of content in Jetty's temporary storage in: {}", f, e );
                        }
                    } );
            }
            catch ( IOException e )
            {
                Log.warn( "An exception occurred while trying to update the last modified timestamp of content in Jetty's temporary storage in: {}", tempDirectory, e );
            }
        }
    }
A task that, periodically, updates the 'last modified' date of all files in the Jetty 'tmp' directories. This
prevents operating systems from removing files that it thinks are unused.

@see <a href="https://igniterealtime.atlassian.net/browse/OF-1534">OF-1534</a>
@author Guus der Kinderen, guus.der.kinderen@gmail.com
xmppserver/src/main/java/org/jivesoftware/openfire/http/TempFileToucherTask.java