Examples of AuctionStats


Examples of com.jbidwatcher.auction.server.AuctionStats

      String cfgLoad = JConfig.queryConfiguration("temp.cfg.load", "JBidWatch.cfg");
      String cfgFilename = cfgLoad.equals("JBidWatch.cfg") ? Path.getCanonicalFile(cfgLoad, "jbidwatcher", false) : cfgLoad;

      //  TODO -- Need to save searches in the database too...  Right now they're still hanging around in XML form.
      SearchManager.getInstance().saveSearches();
      AuctionStats as = AuctionServerManager.getInstance().getStats();
      JConfig.setConfiguration("last.auctioncount", Integer.toString(as.getCount()));
      if (Database.saveDBConfig()) {
        // If we're changing databases, we'll need the auction information saved so we can load it into the new database.
        AuctionsManager.getInstance().saveAuctions();
      }
      JConfig.saveConfiguration(cfgFilename);
View Full Code Here

Examples of com.jbidwatcher.auction.server.AuctionStats

    }
  }

  private void alterSnipeStatus() {
    if (Platform.isTrayEnabled()) {
      AuctionStats as = AuctionServerManager.getInstance().getStats();
      if (as != null) {
        StringBuffer snipeText = new StringBuffer("TOOLTIP ");
        if (as.getSnipes() != 0) {
          snipeText.append("Next Snipe at: ").append(Constants.remoteClockFormat.format(as.getNextSnipe().getSnipeDate())).append('\n');
          snipeText.append(as.getSnipes()).append(" snipes outstanding\n");
        }
        if (as.getCompleted() != 0) {
          snipeText.append(as.getCompleted()).append(" auctions completed\n");
        }
        snipeText.append(as.getCount()).append(" auctions total");
        MQFactory.getConcrete("tray").enqueue(snipeText.toString());
      }
    }
  }
View Full Code Here

Examples of com.jbidwatcher.auction.server.AuctionStats

      if(JConfig.queryConfiguration("stats.auctions") == null) JConfig.setConfiguration("stats.auctions", "0");
      return 0;
    }

    AuctionServerManager.getInstance().loadAuctionsFromDB(newServer);
    AuctionStats as = AuctionServerManager.getInstance().getStats();

    int savedCount = Integer.parseInt(JConfig.queryConfiguration("last.auctioncount", "-1"));
    if (as != null) {
      if (savedCount != -1 && as.getCount() != savedCount) {
        MQFactory.getConcrete("Swing").enqueue("NOTIFY Failed to load all auctions from database.");
      }
    }

    return activeCount;
View Full Code Here

Examples of com.jbidwatcher.auction.server.AuctionStats

    }

    AuctionServerManager.setEntryManager(this);
    AuctionServerManager.getInstance().fromXML(auctionsXML);

    AuctionStats as = AuctionServerManager.getInstance().getStats();

    int savedCount = Integer.parseInt(JConfig.queryConfiguration("last.auctioncount", "-1"));
    if(as != null) {
      if(as.getCount() != auctionTotal || (savedCount != -1 && as.getCount() != savedCount)) {
        MQFactory.getConcrete("Swing").enqueue("NOTIFY Failed to load all auctions from XML file.");
      }
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.