KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > genimen > djeneric > test > StopHypersonic


1 /*
2  * Created on Mar 1, 2003
3  *
4  * To change this generated comment go to
5  * Window>Preferences>Java>Code Generation>Code Template
6  */

7 package com.genimen.djeneric.test;
8
9 import org.hsqldb.util.ShutdownServer;
10
11 import com.genimen.djeneric.util.DjLogger;
12
13 /**
14  * @author Wido
15  */

16 public class StopHypersonic
17 {
18
19   public static void main(String JavaDoc args[])
20   {
21
22     System.out.println("About to shut down Hypersonic");
23     try
24     {
25       // Give Hypersonic some rest before we shut it down;
26
// (It seams to need that to avoid exceptions when closing down)
27
Thread.sleep(2000);
28     }
29     catch (InterruptedException JavaDoc e)
30     {
31       DjLogger.log(e);
32     }
33     ShutdownServer.main(new String JavaDoc[]{"-user", "sa", "-password", "", "-port", StartHypersonic.port, "-shutdownarg",
34         "COMPACT"});
35   }
36
37 }
Popular Tags