Javadoc fixes
[jabaws.git] / engine / compbio / engine / cluster / drmaa / _JobStatus.java
1 /* Copyright (c) 2009 Peter Troshin\r
2  *  \r
3  *  JAva Bioinformatics Analysis Web Services (JABAWS) @version: 1.0     \r
4  * \r
5  *  This library is free software; you can redistribute it and/or modify it under the terms of the\r
6  *  Apache License version 2 as published by the Apache Software Foundation\r
7  * \r
8  *  This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without\r
9  *  even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the Apache \r
10  *  License for more details.\r
11  * \r
12  *  A copy of the license is in apache_license.txt. It is also available here:\r
13  * @see: http://www.apache.org/licenses/LICENSE-2.0.txt\r
14  * \r
15  * Any republication or derived work distributed in source code form\r
16  * must include this copyright and license notice.\r
17  */\r
18 package compbio.engine.cluster.drmaa;\r
19 \r
20 import org.ggf.drmaa.DrmaaException;\r
21 import org.ggf.drmaa.Session;\r
22 import org.ggf.drmaa.SessionFactory;\r
23 import org.ggf.drmaa.Version;\r
24 \r
25 class _JobStatus {\r
26 \r
27         public static void main(String[] args) {\r
28 \r
29                 SessionFactory factory = SessionFactory.getFactory();\r
30                 Session session = factory.getSession();\r
31 \r
32                 try {\r
33                         System.out.println("Supported contact strings: \""\r
34                                         + session.getContact() + "\"");\r
35                         System.out.println("Supported DRM systems: \""\r
36                                         + session.getDrmSystem() + "\"");\r
37                         System.out.println("Supported DRMAA implementations: \""\r
38                                         + session.getDrmaaImplementation() + "\"");\r
39 \r
40                         session.init("");\r
41 \r
42                         System.out.println("Using contact strings: \""\r
43                                         + session.getContact() + "\"");\r
44                         System.out.println("Using DRM systems: \"" + session.getDrmSystem()\r
45                                         + "\"");\r
46                         System.out.println("Using DRMAA implementations: \""\r
47                                         + session.getDrmaaImplementation() + "\"");\r
48 \r
49                         Version version = session.getVersion();\r
50 \r
51                         System.out.println("Using DRMAA version " + version.toString());\r
52 \r
53                         session.exit();\r
54                 } catch (DrmaaException e) {\r
55                         System.out.println("Error: " + e.getMessage());\r
56                 }\r
57 \r
58         }\r
59 }\r