BEAST
eu.baltrad.beast.rules.dist.DistributionRule Class Reference

Distribute incoming data to remote destinations. More...

Inheritance diagram for eu.baltrad.beast.rules.dist.DistributionRule:
eu.baltrad.beast.rules.IRule eu.baltrad.beast.rules.IRulePropertyAccess

Public Member Functions

MetadataNameCreatorFactory getNameCreatorFactory ()
 
void setNameCreatorFactory (MetadataNameCreatorFactory nameCreatorFactory)
 
IFilter getFilter ()
 
void setFilter (IFilter filter)
 
URI getDestination ()
 
void setDestination (String destination)
 
void setNamer (FileEntryNamer namer)
 
void setMetadataNamingTemplate (String tmpl)
 Set metadata naming template.
 
String getMetadataNamingTemplate ()
 Get metadata naming template.
 
void setUuidNamer ()
 
Map< String, String > getProperties ()
 
void setProperties (Map< String, String > props)
 
String getType ()
 
boolean isValid ()
 
void setRuleId (int ruleid)
 
int getRuleId ()
 
IBltMessage handle (IBltMessage message)
 
boolean match (FileEntry entry)
 
FileDistributionStateContainer upload (FileEntry entry)
 
FileDistributionStateContainer upload (File src, FileEntry entry)
 

Static Public Attributes

static final String TYPE = "distribution"
 

Protected Member Functions

 DistributionRule (LocalStorage localStorage, ExecutorService distributionExecutor)
 Constructor.
 
void setMatcher (MetadataMatcher matcher)
 
LocalStorage getLocalStorage ()
 

Detailed Description

Distribute incoming data to remote destinations.

Incoming files that match the associated filter are uploaded using FileUploader.

Constructor & Destructor Documentation

◆ DistributionRule()

eu.baltrad.beast.rules.dist.DistributionRule.DistributionRule ( LocalStorage localStorage,
ExecutorService distributionExecutor )
inlineprotected

Constructor.

Member Function Documentation

◆ getMetadataNamingTemplate()

String eu.baltrad.beast.rules.dist.DistributionRule.getMetadataNamingTemplate ( )
inline

Get metadata naming template.

Returns
the template or null of some other namer is used.

◆ getProperties()

Map< String, String > eu.baltrad.beast.rules.dist.DistributionRule.getProperties ( )
inline

◆ getRuleId()

int eu.baltrad.beast.rules.dist.DistributionRule.getRuleId ( )
inline
Returns
the ruleid

◆ getType()

String eu.baltrad.beast.rules.dist.DistributionRule.getType ( )
inline

◆ handle()

IBltMessage eu.baltrad.beast.rules.dist.DistributionRule.handle ( IBltMessage message)
inline

◆ isValid()

boolean eu.baltrad.beast.rules.dist.DistributionRule.isValid ( )
inline

◆ setMetadataNamingTemplate()

void eu.baltrad.beast.rules.dist.DistributionRule.setMetadataNamingTemplate ( String tmpl)
inline

Set metadata naming template.

◆ setProperties()

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

Implements eu.baltrad.beast.rules.IRulePropertyAccess.

◆ setRuleId()

void eu.baltrad.beast.rules.dist.DistributionRule.setRuleId ( int ruleid)
inline
Parameters
ruleidthe ruleid to set

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