Example #1
0
 /**
  * Construct a PollSpec from a CachedUrlSet.
  *
  * @param cus the CachedUrlSpec which defines the range of interest
  * @param pollType one of the types defined by Poll
  */
 public PollSpec(CachedUrlSet cus, int pollType) {
   CachedUrlSetSpec cuss = cus.getSpec();
   if (cuss instanceof RangeCachedUrlSetSpec) {
     RangeCachedUrlSetSpec rcuss = (RangeCachedUrlSetSpec) cuss;
     commonSetup(cus, rcuss.getLowerBound(), rcuss.getUpperBound(), pollType);
   } else if (cuss.isSingleNode()) {
     commonSetup(cus, SINGLE_NODE_LWRBOUND, null, pollType);
   } else {
     commonSetup(cus, null, null, pollType);
   }
 }
Example #2
0
 /**
  * Construct a PollSpec from a CachedUrlSet and an upper and lower bound
  *
  * @param cus the CachedUrlSet
  * @param lwrBound the lower boundary
  * @param uprBound the upper boundary
  * @param pollType one of the types defined by Poll
  */
 public PollSpec(CachedUrlSet cus, String lwrBound, String uprBound, int pollType) {
   commonSetup(cus, lwrBound, uprBound, pollType);
 }