Package com.aelitis.azureus.plugins.magnet

Examples of com.aelitis.azureus.plugins.magnet.MagnetPlugin


      result_sem.release();
    }
   
      // second try and get via magnet
   
    final MagnetPlugin  magnet_plugin = getMagnetPlugin();
   
    if ( magnet_plugin == null ){
   
      synchronized( result ){
       
        if ( result[0] == null ){
         
          result[0] = new IPCException( "Magnet plugin unavailable" );
        }
      }
       
      result_sem.release();
     
    }else{

      new AEThread2( "BuddyPlugin:mag", true )
      {
        private boolean result_set;
       
        public void
        run()
        {
          try{
           
            if ( buddy.isOnline( true )){
             
              Thread.sleep(10*1000);
            }
           
            synchronized( result ){

              if ( result[0] instanceof byte[] ){
               
                setResult( null );
               
                return;
              }
            }
           
            byte[] torrent_data = magnet_plugin.download(
              new MagnetPluginProgressListener()
              {
                public void
                reportSize(
                  long  size )
View Full Code Here


      log( "    Can't download subscription " + Base32.encode( hash ) + " as feature disabled" );
     
      return( null );
    }
   
    final MagnetPlugin  magnet_plugin = getMagnetPlugin();
 
    if ( magnet_plugin == null ){
   
      log( "    Can't download, no magnet plugin" );
   
      return( null );
    }

    try{
      final InetSocketAddress[] sender = { null };
     
      byte[] torrent_data = magnet_plugin.download(
        new MagnetPluginProgressListener()
        {
          public void
          reportSize(
            long  size )
View Full Code Here

          AzureusCoreComponent component) {
        if (component instanceof PluginInterface) {
          PluginInterface pi = (PluginInterface) component;
          if (pi.getPlugin() instanceof MagnetPlugin) {

            MagnetPlugin magnetPlugin = (MagnetPlugin) pi.getPlugin();
            magnetPlugin.addListener(new MagnetPluginListener() {
              public boolean set(String name, Map values) {
                if (name.equals("AZMSG") && values != null) {
                  String val = (String) values.get("value");
                  if (val.indexOf(";switch-ui;") > 0) {
View Full Code Here

  {
    PluginInterface pi = core.getPluginManager().getPluginInterfaceByClass( MagnetPlugin.class );
   
    if ( pi != null ){
   
      MagnetPlugin temp = (MagnetPlugin)pi.getPlugin();
     
      List  to_add;
     
      synchronized( ExternalStimulusHandler.class ){
       
View Full Code Here

TOP

Related Classes of com.aelitis.azureus.plugins.magnet.MagnetPlugin

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.