@FunctionalInterface
interface StartupBarrier {
/**
- * This blocking call, waits for the Web Server to be operational until either the Web Server is actually
- * operational, or the calling thread is interrupted.
+ * This blocking call, waits for a process (or anything) to be operational until either it is actually operational, or
+ * the calling thread is interrupted.
*
- * @return true if we detected WebServer is operational, false otherwise
+ * @return true if what's awaited for is operational, false otherwise
*/
boolean waitForOperational();
}
import org.sonar.process.ProcessId;
/**
- * Waits that web server is operational (started and datastores up-to-date)
+ * Waits for the web server to be operational (started and datastores up-to-date)
*/
class WebServerBarrier implements StartupBarrier {
private static final Logger LOG = Loggers.get(WebServerBarrier.class);