Package org.gudy.azureus2.core3.peer

Examples of org.gudy.azureus2.core3.peer.PEPeer


    super(COLUMN_ID, ALIGN_TRAIL, POSITION_INVISIBLE, 35, table_id);
    setRefreshInterval(INTERVAL_LIVE);
  }

  public void refresh(TableCell cell) {
    PEPeer peer = (PEPeer)cell.getDataSource();
    long value = (peer == null) ? 0 : peer.getStats().getDownloadRateLimitBytesPerSecond();
    if (!cell.setSortValue(value) && cell.isValid())
      return;
   
    if(value == -1) {
      cell.setText(MessageText.getString("MyTorrents.items.DownSpeedLimit.disabled"));
View Full Code Here


    super(COLUMN_ID, ALIGN_CENTER, POSITION_INVISIBLE, 40, table_id);
    setRefreshInterval(INTERVAL_LIVE);
  }

  public void refresh(TableCell cell) {
    PEPeer peer = (PEPeer)cell.getDataSource();
    int value = (peer == null) ? -1 : peer.getMessagingMode();

    if (!cell.setSortValue(value) && cell.isValid())
      return;
   
    String text;
View Full Code Here

    setRefreshInterval(INTERVAL_LIVE);
    setObfustication(true);
  }

  public void refresh(TableCell cell) {
    PEPeer peer = (PEPeer) cell.getDataSource();
    String addr = peer == null ? "" : peer.getIPHostName();
    if (cell.setText(addr) && !addr.equals(peer.getIp()))
    {
      String[] l = addr.split("\\.");
      StringBuffer buf = new StringBuffer();
      for (int i = l.length-1; i >= 0 ; i--)
      {
View Full Code Here

      CAT_PEER_IDENTIFICATION,
    });
  }

  public void refresh(TableCell cell) {
    PEPeer peer = (PEPeer) cell.getDataSource();
    if (peer == null) {cell.setText(""); return;}
    byte[] peer_id = peer.getId();
    if (peer_id == null) {cell.setText(""); return;}
    cell.setText(ByteFormatter.nicePrint(peer_id));
  }
View Full Code Here

      CAT_PROGRESS,
    });
  }

  public void refresh(TableCell cell) {
    PEPeer peer = (PEPeer)cell.getDataSource();
    int value = (peer == null) ? 0 : peer.getPercentDoneInThousandNotation();

    if (!cell.setSortValue(value) && cell.isValid())
      return;

    cell.setText(DisplayFormatters.formatPercentFromThousands(value));
View Full Code Here

    super(COLUMN_ID, ALIGN_CENTER, POSITION_INVISIBLE, 20, table_id);
    setRefreshInterval(INTERVAL_LIVE);
  }

  public void refresh(TableCell cell) {
    PEPeer peer = (PEPeer) cell.getDataSource();
    boolean lan = (peer == null) ? false : peer.isLANLocal();

    if (!cell.setSortValue(lan ? 1 : 0) && cell.isValid())
      return;

    cell.setText(lan ? "*" : "");
View Full Code Here

    super(COLUMN_ID, ALIGN_CENTER, POSITION_INVISIBLE, 50, table_id);
    setRefreshInterval(INTERVAL_LIVE);
  }

  public void refresh(TableCell cell) {
    PEPeer peer = (PEPeer)cell.getDataSource();
    String value = peer == null ? "" : peer.getProtocol();

    if (!cell.setSortValue(value) && cell.isValid())
      return;

    cell.setText(value);
View Full Code Here

    super(COLUMN_ID, ALIGN_CENTER, POSITION_INVISIBLE, 20, table_id);
    setRefreshInterval(INTERVAL_LIVE);
  }

  public void refresh(TableCell cell) {
    PEPeer peer = (PEPeer)cell.getDataSource();
    long value = (peer == null) ? 0 : (peer.isInterested() ? 1 : 0);

    if (!cell.setSortValue(value) && cell.isValid())
      return;

    cell.setText((value == 1) ? "*" : "");
View Full Code Here

      CAT_CONNECTION,
    });
  }

  public void refresh(TableCell cell) {
    PEPeer peer = (PEPeer)cell.getDataSource();
    long value = (peer == null) ? 0 : (peer.isIncoming() ? 1 : 0);

    if (!cell.setSortValue(value) && cell.isValid())
      return;

    cell.setText((value == 1) ? "R" : "L");
View Full Code Here

      CAT_PROTOCOL,
    });
  }

  public void refresh(TableCell cell) {
    PEPeer peer = (PEPeer) cell.getDataSource();
    boolean bSnubbed = (peer == null) ? false : peer.isSnubbed();

    if (!cell.setSortValue(bSnubbed ? 1 : 0) && cell.isValid())
      return;

    cell.setText(bSnubbed ? "*" : "");
View Full Code Here

TOP

Related Classes of org.gudy.azureus2.core3.peer.PEPeer

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.