Restore disabling of main frame GUI in auto ingest node mode

This commit is contained in:
Richard Cordovano 2017-03-22 16:34:52 -04:00
parent 84eba42cd0
commit 52ad984bc0

View File

@ -200,6 +200,12 @@ public final class AutoIngestManager extends Observable implements PropertyChang
casesToManifests = new HashMap<>(); casesToManifests = new HashMap<>();
pendingJobs = new ArrayList<>(); pendingJobs = new ArrayList<>();
completedJobs = new ArrayList<>(); completedJobs = new ArrayList<>();
try {
RuntimeProperties.setRunningWithGUI(false);
SYS_LOGGER.log(Level.INFO, "Set running with desktop GUI runtime property to false");
} catch (RuntimeProperties.RuntimePropertiesException ex) {
SYS_LOGGER.log(Level.SEVERE, "Failed to set running with desktop GUI runtime property to false", ex);
}
} }
/** /**
@ -229,13 +235,6 @@ public final class AutoIngestManager extends Observable implements PropertyChang
jobProcessingTaskFuture = jobProcessingExecutor.submit(jobProcessingTask); jobProcessingTaskFuture = jobProcessingExecutor.submit(jobProcessingTask);
jobStatusPublishingExecutor.scheduleAtFixedRate(new PeriodicJobStatusEventTask(), JOB_STATUS_EVENT_INTERVAL_SECONDS, JOB_STATUS_EVENT_INTERVAL_SECONDS, TimeUnit.SECONDS); jobStatusPublishingExecutor.scheduleAtFixedRate(new PeriodicJobStatusEventTask(), JOB_STATUS_EVENT_INTERVAL_SECONDS, JOB_STATUS_EVENT_INTERVAL_SECONDS, TimeUnit.SECONDS);
eventPublisher.addSubscriber(EVENT_LIST, instance); eventPublisher.addSubscriber(EVENT_LIST, instance);
try {
RuntimeProperties.setRunningWithGUI(false);
SYS_LOGGER.log(Level.INFO, "Set running with desktop GUI runtime property to false");
} catch (RuntimeProperties.RuntimePropertiesException ex) {
SYS_LOGGER.log(Level.SEVERE, "Failed to set running with desktop GUI runtime property to false", ex);
throw new AutoIngestManagerStartupException("Failed to set running with desktop GUI runtime property to false", ex);
}
state = State.RUNNING; state = State.RUNNING;
errorState = ErrorState.NONE; errorState = ErrorState.NONE;
} }