public void runNow( boolean blockUntilDone )
    {
        final Future<?> future = executor.submit( new MonitorTask() );
        if ( blockUntilDone )
        {
            try
            {
                future.get();
            }
            catch ( Exception e )
            {
                Log.warn( "An exception occurred while waiting for a check of the plugin directory to complete.", e );
            }
        }
    }
Immediately run a check of the plugin directory.
@param blockUntilDone {code true} to wait until the check is complete, otherwise {@code false}
xmppserver/src/main/java/org/jivesoftware/openfire/container/PluginMonitor.java