Package org.gudy.azureus2.core3.logging.impl

Examples of org.gudy.azureus2.core3.logging.impl.FileLogging.addListener()


              }
            }
          }
        }
       
        gm.addListener(
          new GlobalManagerAdapter()
          {
            public void
            downloadManagerAdded(
              DownloadManager  dm )
View Full Code Here


          stats.errorInCompleteTooltip = incomp_error;
        }
      }
    };

    gm.addListener(new GlobalManagerAdapter() {
      public void downloadManagerRemoved(DownloadManager dm) {
        downloadManagerRemoved(dm, statsNoLowNoise);
        downloadManagerRemoved(dm, statsWithLowNoise);
      }
View Full Code Here

                          Debug.out(e);
                        }
                      }

                    };
                    gm.addListener(l, false);

                    if (playNow || playPrepare) {
                      PlayNowList.add(hw);
                    }
View Full Code Here

  public void addFileLoggingListener(final FileLoggerAdapter listener) {
    FileLogging fileLogging = org.gudy.azureus2.core3.logging.Logger.getFileLoggingInstance();
    if (fileLogging == null)
      return;
   
    fileLogging.addListener(new PluginFileLoggerAdapater(fileLogging, listener));
  }

  public void removeFileLoggingListener(FileLoggerAdapter listener) {
    FileLogging fileLogging = org.gudy.azureus2.core3.logging.Logger.getFileLoggingInstance();
    if (fileLogging == null)
View Full Code Here

         
          TOTorrent t = getTorrent();

          if ( t != null ){

            t.addListener( tol );
           
            TOTorrentAnnounceURLSet[] sets = t.getAnnounceURLGroup().getAnnounceURLSets();
           
            if ( sets.length == 0 ){
             
View Full Code Here

    String pieceSizeStr = (String) parameters.get("force_piece_size_pow2");
    if(pieceSizeStr != null) {
      try {    
        long pieceSize = 1l << Integer.parseInt(pieceSizeStr);
        TOTorrentCreator creator = TOTorrentFactory.createFromFileOrDirWithFixedPieceLength(fSrc,url,pieceSize);
        creator.addListener( this );
        torrent = creator.create();
      }catch(Exception e) {
        e.printStackTrace();
        return;
      }
View Full Code Here

        return;
      }
    } else {
      try {
        TOTorrentCreator creator = TOTorrentFactory.createFromFileOrDirWithComputedPieceLength(fSrc,url);
        creator.addListener( this );
        torrent = creator.create();
      } catch(Exception e) {
        e.printStackTrace();
        return;
      }
View Full Code Here

      // use a facade here to delay loading the actual torrent until the
      // download is activated
 
    TRTrackerAnnouncer result = TRTrackerAnnouncerFactory.create( torrent_facade, true );
   
    result.addListener(
        new TRTrackerAnnouncerListener()
        {
          public void
          receivedTrackerResponse(
            TRTrackerAnnouncerResponse  response )
View Full Code Here

  {
    PluginInterface default_pi = PluginInitializer.getDefaultInterface();

    mi_ta = default_pi.getTorrentManager().getPluginAttribute( "sm_metainfo" );
   
    default_pi.addListener(
      new PluginListener()
      {
        public void
        initializationComplete()
        {
View Full Code Here

     
      getExtensions( fm, true );
     
    }else{
     
      pi.addListener(
        new PluginListener()
        {
          public void
          initializationComplete()
          {
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.