Examples of PEPeer


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

    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

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

      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

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

      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

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

    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

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

    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

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

    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

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

      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

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

      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

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

      CAT_BYTES,
    });
  }

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

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

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

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

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

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

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

    cell.setText(DisplayFormatters.formatByteCountToKiBEtc(value));
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.