public class oadd.org.apache.drill.exec.resourcemgr.config.selectionpolicy.RandomQueueSelection extends oadd.org.apache.drill.exec.resourcemgr.config.selectionpolicy.AbstractQueueSelectionPolicy
{
private static final org.slf4j.Logger logger;
public void <init>()
{
oadd.org.apache.drill.exec.resourcemgr.config.selectionpolicy.RandomQueueSelection v;
oadd.org.apache.drill.exec.resourcemgr.config.selectionpolicy.QueueSelectionPolicy$SelectionPolicy v;
v := @this: oadd.org.apache.drill.exec.resourcemgr.config.selectionpolicy.RandomQueueSelection;
v = <oadd.org.apache.drill.exec.resourcemgr.config.selectionpolicy.QueueSelectionPolicy$SelectionPolicy: oadd.org.apache.drill.exec.resourcemgr.config.selectionpolicy.QueueSelectionPolicy$SelectionPolicy RANDOM>;
specialinvoke v.<oadd.org.apache.drill.exec.resourcemgr.config.selectionpolicy.AbstractQueueSelectionPolicy: void <init>(oadd.org.apache.drill.exec.resourcemgr.config.selectionpolicy.QueueSelectionPolicy$SelectionPolicy)>(v);
return;
}
public oadd.org.apache.drill.exec.resourcemgr.config.ResourcePool selectQueue(java.util.List, oadd.org.apache.drill.exec.ops.QueryContext, oadd.org.apache.drill.exec.resourcemgr.NodeResources) throws oadd.org.apache.drill.exec.resourcemgr.config.exception.QueueSelectionException
{
java.lang.Object[] v;
oadd.org.apache.drill.exec.resourcemgr.NodeResources v;
org.slf4j.Logger v;
oadd.org.apache.drill.exec.resourcemgr.config.exception.QueueSelectionException v;
oadd.org.apache.drill.exec.ops.QueryContext v;
java.util.List v;
int v;
oadd.org.apache.drill.exec.resourcemgr.config.selectionpolicy.RandomQueueSelection v;
java.lang.Object v;
java.lang.String v, v, v;
oadd.org.apache.drill.exec.proto.UserBitShared$QueryId v;
oadd.org.apache.drill.exec.resourcemgr.config.selectionpolicy.QueueSelectionPolicy$SelectionPolicy v;
v := @this: oadd.org.apache.drill.exec.resourcemgr.config.selectionpolicy.RandomQueueSelection;
v := @parameter: java.util.List;
v := @parameter: oadd.org.apache.drill.exec.ops.QueryContext;
v := @parameter: oadd.org.apache.drill.exec.resourcemgr.NodeResources;
v = interfaceinvoke v.<java.util.List: int size()>();
if v != 0 goto label;
v = new oadd.org.apache.drill.exec.resourcemgr.config.exception.QueueSelectionException;
v = newarray (java.lang.Object)[1];
v = virtualinvoke v.<oadd.org.apache.drill.exec.resourcemgr.config.selectionpolicy.RandomQueueSelection: oadd.org.apache.drill.exec.resourcemgr.config.selectionpolicy.QueueSelectionPolicy$SelectionPolicy getSelectionPolicy()>();
v = virtualinvoke v.<oadd.org.apache.drill.exec.resourcemgr.config.selectionpolicy.QueueSelectionPolicy$SelectionPolicy: java.lang.String toString()>();
v[0] = v;
v = staticinvoke <java.lang.String: java.lang.String format(java.lang.String,java.lang.Object[])>("Input pool list is empty to apply %s selection policy", v);
specialinvoke v.<oadd.org.apache.drill.exec.resourcemgr.config.exception.QueueSelectionException: void <init>(java.lang.String)>(v);
throw v;
label:
staticinvoke <java.util.Collections: void shuffle(java.util.List)>(v);
v = interfaceinvoke v.<java.util.List: java.lang.Object get(int)>(0);
v = <oadd.org.apache.drill.exec.resourcemgr.config.selectionpolicy.RandomQueueSelection: org.slf4j.Logger logger>;
v = interfaceinvoke v.<oadd.org.apache.drill.exec.resourcemgr.config.ResourcePool: java.lang.String getPoolName()>();
v = virtualinvoke v.<oadd.org.apache.drill.exec.ops.QueryContext: oadd.org.apache.drill.exec.proto.UserBitShared$QueryId getQueryId()>();
interfaceinvoke v.<org.slf4j.Logger: void debug(java.lang.String,java.lang.Object,java.lang.Object)>("Selected random pool: {} for query: {}", v, v);
return v;
}
static void <clinit>()
{
org.slf4j.Logger v;
v = staticinvoke <org.slf4j.LoggerFactory: org.slf4j.Logger getLogger(java.lang.Class)>(class "Loadd/org/apache/drill/exec/resourcemgr/config/selectionpolicy/RandomQueueSelection;");
<oadd.org.apache.drill.exec.resourcemgr.config.selectionpolicy.RandomQueueSelection: org.slf4j.Logger logger> = v;
return;
}
}