summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
31724de)
import com.datastax.driver.core.Cluster;
public abstract class ActionPuntDAO<D, RV, T> extends ActionDAO<D, RV, T> {
import com.datastax.driver.core.Cluster;
public abstract class ActionPuntDAO<D, RV, T> extends ActionDAO<D, RV, T> {
-// private static final SecureRandom random = new SecureRandom();
protected static final Date now = new Date();
public ActionPuntDAO(AuthzTrans trans, Cluster cluster, int months, int range, boolean dryRun) throws APIException, IOException {
super(trans, cluster,dryRun);
this.months = months;
protected static final Date now = new Date();
public ActionPuntDAO(AuthzTrans trans, Cluster cluster, int months, int range, boolean dryRun) throws APIException, IOException {
super(trans, cluster,dryRun);
this.months = months;
}
public ActionPuntDAO(AuthzTrans trans, ActionDAO<?, ?,?> predecessor, int months, int range) {
super(trans, predecessor);
this.months = months;
}
public ActionPuntDAO(AuthzTrans trans, ActionDAO<?, ?,?> predecessor, int months, int range) {
super(trans, predecessor);
this.months = months;
/*
* This method Randomized date. This is no longer needed. Just add the Punt Months.
/*
* This method Randomized date. This is no longer needed. Just add the Punt Months.
temp.add(GregorianCalendar.MONTH, months);
if (range>0) {
int forward = Math.abs(random.nextInt()%range);
temp.add(GregorianCalendar.MONTH, months);
if (range>0) {
int forward = Math.abs(random.nextInt()%range);