Class UpkeepConfiguration
- java.lang.Object
-
- edu.uiuc.ncsa.security.storage.monitored.upkeep.UpkeepConfiguration
-
- All Implemented Interfaces:
Serializable
public class UpkeepConfiguration extends Object implements Serializable
Created by Jeff Gaynor
on 2/15/24 at 1:21 PM- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description Collection<LocalTime>
alarms
-
Constructor Summary
Constructors Constructor Description UpkeepConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(RuleList ruleList)
Add to both the list of rules and the internal map so it may be retrieved by name.String[]
applies(Identifier id, Long create, Long accessed, Long modified)
String[]
applies(Monitored monitored)
Collection<LocalTime>
getAlarms()
long
getInterval()
String
getOutput()
List<RuleList>
getRuleList()
Map<String,RuleList>
getRulesMap()
int
getRunCount()
boolean
hasAlarms()
boolean
hasInterval()
boolean
hasOutput()
boolean
hasSkipVersion()
boolean
isDebug()
boolean
isEnabled()
Boolean
isSkipVersions()
boolean
isTestOnly()
boolean
isVerbose()
protected String
ppRulesMap(int indent)
Pretty print the rules map.void
setAlarms(Collection<LocalTime> alarms)
void
setDebug(boolean debug)
void
setEnabled(boolean enabled)
void
setInterval(long interval)
void
setOutput(String output)
void
setRulesMap(Map<String,RuleList> rulesMap)
void
setRunCount(int runCount)
void
setSkipVersions(Boolean skipVersions)
void
setTestOnly(boolean testOnly)
void
setVerbose(boolean verbose)
String
toString()
String
toString(boolean prettyPrint)
-
-
-
Field Detail
-
alarms
public Collection<LocalTime> alarms
-
-
Method Detail
-
isEnabled
public boolean isEnabled()
-
setEnabled
public void setEnabled(boolean enabled)
-
isDebug
public boolean isDebug()
-
setDebug
public void setDebug(boolean debug)
-
isSkipVersions
public Boolean isSkipVersions()
-
setSkipVersions
public void setSkipVersions(Boolean skipVersions)
-
hasSkipVersion
public boolean hasSkipVersion()
-
isTestOnly
public boolean isTestOnly()
-
setTestOnly
public void setTestOnly(boolean testOnly)
-
hasAlarms
public boolean hasAlarms()
-
getAlarms
public Collection<LocalTime> getAlarms()
-
setAlarms
public void setAlarms(Collection<LocalTime> alarms)
-
getInterval
public long getInterval()
-
setInterval
public void setInterval(long interval)
-
hasInterval
public boolean hasInterval()
-
getRunCount
public int getRunCount()
-
setRunCount
public void setRunCount(int runCount)
-
isVerbose
public boolean isVerbose()
-
setVerbose
public void setVerbose(boolean verbose)
-
getOutput
public String getOutput()
-
setOutput
public void setOutput(String output)
-
hasOutput
public boolean hasOutput()
-
add
public void add(RuleList ruleList)
Add to both the list of rules and the internal map so it may be retrieved by name.- Parameters:
ruleList
-
-
toString
public String toString(boolean prettyPrint)
-
ppRulesMap
protected String ppRulesMap(int indent)
Pretty print the rules map. First entry is not indented, but the rest are.- Returns:
-
applies
public String[] applies(Identifier id, Long create, Long accessed, Long modified)
-
-