Examples of TorrentStats


Examples of su.lafayette.udptracker.models.TorrentStats

      Query leechersQuery = Datastore.instance().createQuery(Peer.class);
      leechersQuery.field("infoHash").equal(infoHash);
      leechersQuery.field("left").greaterThan(0);

      TorrentStats torrentStats = new TorrentStats();
      torrentStats.infoHash = infoHash;
      torrentStats.seeders = (int)seedersQuery.countAll();
      torrentStats.completed = 0; // TODO: Для этого поля нам понадобится вести статистику загрузок.
      torrentStats.leechers = (int)leechersQuery.countAll();
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.