1 /* Copyright (c) 2009 Peter Troshin
\r
3 * JAva Bioinformatics Analysis Web Services (JABAWS) @version: 1.0
\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
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
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
15 * Any republication or derived work distributed in source code form
\r
16 * must include this copyright and license notice.
\r
18 package compbio.engine.cluster.drmaa;
\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
27 public static void main(String[] args) {
\r
29 SessionFactory factory = SessionFactory.getFactory();
\r
30 Session session = factory.getSession();
\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
42 System.out.println("Using contact strings: \""
\r
43 + session.getContact() + "\"");
\r
44 System.out.println("Using DRM systems: \"" + session.getDrmSystem()
\r
46 System.out.println("Using DRMAA implementations: \""
\r
47 + session.getDrmaaImplementation() + "\"");
\r
49 Version version = session.getVersion();
\r
51 System.out.println("Using DRMAA version " + version.toString());
\r
54 } catch (DrmaaException e) {
\r
55 System.out.println("Error: " + e.getMessage());
\r