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

    if (statusTracker != null) statusTracker.removeStatus(moduleName);
    statusTracker = null;
  }
Exemplo n.º 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));
   }
 }
Exemplo n.º 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);
   }
 }