Package com.aelitis.azureus.core.download

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


      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

        return channelHandler;
    }

    @Override
    public Channel getChannel() throws IOException {
        final Channel channel = this.channel;
        if(channel == null) {
            synchronized (this) {
                if(this.channel == null) {
                    throw ProtocolMessages.MESSAGES.channelClosed();
                }
View Full Code Here

        if(server == null) {
            ROOT_LOGGER.noServerAvailable(serverName);
            return;
        }
        try {
            final Channel channel = channelAssociation.getChannel();
            channel.addCloseHandler(new CloseHandler<Channel>() {

                public void handleClose(final Channel closed, final IOException exception) {
                    server.callbackUnregistered();
                    domainController.unregisterRunningServer(server.getServerName());
                }
View Full Code Here

        public boolean awaitCompletion(long timeout, TimeUnit unit) throws InterruptedException {
            return super.awaitCompletion(timeout, unit);
        }

        public static SimpleClient create(final RemotingChannelPairSetup setup) {
            final Channel channel = setup.getClientChannel();
            return create(channel, setup.getExecutorService());
        }
View Full Code Here

        this.clientMappingRegistryCollector = clientMappingRegistryCollector;
        this.remoteAsyncInvocationCancelStatus = asyncInvocationCancelStatusService;
    }

    public void startReceiving() {
        final Channel channel = this.channelAssociation.getChannel();
        channel.addCloseHandler(new ChannelCloseHandler());

        channel.receiveMessage(this);
        // listen to module availability/unavailability events
        this.deploymentRepository.addListener(this);
        // listen to new clusters (a.k.a groups) being started/stopped
        this.clientMappingRegistryCollector.addListener(this);
        // Send the cluster topology for existing clusters in the registry
View Full Code Here

            });
            channels.startClientConnetion();
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
        final Channel clientChannel = channels.getClientChannel();
        return ExistingChannelModelControllerClient.createReceiving(clientChannel, channels.getExecutorService());
    }
View Full Code Here

        return channelHandler;
    }

    @Override
    public Channel getChannel() throws IOException {
        final Channel channel = this.channel;
        if(channel == null) {
            synchronized (this) {
                if(this.channel == null) {
                    throw ProtocolMessages.MESSAGES.channelClosed();
                }
View Full Code Here

TOP

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

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.