summaryrefslogtreecommitdiff
path: root/java/src/SuspendNode.java
blob: a34ae457e802a900a62341b77cd994e1514de714 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*************************************************
 *
 * = PACKAGE
 *    JACE.ServiceConfigurator
 *
 * = FILENAME
 *    SuspendNode.java
 *
 * Used when a service is specified to be suspended based on a line
 * in a service configurator file.  The actual implementation of the
 * service being suspended does the work.
 *
 *@author Everett Anderson
 *
 *************************************************/
package JACE.ServiceConfigurator;

import java.io.*;
import JACE.ServiceConfigurator.*;
import JACE.OS.*;
import java_cup.runtime.*;

class SuspendNode extends ParseNode 
{
  public SuspendNode (int act_num)
  {
    super(act_num);
  }

  public void apply () 
  {
    ACE.DEBUG("Suspend Node apply: " + this.name_);

    if (JACE.ServiceConfigurator.ServiceConfig.suspend(this.name_) == -1)
      ACE.ERROR("Error suspending " + this.name_);
  }
};