+++ /dev/null
-/* Copyright (c) 2009 Peter Troshin\r
- * \r
- * JAva Bioinformatics Analysis Web Services (JABAWS) @version: 1.0 \r
- * \r
- * This library is free software; you can redistribute it and/or modify it under the terms of the\r
- * Apache License version 2 as published by the Apache Software Foundation\r
- * \r
- * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without\r
- * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the Apache \r
- * License for more details.\r
- * \r
- * A copy of the license is in apache_license.txt. It is also available here:\r
- * @see: http://www.apache.org/licenses/LICENSE-2.0.txt\r
- * \r
- * Any republication or derived work distributed in source code form\r
- * must include this copyright and license notice.\r
- */\r
-package compbio.engine.cluster.drmaa;\r
-\r
-import org.ggf.drmaa.DrmaaException;\r
-import org.ggf.drmaa.Session;\r
-import org.ggf.drmaa.SessionFactory;\r
-import org.ggf.drmaa.Version;\r
-\r
-class _JobStatus {\r
-\r
- public static void main(String[] args) {\r
-\r
- SessionFactory factory = SessionFactory.getFactory();\r
- Session session = factory.getSession();\r
-\r
- try {\r
- System.out.println("Supported contact strings: \""\r
- + session.getContact() + "\"");\r
- System.out.println("Supported DRM systems: \""\r
- + session.getDrmSystem() + "\"");\r
- System.out.println("Supported DRMAA implementations: \""\r
- + session.getDrmaaImplementation() + "\"");\r
-\r
- session.init("");\r
-\r
- System.out.println("Using contact strings: \""\r
- + session.getContact() + "\"");\r
- System.out.println("Using DRM systems: \"" + session.getDrmSystem()\r
- + "\"");\r
- System.out.println("Using DRMAA implementations: \""\r
- + session.getDrmaaImplementation() + "\"");\r
-\r
- Version version = session.getVersion();\r
-\r
- System.out.println("Using DRMAA version " + version.toString());\r
-\r
- session.exit();\r
- } catch (DrmaaException e) {\r
- System.out.println("Error: " + e.getMessage());\r
- }\r
-\r
- }\r
-}\r