public void run() {
if (m_shutdown) {
throw processException("console can not run because it's shutdowned");
}
m_container.start();
ConsoleCommunication communication = m_container.getComponent(ConsoleCommunication.class);
// Need to request components, or they won't be instantiated.
m_container.getComponent(WireMessageDispatch.class);
m_container.getComponent(WireFileDistribution.class);
m_container.getComponent(WireDistributedBarriers.class);
m_container.getComponent(Logger.class).info("console {} has been started", getConsoleInfo());
synchronized (m_eventSyncCondition) {
m_eventSyncCondition.notifyAll();
}
while (communication.processOneMessage()) {
// Process until communication is shut down.
noOp();
}
}