final DateMidnight clusterDm = new DateMidnight(year, month, day, DateTimeZone.UTC);
if (Days.daysBetween(clusterDm, nowDm).getDays() >= days) {
log.info("Cluster {}, is {} days old, purging it", name, Days.daysBetween(clusterDm, nowDm).getDays());
OSchema schema = db.getMetadata().getSchema();
OClass type = schema.getClass(DB_CLASS);
type.removeClusterId(cid);
db.dropCluster(cid, true);
}
}
}
}