public class LoadDistributorV2 extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
buddySelectionPolicy |
static int |
dispatchThreadSleepTime |
Boolean |
distributorInitialized |
static String |
POLICY_MAX_QUEUE |
static String |
POLICY_MIN_QUEUE |
static String |
POLICY_RANDOM |
static String |
POLICY_ROUND_ROBIN |
static int |
queueDispatchSize |
static int |
queueDispatchTimeout |
static float |
ratioOfLocalTask |
| Constructor and Description |
|---|
LoadDistributorV2(LocalWorkpoolImpl wpoolHandle)
Constructor function
|
| Modifier and Type | Method and Description |
|---|---|
void |
distributeTasks(Vector<Task> tasksCreated)
Distribute the task in the queue based on affinity,
then divide among self and chosen buddy
|
long |
getPendingTaskCount()
return the count of the pending task in the queue
|
public Boolean distributorInitialized
public static int queueDispatchTimeout
public static int queueDispatchSize
public static float ratioOfLocalTask
public static final String POLICY_RANDOM
public static final String POLICY_ROUND_ROBIN
public static final String POLICY_MIN_QUEUE
public static final String POLICY_MAX_QUEUE
public static final int dispatchThreadSleepTime
public static String buddySelectionPolicy
public LoadDistributorV2(LocalWorkpoolImpl wpoolHandle)
wpoolHandle - public long getPendingTaskCount()
public void distributeTasks(Vector<Task> tasksCreated) throws RemoteException
tasksCreated - RemoteException