public class SgeParser extends BatchParser implements PropertyContainerParser, uk.ac.ed.epcc.webapp.Contexed
| Modifier and Type | Field and Description |
|---|---|
static PropertyRegistry |
sge |
static PropertyTag<java.lang.String> |
SGE_ACCOUNT_PROP |
static PropertyTag<java.lang.Number> |
SGE_AR_TIME_PROP |
static PropertyTag<java.lang.Number> |
SGE_ARID_PROP |
static PropertyTag<java.lang.String> |
SGE_CATEGORY_PROP |
static PropertyTag<java.lang.Number> |
SGE_CPU_TIME_PROP |
static PropertyTag<java.lang.String> |
SGE_DEPARTMENT_PROP |
static PropertyTag<java.util.Date> |
SGE_ENDED_PROP |
static PropertyTag<java.lang.Integer> |
SGE_EXIT_PROP |
static PropertyTag<java.lang.Number> |
SGE_FAILED_PROP |
static PropertyTag<java.lang.String> |
SGE_GROUPNAME_PROP |
static PropertyTag<java.lang.String> |
SGE_HOSTNAME_PROP |
static PropertyTag<java.lang.Number> |
SGE_IDRSS_PROP |
static PropertyTag<java.lang.Number> |
SGE_INBLOCK_PROP |
static PropertyTag<java.lang.Number> |
SGE_IODATA_PROP |
static PropertyTag<java.lang.Number> |
SGE_IOWAIT_PROP |
static PropertyTag<java.lang.Number> |
SGE_ISMRSS_PROP |
static PropertyTag<java.lang.Number> |
SGE_ISRSS_PROP |
static PropertyTag<java.lang.Number> |
SGE_IXRSS_PROP |
static PropertyTag<java.lang.Number> |
SGE_JOB_ID |
static PropertyTag<java.lang.String> |
SGE_JOBNAME_PROP |
static PropertyTag<java.lang.Number> |
SGE_MAJFLT_PROP |
static PropertyTag<java.lang.Number> |
SGE_MAXRSS_PROP |
static PropertyTag<java.lang.Number> |
SGE_MEMORY_PROP |
static PropertyTag<java.lang.Number> |
SGE_MINFLT_PROP |
static PropertyTag<java.lang.Number> |
SGE_MSGRCV_PROP |
static PropertyTag<java.lang.Number> |
SGE_MSGSND_PROP |
static PropertyTag<java.lang.Number> |
SGE_NIVCSW_PROP |
static PropertyTag<java.lang.Number> |
SGE_NSIGNALS_PROP |
static PropertyTag<java.lang.Number> |
SGE_NSWAP_PROP |
static PropertyTag<java.lang.Number> |
SGE_NVCSW_PROP |
static PropertyTag<java.lang.Number> |
SGE_OUTBLOCK_PROP |
static PropertyTag<java.lang.String> |
SGE_PE_PROP |
static PropertyTag<java.lang.String> |
SGE_PE_TASK_PROP |
static PropertyTag<java.lang.Number> |
SGE_PRIORITY_PROP |
static PropertyTag<java.lang.String> |
SGE_PROJECT_PROP |
static PropertyTag<java.lang.String> |
SGE_QUEUE_PROP |
static PropertyTag<java.lang.Integer> |
SGE_SLOTS |
static PropertyTag<java.util.Date> |
SGE_STARTED_PROP |
static PropertyTag<java.lang.Number> |
SGE_STIME_PROP |
static PropertyTag<java.util.Date> |
SGE_SUBMITTED_PROP |
static PropertyTag<java.lang.Number> |
SGE_TASK_PROP |
static PropertyTag<java.lang.String> |
SGE_USERNAME_PROP |
static PropertyTag<java.lang.Number> |
SGE_UTIME_PROP |
static PropertyTag<java.lang.Number> |
SGE_VMEM_PROP |
static PropertyTag<java.lang.Number> |
SGE_WALLCLOCK_PROP |
ACCOUNT_PROP, batch, BATCH_SCRIPT_PROP, CPU_WAIT_PROP, EXPECTED_FINISH, JOB_ID_PROP, JOB_NAME_PROP, NODE_COUNT_PROP, PARTITION_PROP, PROC_COUNT_PROP, QUEUE_PROP, REQUEST_ACCURACY_PROP, REQUESTED_CPUS_PROP, REQUESTED_WALLCLOCK_PROP, RESIDENCY_PROP, SERIAL_PROP, SLOWDOWN_PROP, SUBJOB_PROP, SUBMITTED_PROP, SUBMITTED_TIMESTAMP, SUCCESS_PROP, TIME_PROP, WAIT_PROP, WALLCLOCK_PROPDUPLICATE_KEY| Constructor and Description |
|---|
SgeParser(uk.ac.ed.epcc.webapp.AppContext c) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
endParse()
End a batch parse this de-allocates any temporary storage and
and perform any final operations.
|
uk.ac.ed.epcc.webapp.AppContext |
getContext() |
PropExpressionMap |
getDerivedProperties(PropExpressionMap previous)
return a set of derived property definitions.
|
PropertyFinder |
initFinder(uk.ac.ed.epcc.webapp.AppContext conn,
PropertyFinder prev,
java.lang.String table)
Generate a PropertyFinder that will find any PropertyTag generated by this class.
|
boolean |
parse(PropertyMap r,
java.lang.String record)
Parse a String representation of the UsageRecord.
|
void |
startParse(PropertyContainer defaults)
Start a batch parse.
|
readDouble, readInteger, readLong, readTimegetDefaultUniqueProperties, modifyDefaultTableSpecification, splitRecords, uniqueclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDefaultUniqueProperties, splitRecordsmodifyDefaultTableSpecificationpublic static final PropertyRegistry sge
@AutoTable public static final PropertyTag<java.lang.String> SGE_QUEUE_PROP
@OptionalTable public static final PropertyTag<java.lang.String> SGE_HOSTNAME_PROP
@AutoTable public static final PropertyTag<java.lang.String> SGE_GROUPNAME_PROP
@AutoTable public static final PropertyTag<java.lang.String> SGE_USERNAME_PROP
@AutoTable(length=128) public static final PropertyTag<java.lang.String> SGE_JOBNAME_PROP
@AutoTable public static final PropertyTag<java.lang.String> SGE_ACCOUNT_PROP
@OptionalTable public static final PropertyTag<java.lang.Number> SGE_PRIORITY_PROP
@AutoTable public static final PropertyTag<java.lang.String> SGE_PE_PROP
@AutoTable public static final PropertyTag<java.util.Date> SGE_SUBMITTED_PROP
@AutoTable public static final PropertyTag<java.util.Date> SGE_STARTED_PROP
@AutoTable(unique=true) public static final PropertyTag<java.util.Date> SGE_ENDED_PROP
@AutoTable(target=java.lang.Integer.class, unique=true) public static final PropertyTag<java.lang.Number> SGE_JOB_ID
@AutoTable(target=java.lang.Integer.class, unique=true) public static final PropertyTag<java.lang.Number> SGE_TASK_PROP
@OptionalTable public static final PropertyTag<java.lang.Integer> SGE_EXIT_PROP
@OptionalTable public static final PropertyTag<java.lang.String> SGE_PE_TASK_PROP
@OptionalTable public static final PropertyTag<java.lang.Number> SGE_FAILED_PROP
@AutoTable public static final PropertyTag<java.lang.Number> SGE_WALLCLOCK_PROP
@OptionalTable public static final PropertyTag<java.lang.String> SGE_CATEGORY_PROP
@AutoTable(target=java.lang.Integer.class) public static final PropertyTag<java.lang.Integer> SGE_SLOTS
@AutoTable public static final PropertyTag<java.lang.String> SGE_PROJECT_PROP
@AutoTable(target=java.lang.Double.class) public static final PropertyTag<java.lang.Number> SGE_CPU_TIME_PROP
@AutoTable public static final PropertyTag<java.lang.String> SGE_DEPARTMENT_PROP
public static final PropertyTag<java.lang.Number> SGE_MEMORY_PROP
public static final PropertyTag<java.lang.Number> SGE_IOWAIT_PROP
public static final PropertyTag<java.lang.Number> SGE_IODATA_PROP
public static final PropertyTag<java.lang.Number> SGE_VMEM_PROP
public static final PropertyTag<java.lang.Number> SGE_ARID_PROP
public static final PropertyTag<java.lang.Number> SGE_AR_TIME_PROP
public static final PropertyTag<java.lang.Number> SGE_UTIME_PROP
public static final PropertyTag<java.lang.Number> SGE_IDRSS_PROP
public static final PropertyTag<java.lang.Number> SGE_INBLOCK_PROP
public static final PropertyTag<java.lang.Number> SGE_ISMRSS_PROP
public static final PropertyTag<java.lang.Number> SGE_IXRSS_PROP
public static final PropertyTag<java.lang.Number> SGE_MAJFLT_PROP
public static final PropertyTag<java.lang.Number> SGE_ISRSS_PROP
public static final PropertyTag<java.lang.Number> SGE_MAXRSS_PROP
public static final PropertyTag<java.lang.Number> SGE_MINFLT_PROP
public static final PropertyTag<java.lang.Number> SGE_MSGRCV_PROP
public static final PropertyTag<java.lang.Number> SGE_MSGSND_PROP
public static final PropertyTag<java.lang.Number> SGE_NIVCSW_PROP
public static final PropertyTag<java.lang.Number> SGE_NSIGNALS_PROP
public static final PropertyTag<java.lang.Number> SGE_STIME_PROP
public static final PropertyTag<java.lang.Number> SGE_OUTBLOCK_PROP
public static final PropertyTag<java.lang.Number> SGE_NSWAP_PROP
public static final PropertyTag<java.lang.Number> SGE_NVCSW_PROP
public boolean parse(PropertyMap r, java.lang.String record) throws AccountingParseException
PropertyContainerParserparse in interface PropertyContainerParserAccountingParseExceptionr - PropertyMap to add quantitiespublic void startParse(PropertyContainer defaults) throws uk.ac.ed.epcc.webapp.jdbc.exception.DataException, InvalidPropertyException
PropertyContainerUpdaterstartParse in interface PropertyContainerUpdaterstartParse in class AbstractPropertyContainerUpdateruk.ac.ed.epcc.webapp.jdbc.exception.DataExceptionInvalidPropertyExceptiondefaults - properties constant for this accounting run.public java.lang.String endParse()
PropertyContainerUpdaterendParse in interface PropertyContainerUpdaterendParse in class AbstractPropertyContainerUpdaterpublic uk.ac.ed.epcc.webapp.AppContext getContext()
getContext in interface uk.ac.ed.epcc.webapp.Contexedpublic PropertyFinder initFinder(uk.ac.ed.epcc.webapp.AppContext conn, PropertyFinder prev, java.lang.String table)
PropertyContainerUpdaterAll properties defined at run-time should have their PropertyTag objects constructed by the time the first call to this method returns. As some parsers properties will generate different things depending on the other properties already in scope this method is passed a PropertyFinder for any properties that may already be in scope. This will include any default parameters specified when the data was uploaded and any properties generated from the database meta-data. Though it is perfectly legal to return a PropertyFinder that returns a superset of the generated properties the only requirement is that the returned finder can find any property that this classes parse method may actually generate values for. So Normally the contents of the super-finder are not included in the result unless these values are actually generated by the parse. If values are generated then a MultiFinder can be populated with the PropertyRegistrys from the generated properties
initFinder in interface PropertyContainerUpdaterinitFinder in class BaseParserprev - PropertyFinder for the higher levels in the call chain.table - String name of the destination table in case per-table customisation is neededpublic PropExpressionMap getDerivedProperties(PropExpressionMap previous)
PropertyContainerUpdaterDefinitions are allowed for properties that are also generated directly in the parse phase. In this case the parse value should always be used by preference and the derived definition only provides a fall-back implementation if the parse value is unavailable. For example if not persisted in the database layer. This allows one parser/policy to specify a default implementation as a derived property definition which is then overridden by having the same property generated in a parse method of a different policy/parser
getDerivedProperties in interface PropertyContainerUpdatergetDerivedProperties in class BatchParserprevious - Previous definitions