}
private EBSVolumeJanitor getEBSVolumeJanitor() {
JanitorRuleEngine ruleEngine = new BasicJanitorRuleEngine();
if (configuration().getBoolOrElse("simianarmy.janitor.rule.oldDetachedVolumeRule.enabled", false)) {
ruleEngine.addRule(new OldDetachedVolumeRule(monkeyCalendar,
(int) configuration().getNumOrElse(
"simianarmy.janitor.rule.oldDetachedVolumeRule.detachDaysThreshold", 30),
(int) configuration().getNumOrElse(
"simianarmy.janitor.rule.oldDetachedVolumeRule.retentionDays", 7)));