Examples of AuctionServerInterface


Examples of com.jbidwatcher.auction.AuctionServerInterface

    if(cmd.equals("TIMECHECK")) {
      if(PauseManager.getInstance().isPaused()) {
        //  Punt, and let the time drift until the next update.
        return;
      }
      AuctionServerInterface defaultServer = getServer();

      defaultServer.reloadTime();

      long servTime = defaultServer.getServerTimeDelta();
      Date now = new Date(System.currentTimeMillis() + servTime);
      MQFactory.getConcrete("Swing").enqueue("Server time is now: " + now);
    }
  }
View Full Code Here

Examples of com.jbidwatcher.auction.AuctionServerInterface

      MQFactory.getConcrete("Swing").enqueue("Server time is now: " + now);
    }
  }

  public String getDefaultServerTime() {
    AuctionServerInterface defaultServer = getServer();
    return defaultServer.getTime();
  }
View Full Code Here

Examples of com.jbidwatcher.auction.AuctionServerInterface

      MQFactory.getConcrete("redraw").enqueue(ae.getIdentifier());
    }
  }

  private void DoShowTime(Component src, AuctionEntry ae) {
    AuctionServerInterface as = AuctionServerManager.getInstance().getServer();
    if(ae != null) as = ae.getServer();

    String prompt = "<html><body><table>";
    prompt += "<tr><td><b>Current time:</b></td><td>" + new Date() + "</td></tr>";
    prompt += "<tr><td><b>Page load time:</td><td>" + as.getPageRequestTime() + "</td></tr>";
    prompt += "<tr><td><b>eBay time delta:</td><td>" + as.getServerTimeDelta() + "</td></tr>";
    prompt += "</table></body></html>";

    JOptionPane jop = new JOptionPane(prompt, JOptionPane.INFORMATION_MESSAGE);
    JDialog jdTime = jop.createDialog(src, "Auction Server Time Information");
    jdTime.addWindowListener(new WindowAdapter() {
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.