Package org.gudy.azureus2.plugins.ipc

Examples of org.gudy.azureus2.plugins.ipc.IPCInterface.invoke()


    IPCInterface ipc = pi.getIPC();
   
    try{
      if ( ipc.canInvoke( "handleURLProtocol", new Object[]{ this, arg })){
         
        input_stream = (InputStream)ipc.invoke( "handleURLProtocol", new Object[]{ this, arg });

      }else{
     
        input_stream = (InputStream)ipc.invoke( "handleURLProtocol", new Object[]{ arg });
      }
View Full Code Here


         
        input_stream = (InputStream)ipc.invoke( "handleURLProtocol", new Object[]{ this, arg });

      }else{
     
        input_stream = (InputStream)ipc.invoke( "handleURLProtocol", new Object[]{ arg });
      }
    }catch( IPCException ipce ){
     
      Throwable e = ipce;
     
View Full Code Here

    }
   
    IPCInterface  ipc = itunes.getIPC();
   
    try{
      Map<String,Object> properties = (Map<String,Object>)ipc.invoke( "getProperties", new Object[]{} );

      is_installed = (Boolean)properties.get( "installed" );
     
      boolean  was_running = is_running;
     
View Full Code Here

            if ( !is_running ){
             
              log( "Auto-starting iTunes" );
            }

            Map<String,Object> result = (Map<String,Object>)ipc.invoke( "addFileToLibrary", new Object[]{ file } );
   
            Throwable error = (Throwable)result.get( "error" );
           
            if ( error != null ){
             
View Full Code Here

          throw( new TranscodeException( "Media Server plugin not found" ));
        }
       
        IPCInterface av_ipc = av_pi.getIPC();
       
        String url_str = (String)av_ipc.invoke( "getContentURL", new Object[]{ input });
   
        if ( url_str != null && url_str.length() > 0 ){
       
          source_url = new URL( url_str );
     
View Full Code Here

        final Object analysis_context;
       
        if ( source_url != null ){
         
          analysis_context = ipc.invoke(
            "analyseContent",
            new Object[]{
              source_url,
              profile.getName() });
        }else{
View Full Code Here

            new Object[]{
              source_url,
              profile.getName() });
        }else{
         
          analysis_context = ipc.invoke(
            "analyseContent",
            new Object[]{
              source_file,
              profile.getName() });
        }
View Full Code Here

          {
            public void
            cancel()
            {
              try{
                ipc.invoke( "cancelAnalysis", new Object[]{ analysis_context });
               
              }catch( Throwable e ){
               
                Debug.printStackTrace( e );
              }
View Full Code Here

          {
            try{
              while( true ){
                               
                try{
                  Map status = (Map)ipc.invoke( "getAnalysisStatus", new Object[]{ analysis_context });
                 
                  long  state = (Long)status.get( "state" );
                 
                  if ( state == 0 ){
 
View Full Code Here

     
      if ( source_url == null ){
       
        IPCInterface av_ipc = av_pi.getIPC();
       
        String url_str = (String)av_ipc.invoke( "getContentURL", new Object[]{ input });
       
       
        if ( url_str == null || url_str.length() == 0 ){
         
            // see if we can use the file directly
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.