Examples of UTTimerEventPerformer


Examples of org.gudy.azureus2.plugins.utils.UTTimerEventPerformer

    final int sample_frequency    = 60*1000;
    final int sample_stats_ticks  = 15// every 15 mins

    plugin_interface.getUtilities().createTimer("DHTStats", true ).addPeriodicEvent(
        sample_frequency,
        new UTTimerEventPerformer()
        {
          public void
          perform(
            UTTimerEvent    event )
          {
View Full Code Here

Examples of org.gudy.azureus2.plugins.utils.UTTimerEventPerformer

          }
        });
   
    plugin_interface.getUtilities().createTimer("DHT Tracker", true ).addPeriodicEvent(
      15000,
      new UTTimerEventPerformer()
      {
        private int  ticks;
       
        public void
        perform(
View Full Code Here

Examples of org.gudy.azureus2.plugins.utils.UTTimerEventPerformer

   
    plugin_interface.getDownloadManager().addListener( this );
   
    plugin_interface.getUtilities().createTimer("DownloadRules", true ).addPeriodicEvent(
      10000,
      new UTTimerEventPerformer()
      {
        public void
        perform(
          UTTimerEvent event)
        {
View Full Code Here

Examples of org.gudy.azureus2.plugins.utils.UTTimerEventPerformer

     
      storage_manager.importContacts( dht );
     
      plugin_interface.getUtilities().createTimer( "DHTExport", true ).addPeriodicEvent(
          10*60*1000,
          new UTTimerEventPerformer()
          {
            public void
            perform(
              UTTimerEvent    event )
            {
View Full Code Here

Examples of org.gudy.azureus2.plugins.utils.UTTimerEventPerformer

    UTTimer  timer = plugin_interface.getUtilities().createTimer(
        "DHTSpeedTester:finder", true );
   
    timer.addPeriodicEvent(
        5000,
        new UTTimerEventPerformer()
        {
          public void
          perform(
            UTTimerEvent event)
          {
            findContacts()
          }
        });
   
    timer.addPeriodicEvent(
        1000,
        new UTTimerEventPerformer()
        {
          int  tick_count;
         
          public void
          perform(
View Full Code Here

Examples of org.gudy.azureus2.plugins.utils.UTTimerEventPerformer

            if ( schedule_event ){
             
              timer.addEvent(
                  target_time,
                  new UTTimerEventPerformer()
                  {
                    public void
                    perform(
                      UTTimerEvent    event )
                    {
View Full Code Here

Examples of org.gudy.azureus2.plugins.utils.UTTimerEventPerformer

        }
      });

    // Auto-refresh mappings every minute when enabled.
    final BooleanParameter auto_refresh_on_bad_nat_param = upnp_config.addBooleanParameter2( "upnp.refresh_on_bad_nat", "upnp.refresh_mappings_on_bad_nat", false);
    plugin_interface.getUtilities().createTimer("upnp mapping auto-refresh", true).addPeriodicEvent(1*60*1000, new UTTimerEventPerformer() {
      private long last_bad_nat = 0;
      public void perform(UTTimerEvent event) {
        if (upnp == null) {return;}
        if (!auto_refresh_on_bad_nat_param.getValue()) {return;}
        if (!upnp_enable_param.getValue()) {return;}
View Full Code Here

Examples of org.gudy.azureus2.plugins.utils.UTTimerEventPerformer

      
        tim1 = pluginInterface.getUtilities().createTimer("poo");
       
        tim1.addPeriodicEvent((pluginInterface.getPluginconfig().getPluginIntParameter("WebUpdatePeriod",60)*60*1000),
       
        new UTTimerEventPerformer()

        {

        public void

View Full Code Here

Examples of org.gudy.azureus2.plugins.utils.UTTimerEventPerformer

  {
    tim2 = pluginInterface.getUtilities().createTimer("daily_run");

    tim2.addPeriodicEvent(1000 /*milliseconds*/ * 60 /*seconds*/ * 60 /*minutes*/ * 24 /*hour*/,
           
    new UTTimerEventPerformer()

    {

    public void

View Full Code Here

Examples of org.gudy.azureus2.plugins.utils.UTTimerEventPerformer

    {
        TIMER1 = Plugin.getPluginInterface().getUtilities().createTimer("timer1");
       
        TIMER1.addPeriodicEvent(1000,
               
        new UTTimerEventPerformer()

        {

        public void
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.