org.gudy.azureus2.core3.util
Class AERunStateHandler

java.lang.Object
  extended by org.gudy.azureus2.core3.util.AERunStateHandler

public class AERunStateHandler
extends Object


Nested Class Summary
static interface AERunStateHandler.RunStateChangeListener
           
 
Field Summary
static long RS_ALL_ACTIVE
           
static long RS_ALL_LOW
           
static long RS_DELAYED_UI
           
static long RS_DHT_SLEEPING
           
static String[] RS_MODE_NAMES
           
static long[] RS_MODES
           
static long RS_UDP_NET_ONLY
           
 
Constructor Summary
AERunStateHandler()
           
 
Method Summary
static void addListener(AERunStateHandler.RunStateChangeListener l, boolean fire_now)
           
static long getResourceMode()
           
static boolean isDelayedUI()
           
static boolean isDHTSleeping()
           
static boolean isUDPNetworkOnly()
           
static void removeListener(AERunStateHandler.RunStateChangeListener l)
           
static void setResourceMode(long new_mode)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RS_DELAYED_UI

public static final long RS_DELAYED_UI
See Also:
Constant Field Values

RS_UDP_NET_ONLY

public static final long RS_UDP_NET_ONLY
See Also:
Constant Field Values

RS_DHT_SLEEPING

public static final long RS_DHT_SLEEPING
See Also:
Constant Field Values

RS_ALL_ACTIVE

public static final long RS_ALL_ACTIVE
See Also:
Constant Field Values

RS_ALL_LOW

public static final long RS_ALL_LOW
See Also:
Constant Field Values

RS_MODES

public static final long[] RS_MODES

RS_MODE_NAMES

public static final String[] RS_MODE_NAMES
Constructor Detail

AERunStateHandler

public AERunStateHandler()
Method Detail

isDelayedUI

public static boolean isDelayedUI()

isUDPNetworkOnly

public static boolean isUDPNetworkOnly()

isDHTSleeping

public static boolean isDHTSleeping()

getResourceMode

public static long getResourceMode()

setResourceMode

public static void setResourceMode(long new_mode)

addListener

public static void addListener(AERunStateHandler.RunStateChangeListener l,
                               boolean fire_now)

removeListener

public static void removeListener(AERunStateHandler.RunStateChangeListener l)