cct.grid
Class PBSJobStatus

java.lang.Object
  extended by cct.grid.PBSJobStatus

public class PBSJobStatus
extends java.lang.Object

Title: Molecular Structure Viewer/Editor

Description: Computational Chemistry Toolkit

Copyright: Copyright (c) 2006

Company: ANU


Field Summary
(package private)  java.lang.String Account_Name
           
(package private)  java.lang.String Job_Name
           
(package private)  java.lang.String Job_Owner
           
(package private)  java.lang.String job_state
           
(package private)  java.lang.String queue
           
(package private)  java.util.HashMap resourcesUsed
           
(package private)  java.lang.String server
           
 
Constructor Summary
PBSJobStatus()
           
 
Method Summary
 java.util.HashMap getResourcesUsed()
           
 java.lang.String getValue(java.lang.String line)
          Parsing line of a PBS full display output, for example: job_state = R and returning "R"
static void main(java.lang.String[] args)
           
 java.lang.String parsePBSJobStatus(java.io.BufferedReader in)
          Parses a full status display in (qstat -f xxx) the form: > qstat -f 598103.ac-pbs Job Id: 598103.ac-pbs Job_Name = pbs.eq36smd Job_Owner = pcc562@ac job_state = H queue = normal server = ac-pbs Account_Name = f91 Checkpoint = u ctime = Mon Jul 31 14:24:56 2006 depend = afterok:598101.ac-pbs@ac-pbs Error_Path = ac:/short/f91/poker/toxSMD/pbs.eq36smd.e598103 group_list = f91 Hold_Types = s Join_Path = oe Keep_Files = n Mail_Points = a mtime = Mon Jul 31 14:24:56 2006 Output_Path = ac:/short/f91/poker/toxSMD/pbs.eq36smd.o598103 Priority = 25 qtime = Mon Jul 31 14:24:56 2006 Rerunable = False Resource_List.jobfs = 100mb Resource_List.ncpus = 32 Resource_List.nodect = 32 Resource_List.nodes = 32:ppn=1 Resource_List.other = mpi Resource_List.software = namd Resource_List.vmem = 6000mb Resource_List.walltime = 08:29:00 Shell_Path_List = /bin/bash Variable_List = PBS_O_HOME=/home/562/pcc562,PBS_O_LOGNAME=pcc562, PBS_O_PATH=/opt/grace-5.1.18/grace/bin:/opt/nedit-5.5/bin:/opt/vmd-1.8 .2/bin:/opt/netpbm-10.26.26/bin:/opt/intel-cc/8.1.035/bin:/opt/intel-fc /8.1.031/bin:/opt/anumpirun/2.1.14/bin:/opt/mpt-1.12/bin:/opt/pbs/bin:/ opt/rash/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/bin:.:/opt/lesstif-0.93 .94/gcc-3.3.3/bin:/home/562/pcc562/scripts:./, PBS_O_MAIL=/var/mail/pcc562,PBS_O_SHELL=/bin/bash,PBS_O_HOST=ac, PBS_O_WORKDIR=/short/f91/poker/toxSMD,PROJECT=f91,PBS_O_QUEUE=normal cwd = 1
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Job_Name

java.lang.String Job_Name

Job_Owner

java.lang.String Job_Owner

job_state

java.lang.String job_state

queue

java.lang.String queue

server

java.lang.String server

Account_Name

java.lang.String Account_Name

resourcesUsed

java.util.HashMap resourcesUsed
Constructor Detail

PBSJobStatus

public PBSJobStatus()
Method Detail

parsePBSJobStatus

public java.lang.String parsePBSJobStatus(java.io.BufferedReader in)
                                   throws java.lang.Exception
Parses a full status display in (qstat -f xxx) the form: > qstat -f 598103.ac-pbs Job Id: 598103.ac-pbs Job_Name = pbs.eq36smd Job_Owner = pcc562@ac job_state = H queue = normal server = ac-pbs Account_Name = f91 Checkpoint = u ctime = Mon Jul 31 14:24:56 2006 depend = afterok:598101.ac-pbs@ac-pbs Error_Path = ac:/short/f91/poker/toxSMD/pbs.eq36smd.e598103 group_list = f91 Hold_Types = s Join_Path = oe Keep_Files = n Mail_Points = a mtime = Mon Jul 31 14:24:56 2006 Output_Path = ac:/short/f91/poker/toxSMD/pbs.eq36smd.o598103 Priority = 25 qtime = Mon Jul 31 14:24:56 2006 Rerunable = False Resource_List.jobfs = 100mb Resource_List.ncpus = 32 Resource_List.nodect = 32 Resource_List.nodes = 32:ppn=1 Resource_List.other = mpi Resource_List.software = namd Resource_List.vmem = 6000mb Resource_List.walltime = 08:29:00 Shell_Path_List = /bin/bash Variable_List = PBS_O_HOME=/home/562/pcc562,PBS_O_LOGNAME=pcc562, PBS_O_PATH=/opt/grace-5.1.18/grace/bin:/opt/nedit-5.5/bin:/opt/vmd-1.8 .2/bin:/opt/netpbm-10.26.26/bin:/opt/intel-cc/8.1.035/bin:/opt/intel-fc /8.1.031/bin:/opt/anumpirun/2.1.14/bin:/opt/mpt-1.12/bin:/opt/pbs/bin:/ opt/rash/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/bin:.:/opt/lesstif-0.93 .94/gcc-3.3.3/bin:/home/562/pcc562/scripts:./, PBS_O_MAIL=/var/mail/pcc562,PBS_O_SHELL=/bin/bash,PBS_O_HOST=ac, PBS_O_WORKDIR=/short/f91/poker/toxSMD,PROJECT=f91,PBS_O_QUEUE=normal cwd = 1

Returns:
PBSJobStatus
Throws:
java.lang.Exception

getValue

public java.lang.String getValue(java.lang.String line)
Parsing line of a PBS full display output, for example: job_state = R and returning "R"

Parameters:
line - String
Returns:
String

getResourcesUsed

public java.util.HashMap getResourcesUsed()

main

public static void main(java.lang.String[] args)