public class RequestStarter extends java.lang.Object implements java.lang.Runnable, RandomGrabArrayItemExclusionList
Modifier and Type | Field and Description |
---|---|
static short |
BULK_SPLITFILE_PRIORITY_CLASS
Bulk splitfile fetches
|
static short |
IMMEDIATE_SPLITFILE_PRIORITY_CLASS
FProxy splitfile fetches
|
static short |
INTERACTIVE_PRIORITY_CLASS
FProxy etc
|
static short |
MAXIMUM_PRIORITY_CLASS
Anything more important than FProxy
|
static short |
MINIMUM_FETCHABLE_PRIORITY_CLASS |
static short |
NUMBER_OF_PRIORITY_CLASSES |
static short |
PAUSED_PRIORITY_CLASS
Anything less important than prefetch (redundant??)
|
static short |
PREFETCH_PRIORITY_CLASS
Prefetch
|
static short |
UPDATE_PRIORITY_CLASS
USK updates etc
|
Constructor and Description |
---|
RequestStarter(NodeClientCore node,
BaseRequestThrottle throttle,
java.lang.String name,
RunningAverage averageOutputBytesPerRequest,
RunningAverage averageInputBytesPerRequest,
boolean isInsert,
boolean isSSK,
boolean realTime) |
Modifier and Type | Method and Description |
---|---|
long |
exclude(RandomGrabArrayItem item,
ClientContext context,
long now)
Can this item be excluded, based on e.g.
|
static boolean |
isValidPriorityClass(int prio) |
void |
run() |
java.lang.String |
toString() |
void |
wakeUp()
LOCKING: Caller must avoid locking while calling this function.
|
public static final short MAXIMUM_PRIORITY_CLASS
public static final short INTERACTIVE_PRIORITY_CLASS
public static final short IMMEDIATE_SPLITFILE_PRIORITY_CLASS
public static final short UPDATE_PRIORITY_CLASS
public static final short BULK_SPLITFILE_PRIORITY_CLASS
public static final short PREFETCH_PRIORITY_CLASS
public static final short PAUSED_PRIORITY_CLASS
public static final short NUMBER_OF_PRIORITY_CLASSES
public static final short MINIMUM_FETCHABLE_PRIORITY_CLASS
public RequestStarter(NodeClientCore node, BaseRequestThrottle throttle, java.lang.String name, RunningAverage averageOutputBytesPerRequest, RunningAverage averageInputBytesPerRequest, boolean isInsert, boolean isSSK, boolean realTime)
public static boolean isValidPriorityClass(int prio)
public java.lang.String toString()
toString
in class java.lang.Object
public void run()
run
in interface java.lang.Runnable
public void wakeUp()
public long exclude(RandomGrabArrayItem item, ClientContext context, long now)
exclude
in interface RandomGrabArrayItemExclusionList