edu.isi.pegasus.planner.visualize
Class KickstartParser

java.lang.Object
  extended by edu.isi.pegasus.planner.visualize.KickstartParser

public class KickstartParser
extends Object

A helper class that parses the kickstart records and has calls to callbacks for working on data sections of standard out, standard error, and standard input.

Version:
$Revision: 2587 $
Author:
Karan Vahi vahi@isi.edu

Field Summary
private  Callback mCallback
          The callback object.
private  InvocationParser mInvocationParser
          Semi-singleton, dynamically instantiated once for the lifetime.
private  LogManager mLogger
          The handle to the logging object.
private  org.griphyn.vdl.directive.ParseKickstart mParseKickstart
          The parser class that is used to parse a kickstart record and return the invocation record.
 
Constructor Summary
KickstartParser()
          The default constructor.
 
Method Summary
protected  String getJobName(String outName)
          Returns the name of the job from the kickstart output filename.
 List parseKickstartFile(String file)
           
 void setCallback(Callback c)
          Sets the callback to which to callout to while parsing a kickstart record.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mParseKickstart

private org.griphyn.vdl.directive.ParseKickstart mParseKickstart
The parser class that is used to parse a kickstart record and return the invocation record.


mLogger

private LogManager mLogger
The handle to the logging object.


mCallback

private Callback mCallback
The callback object.


mInvocationParser

private InvocationParser mInvocationParser
Semi-singleton, dynamically instantiated once for the lifetime. The properties determine which Xerces parser is being used.

Constructor Detail

KickstartParser

public KickstartParser()
The default constructor.

Method Detail

setCallback

public void setCallback(Callback c)
Sets the callback to which to callout to while parsing a kickstart record.

Parameters:
c - the Callback to call out to.

parseKickstartFile

public List parseKickstartFile(String file)
                        throws IOException
Throws:
IOException

getJobName

protected String getJobName(String outName)
Returns the name of the job from the kickstart output filename.

Parameters:
outName - the name of the out file.
Returns:
the job name.


Copyright © 2011 The University of Southern California. All Rights Reserved.