public class GridFtpTransferParser extends BaseParser
| Modifier and Type | Field and Description |
|---|---|
static PropertyTag<java.lang.Number> |
block |
static PropertyTag<java.lang.Number> |
buffer |
static PropertyTag<java.lang.Number> |
bytes |
static PropertyTag<java.lang.Number> |
code |
static PropertyTag<java.util.Date> |
end |
static PropertyTag<java.lang.String> |
file |
static PropertyRegistry |
gftp_reg |
static PropertyTag<java.lang.String> |
host |
static PropertyTag<java.lang.String> |
prog |
static PropertyTag<java.lang.String> |
remote |
static PropertyTag<java.util.Date> |
start |
static PropertyTag<java.lang.Number> |
streams |
static PropertyTag<java.lang.Number> |
stripes |
static PropertyTag<java.lang.String> |
type |
static PropertyTag<java.lang.String> |
user |
static PropertyTag<java.lang.String> |
volume |
DUPLICATE_KEY| Constructor and Description |
|---|
GridFtpTransferParser() |
| Modifier and Type | Method and Description |
|---|---|
PropExpressionMap |
getDerivedProperties(PropExpressionMap res)
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 map,
java.lang.String record)
Parse a String representation of the UsageRecord.
|
readDouble, readInteger, readLong, readTimegetDefaultUniqueProperties, modifyDefaultTableSpecification, splitRecords, uniqueendParse, startParseclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitendParse, startParsepublic static final PropertyRegistry gftp_reg
@AutoTable public static PropertyTag<java.util.Date> start
@AutoTable(unique=true) public static PropertyTag<java.util.Date> end
@AutoTable(unique=true) public static PropertyTag<java.lang.String> user
public static PropertyTag<java.lang.String> host
public static PropertyTag<java.lang.String> prog
@AutoTable(length=512) public static PropertyTag<java.lang.String> file
@OptionalTable public static PropertyTag<java.lang.Number> buffer
@OptionalTable public static PropertyTag<java.lang.Number> block
@AutoTable public static PropertyTag<java.lang.Number> bytes
@AutoTable(target=java.lang.Integer.class) public static PropertyTag<java.lang.Number> streams
@AutoTable(target=java.lang.Integer.class) public static PropertyTag<java.lang.Number> stripes
public static PropertyTag<java.lang.Number> code
@AutoTable(unique=true) public static PropertyTag<java.lang.String> remote
public static PropertyTag<java.lang.String> volume
@AutoTable public static PropertyTag<java.lang.String> type
public boolean parse(PropertyMap map, java.lang.String record) throws AccountingParseException
PropertyContainerParserAccountingParseExceptionmap - PropertyMap to add quantitiespublic 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 res)
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 BaseParserres - Previous definitions