gov.bnl.star.offline.scheduler.util.persistent
Class SessionReader

java.lang.Object
  extended by gov.bnl.star.offline.scheduler.util.persistent.SessionReader

public class SessionReader
extends java.lang.Object

Reads the session xml file back into an object.

Author:
Levente Hajdu

Constructor Summary
SessionReader(java.lang.String file)
          Creates a new instance of SessionReader
 
Method Summary
 void close()
           
 java.util.List getJobs()
           
 Request getRequest()
           
 boolean isOpen()
           
 void openNewSession(java.lang.String file)
           
static void testVersionMatch(java.lang.String file)
          Test the the file was biult with the same version of SUMS as the current version.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SessionReader

public SessionReader(java.lang.String file)
Creates a new instance of SessionReader

Method Detail

testVersionMatch

public static void testVersionMatch(java.lang.String file)
Test the the file was biult with the same version of SUMS as the current version. If it is not dispay an error and exit.

Parameters:
file - the name of the .session.xml

openNewSession

public void openNewSession(java.lang.String file)

close

public void close()

isOpen

public boolean isOpen()

getRequest

public Request getRequest()

getJobs

public java.util.List getJobs()


Copyright © 2002-2004 STAR collaboration - Brookhaven National Laboratory. All Rights Reserved.