01: /*
02: * Copyright 2004-2008 H2 Group. Licensed under the H2 License, Version 1.0
03: * (license2)
04: * Initial Developer: H2 Group
05: */
06: package org.h2.samples;
07:
08: /**
09: * This very simple sample application stops a H2 TCP server
10: * if it is running.
11: */
12: public class ShutdownServer {
13:
14: public static void main(String[] args) throws Exception {
15: org.h2.tools.Server.shutdownTcpServer("tcp://localhost:9094",
16: "", false);
17: }
18: }
|