Package org.gudy.azureus2.plugins

Examples of org.gudy.azureus2.plugins.PluginInterface.addListener()


    }

    try {
      ResourceDownloader rd = ResourceDownloaderFactoryImpl.getSingleton().create(
          new URL(url));
      rd.addListener(new ResourceDownloaderAdapter() {
        public boolean completed(ResourceDownloader downloader, InputStream is) {
          mon_map.enter();
          try {
            List<ImageDownloaderListener> list = map.get(url);
View Full Code Here


        }
      }
     
      ResourceDownloader rd = rdf.getRetryDownloader( rdf.create( url, true ), retries );
       
      rd.addListener( this );
       
      InputStream  data = rd.download();
           
      try{
       
View Full Code Here

                          config_getter.getPluginStringParameter( "AzTrackerFind_url_user"),
                          config_getter.getPluginStringParameter( "AzTrackerFind_url_password"));
                 // downloader = rdf.getSuffixBasedDownloader( downloader);
                  downloader = rdf.getTimeoutDownloader(downloader, config_getter.getPluginIntParameter("timeout_value")*1000 );
                boolean completed = false;
                 downloader.addListener(new ResourceDownloaderAdapter() {
               
                public boolean completed(ResourceDownloader downloader, InputStream data) {
                  //On completion, process the InputStream to store temp files
                  // System.out.println("completed");
                  
View Full Code Here

           
            
         
         
          //Listener for rd_t (normal downloader)
          rd_t.addListener(new ResourceDownloaderListener()
                    {
                        public boolean
                        completed(
                            final ResourceDownloader downloader,
                            InputStream data )
View Full Code Here

            ResourceDownloaderFactory rdf = pluginInterface.getUtilities().getResourceDownloaderFactory();
            ResourceDownloader rd_t = rdf.create(url_to_get);
            //rd_t = rdf.getRetryDownloader(rd_t, 3);
            rd_t = rdf.getTimeoutDownloader(rd_t,120000);
            rd_t = rdf.getMetaRefreshDownloader(rd_t);
            rd_t.addListener(new ResourceDownloaderListener()
            {

                public void reportPercentComplete(ResourceDownloader downloader, int percentage) {
                   
                    //System.out.println(filename +":"+ percentage);
View Full Code Here

                 
                  ResourceDownloader downloader = rdf.create(url_addressIP,url_user, url_password);
                 // downloader = rdf.getSuffixBasedDownloader( downloader);
                  downloader = rdf.getTimeoutDownloader(downloader, VERSION_TIMEOUT_MILLIS );
                boolean completed = false;
                 downloader.addListener(new ResourceDownloaderAdapter() {
               
                public boolean completed(ResourceDownloader downloader, InputStream data) {
                  //On completion, process the InputStream to store temp files
                  // System.out.println("completed");
                  
View Full Code Here

           
            
         
         
          //Listener for rd_t (normal downloader)
          rd_t.addListener(new ResourceDownloaderListener()
                    {
                        public boolean
                        completed(
                            final ResourceDownloader downloader,
                            InputStream data )
View Full Code Here

             rd_t = rdf.getMetaRefreshDownloader(rd_t);
             //rd_t = rdf.getTorrentDownloader(rd_t,true);
         
         
          //Listener for rd_t
          rd_t.addListener(new ResourceDownloaderListener()
                    {

                        public void reportPercentComplete(ResourceDownloader downloader, int percentage) {
                           System.out.println("completed " + percentage  + "%");
                           
View Full Code Here

      }
    }
   
    if ( listener != null ){
     
      inst.addListener(
        new UpdateCheckInstanceListener()
        {
          public void
          cancelled(
            UpdateCheckInstance    instance )
View Full Code Here

       
          final PluginInterface dummy_plugin_interface = manager.getPluginInterfaceByID( plugin_id, false );
         
          ((InstallablePluginImpl)plugin).addUpdate( inst, pup, dummy_plugin, dummy_plugin_interface );
             
          inst.addListener(
            new UpdateCheckInstanceListener()
            {
              public void
              cancelled(
                UpdateCheckInstance    instance )
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.