Package org.gudy.azureus2.core3.util

Examples of org.gudy.azureus2.core3.util.AERunnable


   * @param e event information
   */
  public final void handleEvent(Event e) {
    event = e;
    if (getOffSWT) {
      Utils.getOffOfSWTThread(new AERunnable() {
        public void runSupport() {
          tv.runForSelectedRows(TableSelectedRowsListener.this);
        }
      });
    } else {
View Full Code Here


        if ( _async ){
         
          new DelayedEvent(
            "search:delay",
            5000,
            new AERunnable()
            {
              public void
              runSupport()
              {
                sendBeacon();
View Full Code Here

      Debug.out(e);
    }
  }

  public void hide() {
    Utils.execSWTThread(new AERunnable() {
      public void runSupport() {
        swt_hide();
      }
    });
  }
View Full Code Here

  public void updateUI() {
    if (iview == null) {
      return;
    }
    Utils.execSWTThread(new AERunnable() {
      public void runSupport() {
        if (iview != null && !isDisposed()) {
          iview.refresh();
        }
        if (isPullTitleFromIView() && isAdded()) {
View Full Code Here

    synchronized( this ){

      copy_outstanding = true;
   
      async_dispatcher.dispatch(
        new AERunnable()
        {
          public void
          runSupport()
          {
            setPersistentBooleanProperty( PP_COPY_OUTSTANDING, true );
          }
        });
    }
   
    while( true ){
     
      if ( copy_sem.reserve( 60*1000 )){
       
        while( copy_sem.reserveIfAvailable());
      }
           
      boolean  auto_start = getAutoStartDevice();
     
      synchronized( this ){

        if ( itunes == null || ( !is_running && !( auto_start && is_installed ))){
         
          if ( !( copy_outstanding || copy_outstanding_set )){
           
            copy_thread = null;
           
            break;
          }
         
          continue;
        }

        copy_outstanding_set = false;
      }
           
      TranscodeFileImpl[] files = getFiles();
       
      List<TranscodeFileImpl>  to_copy = new ArrayList<TranscodeFileImpl>();
       
      boolean  borked_exist = false;
     
      for ( TranscodeFileImpl file: files ){
         
        if ( file.isComplete() && !file.isCopiedToDevice()){
         
          if ( file.getCopyToDeviceFails() < 3 ){
         
            to_copy.add( file );
           
          }else{
           
            borked_exist = true;
          }
        }
      }
       
      if ( borked_exist ){
       
        setError( COPY_ERROR_KEY, MessageText.getString( "device.error.copyfail2") );
      }
     
      synchronized( this ){

        if ( to_copy.size() == 0 && !copy_outstanding_set && !borked_exist ){
           
          copy_outstanding = false;
         
          async_dispatcher.dispatch(
            new AERunnable()
            {
              public void
              runSupport()
              {
                setError( COPY_ERROR_KEY, null );
View Full Code Here

        sendHave( num_pieces );
       
        new DelayedEvent(
          "NetStatus:delayClose",
          5000,
          new AERunnable()
          {
            public void
            runSupport()
            {
              if ( !closed ){
View Full Code Here

          logger.log( "Node " + reporter.getString() + " has reported that the external IP address is '" + new_address + "': deferring new checks" );

          new DelayedEvent(
            "DHTTransportUDP:delayAC",
            30*1000,
            new AERunnable()
            {
              public void
              runSupport()
              {
                try{
View Full Code Here

      bt_tester.setOutboundConnectionsComplete();
     
      new DelayedEvent(
        "NetStatus:killer",
        10*1000,
        new AERunnable()
        {
          public void
          runSupport()
          {
            listener.log( "Destroying tester" );
View Full Code Here

    final TranscodeAnalysisListener  listener )
 
    throws TranscodeException
  {
    anaylsis_dispatcher.dispatch(
      new AERunnable()
      {
        public void
        runSupport()
        {
          try{
View Full Code Here

     
      config_dirty = true;
   
      new DelayedEvent(
        "TranscodeQueue:save", 5000,
        new AERunnable()
        {
          public void
          runSupport()
          {
            synchronized( TranscodeQueueImpl.this ){
View Full Code Here

TOP

Related Classes of org.gudy.azureus2.core3.util.AERunnable

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.