BEAST
eu.baltrad.beast.rules.bdb.BdbTrimAgeRule Class Reference

Rule to keep the age of files in BDB above a limit. More...

Inheritance diagram for eu.baltrad.beast.rules.bdb.BdbTrimAgeRule:
eu.baltrad.beast.rules.IRule eu.baltrad.beast.rules.IRulePropertyAccess

Public Member Functions

int getFileAgeLimit ()
 
void setFileAgeLimit (int limit)
 
Map< String, String > getProperties ()
 
void setProperties (Map< String, String > props)
 
String getType ()
 
boolean isValid ()
 
IBltMessage handle (IBltMessage message)
 
void afterPropertiesSet ()
 

Static Public Attributes

static final String TYPE = "bdb_trim_age"
 The typename of this rule.
 

Protected Member Functions

 BdbTrimAgeRule ()
 Default constructor, however, use manager for creation.
 
void setFileCatalog (FileCatalog catalog)
 
FileCatalog getFileCatalog ()
 
void execute ()
 execute this rule
 
DateTime getAgeLimitDateTime ()
 get age limit as a DateTime
 
DateTime getCurrentDateTime ()
 get current UTC DateTime
 

Detailed Description

Rule to keep the age of files in BDB above a limit.

NOTE! the nominal datetime (what/date + what/time) is used for file "age"

Constructor & Destructor Documentation

◆ BdbTrimAgeRule()

eu.baltrad.beast.rules.bdb.BdbTrimAgeRule.BdbTrimAgeRule ( )
inlineprotected

Default constructor, however, use manager for creation.

Member Function Documentation

◆ afterPropertiesSet()

void eu.baltrad.beast.rules.bdb.BdbTrimAgeRule.afterPropertiesSet ( )
inline
See also
org.springframework.beans.factory.InitializingBean.afterPropertiesSet()

◆ execute()

void eu.baltrad.beast.rules.bdb.BdbTrimAgeRule.execute ( )
inlineprotected

execute this rule

◆ getAgeLimitDateTime()

DateTime eu.baltrad.beast.rules.bdb.BdbTrimAgeRule.getAgeLimitDateTime ( )
inlineprotected

get age limit as a DateTime

◆ getCurrentDateTime()

DateTime eu.baltrad.beast.rules.bdb.BdbTrimAgeRule.getCurrentDateTime ( )
inlineprotected

get current UTC DateTime

◆ getFileAgeLimit()

int eu.baltrad.beast.rules.bdb.BdbTrimAgeRule.getFileAgeLimit ( )
inline
Returns
the file count limit, 0 if unlimited

◆ getFileCatalog()

FileCatalog eu.baltrad.beast.rules.bdb.BdbTrimAgeRule.getFileCatalog ( )
inlineprotected
Returns
the catalog

◆ getProperties()

Map< String, String > eu.baltrad.beast.rules.bdb.BdbTrimAgeRule.getProperties ( )
inline

◆ getType()

String eu.baltrad.beast.rules.bdb.BdbTrimAgeRule.getType ( )
inline

◆ handle()

IBltMessage eu.baltrad.beast.rules.bdb.BdbTrimAgeRule.handle ( IBltMessage message)
inline

◆ isValid()

boolean eu.baltrad.beast.rules.bdb.BdbTrimAgeRule.isValid ( )
inline

◆ setFileAgeLimit()

void eu.baltrad.beast.rules.bdb.BdbTrimAgeRule.setFileAgeLimit ( int limit)
inline
Parameters
limitfile count limit, 0 if unlimited

◆ setFileCatalog()

void eu.baltrad.beast.rules.bdb.BdbTrimAgeRule.setFileCatalog ( FileCatalog catalog)
inlineprotected
Parameters
catalogthe catalog to set

◆ setProperties()

void eu.baltrad.beast.rules.bdb.BdbTrimAgeRule.setProperties ( Map< String, String > props)
inline
See also
eu.baltrad.beast.rules.IRulePropertyAccess.setProperties(Map)

Implements eu.baltrad.beast.rules.IRulePropertyAccess.

Member Data Documentation

◆ TYPE

final String eu.baltrad.beast.rules.bdb.BdbTrimAgeRule.TYPE = "bdb_trim_age"
static

The typename of this rule.


The documentation for this class was generated from the following file: