summaryrefslogtreecommitdiff
path: root/java/src/RemoveNode.java
diff options
context:
space:
mode:
authoreea1 <eea1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-11-12 03:30:27 +0000
committereea1 <eea1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-11-12 03:30:27 +0000
commitbcfd180be7842a3a9b9844ba89b4d2e7b2a13bdf (patch)
tree95494f406bf45e1b60683f400d508b8f9cd23751 /java/src/RemoveNode.java
parent85c09b7bf921d730f8e0203693425dd0c03e92da (diff)
downloadATCD-bcfd180be7842a3a9b9844ba89b4d2e7b2a13bdf.tar.gz
Checks in the new additions to the ServiceConfigurator, makes a few
small adjustments to the sockets, and removes a deprecation problem with a String in BlobReader. Acceptor's socket acceptor was changed to protected rather than private. The new files are broken down as follows: Files that are involved in loading a C++ service config file to load Java ACE network services: Svc_Conf.y parser.java sym.java Yylex.lex ClassNameGenerator.java Files that have to do with the overall restructuring of the Service Configurator such that suspend/resume/remove and the service repository are added: AddServiceObjectNode.java ClassReader.java Extracts the full class name from a .class file SuspendNode.java ResumeNode.java RemoveNode.java ServiceRecord.java Repository wrapper, makes calls via reflection ServiceObjectRecord.java Wrapper for ServiceObjects specifically
Diffstat (limited to 'java/src/RemoveNode.java')
-rw-r--r--java/src/RemoveNode.java38
1 files changed, 38 insertions, 0 deletions
diff --git a/java/src/RemoveNode.java b/java/src/RemoveNode.java
new file mode 100644
index 00000000000..d93a0911054
--- /dev/null
+++ b/java/src/RemoveNode.java
@@ -0,0 +1,38 @@
+/*************************************************
+ *
+ * = PACKAGE
+ * JACE.ServiceConfigurator
+ *
+ * = FILENAME
+ * RemoveNode.java
+ *
+ * Used when a service is specified to be removed based on a line
+ * in a service configurator file. Note: Make sure to call the
+ * prepareToReload method in ServiceConfig before reloading the
+ * service that is being removed.
+ *
+ *@author Everett Anderson
+ *
+ *************************************************/
+package JACE.ServiceConfigurator;
+
+import java.io.*;
+import JACE.ServiceConfigurator.*;
+import JACE.OS.*;
+import java_cup.runtime.*;
+
+class RemoveNode extends ParseNode
+{
+ public RemoveNode (int act_num)
+ {
+ super(act_num);
+ }
+
+ public void apply ()
+ {
+ ACE.DEBUG("RemoveNode apply");
+
+ if (JACE.ServiceConfigurator.ServiceConfig.remove(this.name_) == -1)
+ ACE.ERROR("Error removing " + this.name_);
+ }
+};