@Override public void destroy() { log.debug("\n" + getClass().getName() + " destroy"); if (statusTracker != null) statusTracker.removeStatus(moduleName); statusTracker = null; }
@Override public void start(Node node) throws Exception { synchronized (this) { statusTracker = node.getStatusTracker(); statusTracker.setStatus(moduleName, Status.Warn); NodeConfig nodeConfig = (NodeConfig) node.getConfig(); nodeConfig.executor.submit(new WaveformStartTask(node)); } }
@Override public void stop(Node node) throws Exception { synchronized (this) { log.debug("\n" + getClass().getName() + " stop"); if (waveformProviders != null) { for (int i = 0; i < waveformProviders.length; i++) { if (waveformProviders[i] != null) waveformProviders[i].close(); } } if (waveformObjects != null) { for (int i = 0; i < waveformObjects.length; i++) { if (waveformObjects[i] != null) waveformObjects[i].destroy(); } } if (statusTracker != null) statusTracker.setStatus(moduleName, Status.Warn); } }