Package org.gcube.accounting.aggregator
Class RegexRulesAggregator
- java.lang.Object
-
- org.gcube.accounting.aggregator.RegexRulesAggregator
-
-
Field Summary
Fields Modifier and Type Field Description protected AccountingPersistenceConfigurationaccountingPersistenceConfigurationprotected booleanchangeRateprotected longdelayprotected static StringDELAYprotected static RegexRulesAggregatorinstanceprotected static StringMATCHER_REPLACE_RULESprotected List<MatcherReplace>matcherReplaceListstatic ScheduledExecutorServiceREGEX_REDISCOVERY_POOLprotected ScheduledFuture<?>reloadAggregatorRulesprotected ScheduledFuture<?>rulesReloaderprotected static StringTIME_UNITprotected TimeUnittimeUnit
-
Constructor Summary
Constructors Modifier Constructor Description protectedRegexRulesAggregator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description MatcherReplaceaddMatcherReplace(MatcherReplace matcherReplace)static RegexRulesAggregatorgetInstance()List<MatcherReplace>getMatcherReplaceList()voidreadConfiguration()voidrun()static voidshutdown()voidstart()Deprecated.voidstop()Stop rule reloader.voidvacumRules()
-
-
-
Field Detail
-
REGEX_REDISCOVERY_POOL
public static final ScheduledExecutorService REGEX_REDISCOVERY_POOL
-
DELAY
protected static final String DELAY
- See Also:
- Constant Field Values
-
TIME_UNIT
protected static final String TIME_UNIT
- See Also:
- Constant Field Values
-
MATCHER_REPLACE_RULES
protected static final String MATCHER_REPLACE_RULES
- See Also:
- Constant Field Values
-
timeUnit
protected TimeUnit timeUnit
-
delay
protected long delay
-
rulesReloader
protected ScheduledFuture<?> rulesReloader
-
matcherReplaceList
protected List<MatcherReplace> matcherReplaceList
-
accountingPersistenceConfiguration
protected AccountingPersistenceConfiguration accountingPersistenceConfiguration
-
instance
protected static RegexRulesAggregator instance
-
changeRate
protected boolean changeRate
-
reloadAggregatorRules
protected ScheduledFuture<?> reloadAggregatorRules
-
-
Method Detail
-
getInstance
public static RegexRulesAggregator getInstance()
-
getMatcherReplaceList
public List<MatcherReplace> getMatcherReplaceList()
-
addMatcherReplace
public MatcherReplace addMatcherReplace(MatcherReplace matcherReplace)
-
vacumRules
public void vacumRules()
-
readConfiguration
public void readConfiguration()
-
stop
public void stop()
Stop rule reloader. Use only if you really know what you do.
-
start
@Deprecated public void start()
Deprecated.
-
shutdown
public static void shutdown()
-
-