Package com.aelitis.azureus.core.download

Examples of com.aelitis.azureus.core.download.DiskManagerFileInfoFile$channel$request


      int file_index = ImportExportUtils.importInt( map, "file_index" );
     
      file = queue.lookupFile( dl_hash, file_index );
    }else{
   
      file = new DiskManagerFileInfoFile( new File( file_str ));
    }
   
    transcode_requirement  = ImportExportUtils.importInt( map, "trans_req", TranscodeTarget.TRANSCODE_UNKNOWN );
   
    auto_retry_enabled = ImportExportUtils.importBoolean( map, "ar_enable", true );
View Full Code Here


       
        // if we're not transcoding then always return the source even if doesn't exist
     
      if ( link_file.exists() || getBoolean( KEY_NO_XCODE )){
   
        return( new DiskManagerFileInfoFile( link_file ));
      }
    }
   
    // Debug.out( "Source file doesn't exist (hash=" + hash + ",link=" + link +"), returning cache file" );
   
    return( new DiskManagerFileInfoFile( getCacheFile()));
  }
View Full Code Here

   
    File  cache_file = getCacheFile();
   
    if ( cache_file.exists() && cache_file.length() > 0 ){
   
      return( new DiskManagerFileInfoFile( cache_file ));
    }
   
    if ( getBoolean( KEY_NO_XCODE )){
     
      DiskManagerFileInfo res = getSourceFile();
     
      if ( res instanceof DiskManagerFileInfoFile ){
       
        return( res );
       
      }else{
       
        try{
          return( new DiskManagerFileInfoDelegate( res ));
         
        }catch( Throwable e ){
         
          Debug.out( e );
         
          return( res );
        }
      }
    }
   
      // Debug.out( "Target file for " + cache_file + " doesn't exist" );
   
    return( new DiskManagerFileInfoFile( cache_file ));
  }
View Full Code Here

      try{
        DeviceManagerFactory.getSingleton().getTranscodeManager().getQueue().add(
          target,
          profile,
          new DiskManagerFileInfoFile( file ),
          transcode_requirement,
          false );
       
      }catch( Throwable e ){
       
View Full Code Here

     */
    private static UnitAction convertMethodToUnitAction(final Method method,
        final Resource resource, final String path) {
        String id = method.getId();
        String methodName = method.getName();
        Request request = method.getRequest();

        List<Parameter> parameters = new ArrayList<Parameter>();
        if (request != null) {
            List<Param> params = request.getParamList();
            if (params != null) {
                for (Param param : params) {
                    Parameter parameter = convertParameter(param);
                    parameter.setStyle(Parameter.ParameterStyle.QUERY);
                    parameters.add(parameter);
View Full Code Here

  // These extension requests expect replies
  XProtocolInfo.extensionRequestExpectsReply(major_opcode, 0, 32); // QueryVersion
  XProtocolInfo.extensionRequestExpectsReply(major_opcode, 7, 32); // GetOverlayWindow

  // check version before any other operations
  Request request = new Request (display, major_opcode, 0, 3);
  request.write4 (CLIENT_MAJOR_VERSION);
  request.write4 (CLIENT_MINOR_VERSION);

  Data reply = display.read_reply (request);
  server_major_version = reply.read4 (8);
  server_minor_version = reply.read4 (12);
    }
View Full Code Here

   
    /**
     * Composite opcode 1 - redirect window
     */
    public void redirectWindow(Window window, int update) {
  Request request = new Request (display, major_opcode, 1, 3);
  request.write4 (window.id);
  request.write1 (update);
  request.write1 (0);
  request.write2 (0);
  display.send_request (request);
    }
View Full Code Here

   
    /**
     * Composite opcode 2 - redirect subwindows
     */
    public void redirectSubwindows(Window window, int update) {
  Request request = new Request (display, major_opcode, 2, 3);
  request.write4 (window.id);
  request.write1 (update);
  request.write1 (0);
  request.write2 (0);
  display.send_request (request);
    }
View Full Code Here

   
    /**
     * Composite opcode 3 - unredirect window
     */
    public void unredirectWindow(Window window, int update) {
  Request request = new Request (display, major_opcode, 3, 3);
  request.write4 (window.id);
  request.write1 (update);
  request.write1 (0);
  request.write2 (0);
  display.send_request (request);
    }
View Full Code Here

   
    /**
     * Composite opcode 4 - unredirect subwindows
     */
    public void unredirectSubwindows(Window window, int update) {
  Request request = new Request (display, major_opcode, 4, 3);
  request.write4 (window.id);
  request.write1 (update);
  request.write1 (0);
  request.write2 (0);
  display.send_request (request);
    }
View Full Code Here

TOP

Related Classes of com.aelitis.azureus.core.download.DiskManagerFileInfoFile$channel$request

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.