com.aelitis.azureus.core.peermanager.control.impl
Class PeerControlSchedulerPrioritised

java.lang.Object
  extended by com.aelitis.azureus.core.peermanager.control.impl.PeerControlSchedulerImpl
      extended by com.aelitis.azureus.core.peermanager.control.impl.PeerControlSchedulerPrioritised
All Implemented Interfaces:
PeerControlScheduler, AzureusCoreStatsProvider, ParameterListener

public class PeerControlSchedulerPrioritised
extends PeerControlSchedulerImpl
implements AzureusCoreStatsProvider


Nested Class Summary
protected static class PeerControlSchedulerPrioritised.instanceWrapper
           
 
Field Summary
protected  AEMonitor this_mon
           
 
Fields inherited from class com.aelitis.azureus.core.peermanager.control.impl.PeerControlSchedulerImpl
schedule_count, total_wait_time, useWeights, wait_count, yield_count
 
Fields inherited from interface com.aelitis.azureus.core.peermanager.control.PeerControlScheduler
SCHEDULE_PERIOD_MAX_CATCHUP, SCHEDULE_PERIOD_MILLIS
 
Constructor Summary
PeerControlSchedulerPrioritised()
           
 
Method Summary
 SpeedTokenDispenser getSpeedTokenDispenser()
           
 void register(PeerControlInstance instance)
           
protected  void schedule()
           
 void unregister(PeerControlInstance instance)
           
 void updateScheduleOrdering()
           
 
Methods inherited from class com.aelitis.azureus.core.peermanager.control.impl.PeerControlSchedulerImpl
getSingleton, overrideAllWeightedPriorities, overrideWeightedPriorities, parameterChanged, start, updateAllScheduleOrdering, updateStats
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.aelitis.azureus.core.stats.AzureusCoreStatsProvider
updateStats
 

Field Detail

this_mon

protected final AEMonitor this_mon
Constructor Detail

PeerControlSchedulerPrioritised

public PeerControlSchedulerPrioritised()
Method Detail

schedule

protected void schedule()
Specified by:
schedule in class PeerControlSchedulerImpl

register

public void register(PeerControlInstance instance)
Specified by:
register in interface PeerControlScheduler

unregister

public void unregister(PeerControlInstance instance)
Specified by:
unregister in interface PeerControlScheduler

getSpeedTokenDispenser

public SpeedTokenDispenser getSpeedTokenDispenser()
Specified by:
getSpeedTokenDispenser in interface PeerControlScheduler

updateScheduleOrdering

public void updateScheduleOrdering()
Specified by:
updateScheduleOrdering in interface PeerControlScheduler