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

Rule to keep the number of files in BDB below a limit. More...

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

Public Member Functions

int getFileCountLimit ()
 
void setFileCountLimit (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_count"
 The typename of this rule.
 

Protected Member Functions

 BdbTrimCountRule ()
 Default constructor, however, use manager for creation.
 
void setFileCatalog (FileCatalog catalog)
 
FileCatalog getFileCatalog ()
 
void execute ()
 execute this rule
 
int getFileCount ()
 get the number of files in the database
 

Detailed Description

Rule to keep the number of files in BDB below a limit.

Constructor & Destructor Documentation

◆ BdbTrimCountRule()

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

Default constructor, however, use manager for creation.

Member Function Documentation

◆ afterPropertiesSet()

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

◆ execute()

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

execute this rule

◆ getFileCatalog()

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

◆ getFileCount()

int eu.baltrad.beast.rules.bdb.BdbTrimCountRule.getFileCount ( )
inlineprotected

get the number of files in the database

◆ getFileCountLimit()

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

◆ getProperties()

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

◆ getType()

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

◆ handle()

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

◆ isValid()

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

◆ setFileCatalog()

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

◆ setFileCountLimit()

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

◆ setProperties()

void eu.baltrad.beast.rules.bdb.BdbTrimCountRule.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.BdbTrimCountRule.TYPE = "bdb_trim_count"
static

The typename of this rule.


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