|
|
@ -189,28 +189,28 @@ public class HourlyJobThread implements Runnable { |
|
|
|
|
|
|
|
|
|
|
|
Logger.info("Hourly job is now running."); |
|
|
|
Logger.info("Hourly job is now running."); |
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
//try {
|
|
|
|
|
|
|
|
|
|
|
|
// Use the same hotZone this hour up and until
|
|
|
|
// Use the same hotZone this hour up and until
|
|
|
|
// the HotZone_Duration from the ConfigManager
|
|
|
|
// the HotZone_Duration from the ConfigManager
|
|
|
|
|
|
|
|
|
|
|
|
if (ZoneManager.hotZone == null) |
|
|
|
//if (ZoneManager.hotZone == null)
|
|
|
|
ZoneManager.generateAndSetRandomHotzone(); |
|
|
|
// ZoneManager.generateAndSetRandomHotzone();
|
|
|
|
else |
|
|
|
//else
|
|
|
|
ZoneManager.hotZoneCycle = ZoneManager.hotZoneCycle + 1; |
|
|
|
// ZoneManager.hotZoneCycle = ZoneManager.hotZoneCycle + 1;
|
|
|
|
|
|
|
|
|
|
|
|
if (ZoneManager.hotZoneCycle > Integer.parseInt(ConfigManager.MB_HOTZONE_DURATION.getValue())) |
|
|
|
//if (ZoneManager.hotZoneCycle > Integer.parseInt(ConfigManager.MB_HOTZONE_DURATION.getValue()))
|
|
|
|
ZoneManager.generateAndSetRandomHotzone(); |
|
|
|
// ZoneManager.generateAndSetRandomHotzone();
|
|
|
|
|
|
|
|
|
|
|
|
if (ZoneManager.hotZone == null) { |
|
|
|
//if (ZoneManager.hotZone == null) {
|
|
|
|
Logger.error("Null HotZone returned from ZoneManager"); |
|
|
|
// Logger.error("Null HotZone returned from ZoneManager");
|
|
|
|
} else { |
|
|
|
//} else {
|
|
|
|
Logger.info("HotZone switched to: " + ZoneManager.hotZone.getName()); |
|
|
|
// Logger.info("HotZone switched to: " + ZoneManager.hotZone.getName());
|
|
|
|
} |
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
|
|
} catch (Exception e) { |
|
|
|
//} catch (Exception e) {
|
|
|
|
Logger.error(e.toString()); |
|
|
|
// Logger.error(e.toString());
|
|
|
|
} |
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
|
|
// Open or Close mines for the current mine window.
|
|
|
|
// Open or Close mines for the current mine window.
|
|
|
|
|
|
|
|
|
|
|
|