public class AggregationPolicy extends BaseUsageRecordPolicy
AggregateUsageRecordFactory.
This policy is unusual in that it does not generate any new properties only consume them.
Configuration Properties:
AggregateUsageRecordFactory
| Constructor and Description |
|---|
AggregationPolicy()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
endParse()
Deprecated.
End a batch parse this de-allocates any temporary storage and
and perform any final operations.
|
PropertyFinder |
initFinder(uk.ac.ed.epcc.webapp.AppContext ctx,
PropertyFinder prev,
java.lang.String table)
Deprecated.
Generate a PropertyFinder that will find any PropertyTag generated by this class.
|
void |
postCreate(PropertyContainer props,
UsageRecord rec)
Deprecated.
once record has been committed apply any side effects such as budget
charging.
|
void |
preDelete(UsageRecord rec)
Deprecated.
perform any operations required prior to an existing record being
deleted, such as budget refunds
|
void |
startParse(PropertyContainer defaults)
Deprecated.
Start a batch parse.
|
allowReplaceparsegetDerivedProperties, modifyDefaultTableSpecification, uniqueclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitparsegetDerivedProperties, modifyDefaultTableSpecificationpublic void postCreate(PropertyContainer props, UsageRecord rec) throws java.lang.Exception
UsageRecordPolicypostCreate in interface UsageRecordPolicypostCreate in class BaseUsageRecordPolicyjava.lang.Exceptionprops - Full set of properties from the parse stagerec - The actual committed recordpublic void preDelete(UsageRecord rec) throws java.lang.Exception
UsageRecordPolicypreDelete in interface UsageRecordPolicypreDelete in class BaseUsageRecordPolicyjava.lang.Exceptionpublic PropertyFinder initFinder(uk.ac.ed.epcc.webapp.AppContext ctx, 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
prev - PropertyFinder for the higher levels in the call chain.table - String name of the destination table in case per-table customisation is neededpublic 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 AbstractPropertyContainerUpdater