diff options
Diffstat (limited to 'java/tests/ServiceConfigurator')
-rw-r--r-- | java/tests/ServiceConfigurator/Makefile | 25 | ||||
-rw-r--r-- | java/tests/ServiceConfigurator/ServiceConfigurator.dsp | 81 | ||||
-rw-r--r-- | java/tests/ServiceConfigurator/TestService.java | 52 | ||||
-rw-r--r-- | java/tests/ServiceConfigurator/reloadTest.java | 64 | ||||
-rw-r--r-- | java/tests/ServiceConfigurator/suspendTest.java | 80 | ||||
-rw-r--r-- | java/tests/ServiceConfigurator/suspendTest1.conf | 1 | ||||
-rw-r--r-- | java/tests/ServiceConfigurator/suspendTest2.conf | 1 | ||||
-rw-r--r-- | java/tests/ServiceConfigurator/suspendTest3.conf | 1 | ||||
-rw-r--r-- | java/tests/ServiceConfigurator/svc.conf | 1 |
9 files changed, 0 insertions, 306 deletions
diff --git a/java/tests/ServiceConfigurator/Makefile b/java/tests/ServiceConfigurator/Makefile deleted file mode 100644 index b4e62f70997..00000000000 --- a/java/tests/ServiceConfigurator/Makefile +++ /dev/null @@ -1,25 +0,0 @@ -# Makefile - -.SUFFIXES: .java .class - -JACE_WRAPPER = ../.. -CLASSDIR = $(JACE_WRAPPER)/classes - -CLASSPATH := $(CLASSDIR):$(CLASSPATH) - -all: - javac -d ${JACE_WRAPPER}/classes $(files) -doc: - javadoc -d ${JACE_WRAPPER}/doc $(files) $(packages) - - -files = TestService.java \ - reloadTest.java \ - suspendTest.java - -packages = tests.Service_Configurator - -realclean: - find ${JACE_WRAPPER}/classes/tests/ServiceConfigurator -name '*.class' -print | xargs ${RM} - - diff --git a/java/tests/ServiceConfigurator/ServiceConfigurator.dsp b/java/tests/ServiceConfigurator/ServiceConfigurator.dsp deleted file mode 100644 index 02a511a336e..00000000000 --- a/java/tests/ServiceConfigurator/ServiceConfigurator.dsp +++ /dev/null @@ -1,81 +0,0 @@ -# Microsoft Developer Studio Project File - Name="ServiceConfigurator" - Package Owner=<4>
-# Microsoft Developer Studio Generated Build File, Format Version 5.00
-# ** DO NOT EDIT **
-
-# TARGTYPE "Java Virtual Machine Java Project" 0x0809
-
-CFG=ServiceConfigurator - Java Virtual Machine Debug
-!MESSAGE This is not a valid makefile. To build this project using NMAKE,
-!MESSAGE use the Export Makefile command and run
-!MESSAGE
-!MESSAGE NMAKE /f "ServiceConfigurator.mak".
-!MESSAGE
-!MESSAGE You can specify a configuration when running NMAKE
-!MESSAGE by defining the macro CFG on the command line. For example:
-!MESSAGE
-!MESSAGE NMAKE /f "ServiceConfigurator.mak"\
- CFG="ServiceConfigurator - Java Virtual Machine Debug"
-!MESSAGE
-!MESSAGE Possible choices for configuration are:
-!MESSAGE
-!MESSAGE "ServiceConfigurator - Java Virtual Machine Release" (based on\
- "Java Virtual Machine Java Project")
-!MESSAGE "ServiceConfigurator - Java Virtual Machine Debug" (based on\
- "Java Virtual Machine Java Project")
-!MESSAGE
-
-# Begin Project
-# PROP Scc_ProjName ""
-# PROP Scc_LocalPath ""
-JAVA=jvc.exe
-
-!IF "$(CFG)" == "ServiceConfigurator - Java Virtual Machine Release"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 0
-# PROP BASE Output_Dir ""
-# PROP BASE Intermediate_Dir ""
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 0
-# PROP Output_Dir "..\..\classes-r"
-# PROP Intermediate_Dir ""
-# PROP Target_Dir ""
-# ADD BASE JAVA /O
-# ADD JAVA /O
-
-!ELSEIF "$(CFG)" == "ServiceConfigurator - Java Virtual Machine Debug"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 1
-# PROP BASE Output_Dir ""
-# PROP BASE Intermediate_Dir ""
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 1
-# PROP Output_Dir "..\..\classes"
-# PROP Intermediate_Dir ""
-# PROP Target_Dir ""
-# ADD BASE JAVA /g
-# ADD JAVA /g
-
-!ENDIF
-
-# Begin Target
-
-# Name "ServiceConfigurator - Java Virtual Machine Release"
-# Name "ServiceConfigurator - Java Virtual Machine Debug"
-# Begin Source File
-
-SOURCE=.\reloadTest.java
-# End Source File
-# Begin Source File
-
-SOURCE=.\suspendTest.java
-# End Source File
-# Begin Source File
-
-SOURCE=.\TestService.java
-# End Source File
-# End Target
-# End Project
diff --git a/java/tests/ServiceConfigurator/TestService.java b/java/tests/ServiceConfigurator/TestService.java deleted file mode 100644 index 7b34c181c60..00000000000 --- a/java/tests/ServiceConfigurator/TestService.java +++ /dev/null @@ -1,52 +0,0 @@ -/************************************************* - * - * = PACKAGE - * tests.ServiceConfigurator - * - * = FILENAME - * TestService.java - * - *@author Prashant Jain - * - *************************************************/ -package tests.ServiceConfigurator; - -import JACE.ServiceConfigurator.*; -import JACE.OS.*; - -public class TestService extends ServiceObject -{ - public int init (String [] args) - { - System.out.println("TestService init with arguments: "); - - if (args != null) - for (int i = 0; i < args.length; i++) - ACE.DEBUG (args[i]); - - return 0; - } - - public int suspend() - { - System.out.println("TestService suspend ----"); - - return 0; - } - - public int resume() - { - System.out.println("TestService resume ----"); - - return 0; - } - - public int fini() - { - System.out.println("TestService remove ----"); - - return 0; - } - -} - diff --git a/java/tests/ServiceConfigurator/reloadTest.java b/java/tests/ServiceConfigurator/reloadTest.java deleted file mode 100644 index 3e8ac599841..00000000000 --- a/java/tests/ServiceConfigurator/reloadTest.java +++ /dev/null @@ -1,64 +0,0 @@ -/************************************************* - * - * = PACKAGE - * tests.ServiceConfigurator - * - * = FILENAME - * mainTest.java - * - *@author Prashant Jain, Everett Anderson - * - *************************************************/ -package tests.ServiceConfigurator; - -import JACE.ServiceConfigurator.*; -import JACE.OS.*; -import java.io.*; - -public class reloadTest -{ - - public static void main (String args []) - { - ServiceConfig daemon = new ServiceConfig (); - try - { - daemon.open (args); - Thread.sleep (10000); - - // ***** Note: reloading requires the user to remove the - // service and prepare for reload! - daemon.remove("TimeService"); - daemon.prepareForReload(); - - daemon.open (args); - } - catch (InterruptedException e) - { - ACE.ERROR (e); - } - catch (FileNotFoundException e) - { - ACE.ERROR (e); - } - catch (IOException e) - { - ACE.ERROR (e); - } - catch (ClassNotFoundException e) - { - ACE.ERROR (e + "foo"); - } - catch (IllegalAccessException e) - { - ACE.ERROR (e); - } - catch (InstantiationException e) - { - ACE.ERROR (e); - } - - System.err.println("End of reloadTest"); - } - -} diff --git a/java/tests/ServiceConfigurator/suspendTest.java b/java/tests/ServiceConfigurator/suspendTest.java deleted file mode 100644 index ab12d06f2f5..00000000000 --- a/java/tests/ServiceConfigurator/suspendTest.java +++ /dev/null @@ -1,80 +0,0 @@ -/************************************************* - * - * = PACKAGE - * tests.ServiceConfigurator - * - * = FILENAME - * mainTest.java - * - *@author Prashant Jain, Everett Anderson - * - *************************************************/ -package tests.ServiceConfigurator; - -import JACE.ServiceConfigurator.*; -import JACE.OS.*; -import java.io.*; - -public class suspendTest -{ - - public static void main (String args []) - { - ServiceConfig daemon = new ServiceConfig (); - ACE.enableDebugging(); - - try - { - String args1 = "-f suspendTest1.conf"; - String[] argv1 = OS.createStringArray(args1, " "); - - daemon.open (argv1); - - Thread.sleep (10000); - - - System.err.println("Suspending"); - String args2 = "-f suspendTest2.conf"; - String[] argv2 = OS.createStringArray(args2, " "); - - daemon.open (argv2); - - Thread.sleep (10000); - - System.err.println("Resuming"); - String args3 = "-f suspendTest3.conf"; - String[] argv3 = OS.createStringArray(args3, " "); - - daemon.open (argv3); - - Thread.sleep(10000); - } - catch (InterruptedException e) - { - ACE.ERROR (e); - } - catch (FileNotFoundException e) - { - ACE.ERROR (e); - } - catch (IOException e) - { - ACE.ERROR (e); - } - catch (ClassNotFoundException e) - { - ACE.ERROR (e + "foo"); - } - catch (IllegalAccessException e) - { - ACE.ERROR (e); - } - catch (InstantiationException e) - { - ACE.ERROR (e); - } - - System.err.println("End of suspendTest"); - } - -} diff --git a/java/tests/ServiceConfigurator/suspendTest1.conf b/java/tests/ServiceConfigurator/suspendTest1.conf deleted file mode 100644 index 983af3234c1..00000000000 --- a/java/tests/ServiceConfigurator/suspendTest1.conf +++ /dev/null @@ -1 +0,0 @@ -load TestService tests.ServiceConfigurator.TestService ServiceObject "-p 10002" diff --git a/java/tests/ServiceConfigurator/suspendTest2.conf b/java/tests/ServiceConfigurator/suspendTest2.conf deleted file mode 100644 index 5cd6cd0fc77..00000000000 --- a/java/tests/ServiceConfigurator/suspendTest2.conf +++ /dev/null @@ -1 +0,0 @@ -suspend TestService diff --git a/java/tests/ServiceConfigurator/suspendTest3.conf b/java/tests/ServiceConfigurator/suspendTest3.conf deleted file mode 100644 index 71250c3acd7..00000000000 --- a/java/tests/ServiceConfigurator/suspendTest3.conf +++ /dev/null @@ -1 +0,0 @@ -resume TestService diff --git a/java/tests/ServiceConfigurator/svc.conf b/java/tests/ServiceConfigurator/svc.conf deleted file mode 100644 index 983af3234c1..00000000000 --- a/java/tests/ServiceConfigurator/svc.conf +++ /dev/null @@ -1 +0,0 @@ -load TestService tests.ServiceConfigurator.TestService ServiceObject "-p 10002" |