summaryrefslogtreecommitdiff
path: root/src/main/java/com/c2kernel/process/StandardClient.java
blob: 4fa303661925def360ac1a51e3de31538f00b0de (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
/**************************************************************************
 * StandardClient
 *
 * $Revision: 1.7 $
 * $Date: 2003/04/25 16:17:12 $
 *
 * Copyright (C) 2001 CERN - European Organization for Nuclear Research
 * All rights reserved.
 **************************************************************************/

package com.c2kernel.process;


abstract public class StandardClient extends AbstractMain
{	

	static public void main(String[] args) throws Exception {
		Gateway.init(readC2KArgs(args));
		//AgentProxy user = Gateway.connect("username", "password");
	}
	
	static public void close() {
		Gateway.close();
		// allow waiting threads time to quit
        try {
            Thread.sleep(2000);
        } catch (InterruptedException e) {
        }
        System.exit(0);
	}

}