Package com.aelitis.azureus.plugins.extseed

Examples of com.aelitis.azureus.plugins.extseed.ExternalSeedPlugin


     
                  PluginInterface pi = AzureusCoreFactory.getSingleton().getPluginManager().getPluginInterfaceByClass(ExternalSeedPlugin.class);
                 
                  if ( pi != null ){
                   
                    ExternalSeedPlugin ext_seed_plugin = (ExternalSeedPlugin)pi.getPlugin();
                   
                    ext_seed_plugin.downloadChanged( PluginCoreUtils.wrap( dms[0] ));
                  }
           
                }catch (Throwable e){
           
                  Debug.printStackTrace( e );
View Full Code Here


  public void
  addHTTPSeed(
    String  address,
    int    port )
  {
    ExternalSeedPlugin  plugin = getExternalSeedPlugin();

    try{
      if ( plugin != null ){
       
        Map config = new HashMap();
 
        List urls = new ArrayList();
       
        String  seed_url = "http://" + UrlUtils.convertIPV6Host(address) + ":" + port + "/webseed";
       
        urls.add( seed_url.getBytes());
 
        config.put("httpseeds", urls);
 
        Map params = new HashMap();
 
        params.put( "supports_503", new Long(0));
        params.put( "transient", new Long(1));
 
        config.put("httpseeds-params", params);
 
        List<ExternalSeedPeer> new_seeds = plugin.addSeed( org.gudy.azureus2.pluginsimpl.local.download.DownloadManagerImpl.getDownloadStatic( download_manager ), config);
       
        if ( new_seeds.size() > 0 ){
         
          List<ExternalSeedPeer> to_remove = new ArrayList<ExternalSeedPeer>();
         
View Full Code Here

          }
       
            // http seeds
         
          try{
            ExternalSeedPlugin esp = DownloadManagerController.getExternalSeedPlugin();
           
            if ( esp != null ){
                         
            tps.add( esp.getTrackerPeerSource( PluginCoreUtils.wrap( this ) ));
           }
          }catch( Throwable e ){
          }
         
            // dht
View Full Code Here

TOP

Related Classes of com.aelitis.azureus.plugins.extseed.ExternalSeedPlugin

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.