Examples of PEPiece


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

         
          String str = picker.getPieceString( i );
         
          line += (line.length()==0?(i + " "):",") + str;
         
          PEPiece piece = pieces[i];

          if ( piece != null ){
         
            line += ":" + piece.getString();
          }
         
          if ( (i+1)%10 == 0 ){
           
            out.println( line );
View Full Code Here

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

    } else if(newDataSource instanceof Object[])
    {
      newDataSource = ((Object[])newDataSource)[0];
      if(newDataSource instanceof PEPiece)
      {
        PEPiece piece = (PEPiece)newDataSource;
        pem = piece.getManager();
      }
       
    } else
      pem = null;
  }
View Full Code Here

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

                  nbAvailable++;
                if (written)
                  continue;
                if (pe_pieces != null)
                {
                  PEPiece pe_piece = pe_pieces[this_index];
                  if (pe_piece != null)
                    written = written || (pe_piece.getLastDownloadTime(now) + 500) > last_draw_time;
                }
                if ((!written) && (!partially_written))
                {
                  final boolean[] blocks = dm_piece.getWritten();
                  if (blocks != null)
View Full Code Here

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

    int  piece_number = y_block*iNumCols + x_block + first_piece;
   
    if ( piece_number >= first_piece && piece_number < first_piece + num_pieces ){
     
      DiskManagerPiece  dm_piece = dm_pieces[piece_number];
      PEPiece        pe_piece = pe_pieces[piece_number];
     
      String  text =  "Piece " + piece_number + ": " + dm_piece.getString();
     
      if ( pe_piece != null ){
       
        text += ", active: " + pe_piece.getString();

      }else{
       
        if ( dm_piece.isNeeded() && !dm_piece.isDone()){
         
View Full Code Here

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

      int iCol = 0;
     
      for (int i = first_piece; i < first_piece+num_pieces; i++) {
     
        DiskManagerPiece  dm_piece = dm_pieces[i];
        PEPiece        pe_piece = pe_pieces[i];
       
        int colorIndex;
     
        int iXPos = iCol * BLOCK_SIZE;
        int iYPos = iRow * BLOCK_SIZE;
 
View Full Code Here

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

    super("type", ALIGN_TRAIL, POSITION_LAST, 80, TableManager.TABLE_TORRENT_PIECES);
    setRefreshInterval(INTERVAL_LIVE);
  }

  public void refresh(TableCell cell) {
    PEPiece piece = (PEPiece)cell.getDataSource();
    long value = (piece == null) ? 0 : piece.getSpeed() >2 ? 1 : 0;
   
    if( !cell.setSortValue( value ) && cell.isValid() ) {
      return;
    }
   
View Full Code Here

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

  public BlockCountItem() {
    super("numberofblocks", ALIGN_TRAIL, POSITION_LAST, 65, TableManager.TABLE_TORRENT_PIECES);
  }

  public void refresh(TableCell cell) {
    PEPiece piece = (PEPiece)cell.getDataSource();
    long value = (piece == null) ? 0 : piece.getNbBlocks();

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

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

      CAT_BYTES,
    });
  }

  public void refresh(TableCell cell) {
    PEPiece piece = (PEPiece)cell.getDataSource();
    long value = (piece == null) ? 0 : piece.getLength();

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

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

      CAT_SWARM,
    });
  }

  public void refresh(TableCell cell) {
    PEPiece piece = (PEPiece)cell.getDataSource();
    long value = (piece == null) ? 0 : piece.getAvailability();

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

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

      CAT_SWARM,
    });
  }

  public void refresh(TableCell cell) {
    PEPiece piece = (PEPiece)cell.getDataSource();
    String[] core_writers = piece.getWriters();
    String[] my_writers = new String[core_writers.length];
    int writer_count = 0;
    Map map = new HashMap();

    for(int i = 0 ; ; ) {
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.