예제 #1
0
  @Override
  public void destroy() {
    log.debug("\n" + getClass().getName() + " destroy");

    if (statusTracker != null) statusTracker.removeStatus(moduleName);
    statusTracker = null;
  }
예제 #2
0
 @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));
   }
 }
예제 #3
0
 @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);
   }
 }