Package org.moparscape.msc.gs.model.snapshot

Examples of org.moparscape.msc.gs.model.snapshot.Snapshot


      if (lastCleanedChatlogsOutput > 60 * 5) {
        Logger.println("----------------------------------------------");
        Logger.println(world.getSnapshots().size() + " items on deque");
      }
      Iterator<Snapshot> i = world.getSnapshots().descendingIterator();
      Snapshot s = null;
      while (i.hasNext()) {
        s = i.next();
        if (curTime - s.getTimestamp() > 60000) {
          i.remove();
          s = null;
        } else {
          s = null;
        }
View Full Code Here


    StringBuilder chatlog = new StringBuilder();
    Iterator<Snapshot> i = Instance.getWorld().getSnapshots()
        .descendingIterator();
    while (i.hasNext()) {
      Snapshot s = i.next();
      if (s instanceof Chatlog) {
        Chatlog cl = (Chatlog) s;
        if (cl.getRecievers().contains(a) || cl.getOwner().equals(a)) {
          chatlog.append((cl.getTimestamp() / 1000) + " <"
              + cl.getOwner() + "> " + cl.getMessage() + "\n");
View Full Code Here

  public synchronized void submitDupeData(String username, Long hash) {
    StringBuilder data = new StringBuilder();
    Iterator<Snapshot> i = Instance.getWorld().getSnapshots()
        .descendingIterator();
    while (i.hasNext()) {
      Snapshot s = i.next();
      if (s instanceof Chatlog) {
        Chatlog cl = (Chatlog) s;
        if (cl.getRecievers().contains(username)
            || cl.getOwner().equals(username)) {
          data.append((cl.getTimestamp() / 1000) + " <"
View Full Code Here

TOP

Related Classes of org.moparscape.msc.gs.model.snapshot.Snapshot

Copyright © 2018 www.massapicom. 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.