Esempio n. 1
0
 public String getSpotMaxBidPrice() {
   if (spotConfig == null) return null;
   return SpotConfiguration.normalizeBid(spotConfig.spotMaxBidPrice);
 }
Esempio n. 2
0
 /*
  * Validate the Spot Max Bid Price to ensure that it is a floating point number >= .001
  */
 public FormValidation doCheckSpotMaxBidPrice(@QueryParameter String spotMaxBidPrice) {
   if (SpotConfiguration.normalizeBid(spotMaxBidPrice) != null) {
     return FormValidation.ok();
   }
   return FormValidation.error("Not a correct bid price");
 }