umich.cac.pbs
Class RecordFactory

java.lang.Object
  extended byumich.cac.pbs.RecordFactory

public class RecordFactory
extends java.lang.Object

RecordFactory to return the right kind of PbsRecord processor based on the RecordType.

Processors are available for the following RecordTypes Types available for OpenPBS

This is the list of PbsPro extended records supported This is ignored for PbsPro Parsers for C records (checkpoint), are not yet created as I didn't have examples to work off of for these records. If you have an example entry please email me the examples and I can add those record types to the next release.

Version:
$Header: /cvsroot/pbsaccounting/pbsaccounting/doc/javadoc/umich/cac/pbs/RecordFactory.html,v 1.6 2003/10/21 20:33:47 rodmach Exp $
Author:
rmach@umich.edu

Method Summary
static RecordFactory getInstance()
          Get singleton instance
 PbsRecordParser getRecordParser(RecordType recordType)
          Return a PbsRecord processor based on the record type, or NULL if the recordType is not known.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static RecordFactory getInstance()
Get singleton instance

Returns:
The instance value

getRecordParser

public PbsRecordParser getRecordParser(RecordType recordType)
Return a PbsRecord processor based on the record type, or NULL if the recordType is not known. The check is not case sensitive because it appears PbsPro returns lower and upper case for record types.

Parameters:
recordType - type of record
Returns:
PbsRecord that can process the given recordType