public class org.apache.drill.exec.rpc.RpcConfig extends java.lang.Object
{
static final org.slf4j.Logger logger;
private final java.lang.String name;
private final int timeout;
private final java.util.Map sendMap;
private final java.util.Map receiveMap;
private final java.util.concurrent.Executor executor;
private void <init>(java.lang.String, java.util.Map, java.util.Map, int, java.util.concurrent.Executor)
{
java.util.concurrent.Executor v;
org.apache.drill.exec.rpc.RpcConfig v;
org.apache.drill.shaded.guava.com.google.common.collect.ImmutableMap v, v;
java.util.Map v, v;
int v;
java.lang.String v;
v := @this: org.apache.drill.exec.rpc.RpcConfig;
v := @parameter: java.lang.String;
v := @parameter: java.util.Map;
v := @parameter: java.util.Map;
v := @parameter: int;
v := @parameter: java.util.concurrent.Executor;
specialinvoke v.<java.lang.Object: void <init>()>();
staticinvoke <org.apache.drill.shaded.guava.com.google.common.base.Preconditions: java.lang.Object checkNotNull(java.lang.Object,java.lang.Object)>(v, "Executor must be defined.");
v.<org.apache.drill.exec.rpc.RpcConfig: java.lang.String name> = v;
v.<org.apache.drill.exec.rpc.RpcConfig: int timeout> = v;
v = staticinvoke <org.apache.drill.shaded.guava.com.google.common.collect.ImmutableMap: org.apache.drill.shaded.guava.com.google.common.collect.ImmutableMap copyOf(java.util.Map)>(v);
v.<org.apache.drill.exec.rpc.RpcConfig: java.util.Map sendMap> = v;
v = staticinvoke <org.apache.drill.shaded.guava.com.google.common.collect.ImmutableMap: org.apache.drill.shaded.guava.com.google.common.collect.ImmutableMap copyOf(java.util.Map)>(v);
v.<org.apache.drill.exec.rpc.RpcConfig: java.util.Map receiveMap> = v;
v.<org.apache.drill.exec.rpc.RpcConfig: java.util.concurrent.Executor executor> = v;
return;
}
public java.lang.String getName()
{
java.lang.String v;
org.apache.drill.exec.rpc.RpcConfig v;
v := @this: org.apache.drill.exec.rpc.RpcConfig;
v = v.<org.apache.drill.exec.rpc.RpcConfig: java.lang.String name>;
return v;
}
public int getTimeout()
{
int v;
org.apache.drill.exec.rpc.RpcConfig v;
v := @this: org.apache.drill.exec.rpc.RpcConfig;
v = v.<org.apache.drill.exec.rpc.RpcConfig: int timeout>;
return v;
}
public boolean hasTimeout()
{
int v;
org.apache.drill.exec.rpc.RpcConfig v;
boolean v;
v := @this: org.apache.drill.exec.rpc.RpcConfig;
v = v.<org.apache.drill.exec.rpc.RpcConfig: int timeout>;
if v <= 0 goto label;
v = 1;
goto label;
label:
v = 0;
label:
return v;
}
public java.util.concurrent.Executor getExecutor()
{
java.util.concurrent.Executor v;
org.apache.drill.exec.rpc.RpcConfig v;
v := @this: org.apache.drill.exec.rpc.RpcConfig;
v = v.<org.apache.drill.exec.rpc.RpcConfig: java.util.concurrent.Executor executor>;
return v;
}
public boolean checkReceive(int, java.lang.Class)
{
java.lang.IllegalStateException v, v;
java.lang.Object[] v, v;
java.lang.Integer v, v;
org.apache.drill.exec.rpc.RpcConfig v;
java.util.Map v;
int v;
java.lang.String v, v, v, v, v;
java.lang.Class v, v;
java.lang.Object v;
v := @this: org.apache.drill.exec.rpc.RpcConfig;
v := @parameter: int;
v := @parameter: java.lang.Class;
v = v.<org.apache.drill.exec.rpc.RpcConfig: java.util.Map receiveMap>;
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(v);
v = interfaceinvoke v.<java.util.Map: java.lang.Object get(java.lang.Object)>(v);
if v != null goto label;
v = new java.lang.IllegalStateException;
v = newarray (java.lang.Object)[2];
v = v.<org.apache.drill.exec.rpc.RpcConfig: java.lang.String name>;
v[0] = v;
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(v);
v[1] = v;
v = staticinvoke <java.lang.String: java.lang.String format(java.lang.String,java.lang.Object[])>("%s: There is no defined RpcMessage type for a Rpc receive type number of %s.", v);
specialinvoke v.<java.lang.IllegalStateException: void <init>(java.lang.String)>(v);
throw v;
label:
v = virtualinvoke v.<org.apache.drill.exec.rpc.RpcConfig$RpcMessageType: java.lang.Class getRet()>();
if v == v goto label;
v = new java.lang.IllegalStateException;
v = newarray (java.lang.Object)[3];
v = v.<org.apache.drill.exec.rpc.RpcConfig: java.lang.String name>;
v[0] = v;
v[1] = v;
v = virtualinvoke v.<java.lang.Class: java.lang.String getCanonicalName()>();
v[2] = v;
v = staticinvoke <java.lang.String: java.lang.String format(java.lang.String,java.lang.Object[])>("%s: The definition for receive doesn\'t match implementation code.  The definition is %s however the current receive for this type was of type %s.", v);
specialinvoke v.<java.lang.IllegalStateException: void <init>(java.lang.String)>(v);
throw v;
label:
return 1;
}
public boolean checkSend(com.google.protobuf.Internal$EnumLite, java.lang.Class, java.lang.Class)
{
java.lang.IllegalStateException v, v, v;
java.lang.Object[] v, v, v;
org.apache.drill.exec.rpc.RpcConfig v;
java.util.Map v;
java.lang.String v, v, v, v, v, v, v, v;
com.google.protobuf.Internal$EnumLite v;
java.lang.Class v, v, v, v;
java.lang.Object v;
v := @this: org.apache.drill.exec.rpc.RpcConfig;
v := @parameter: com.google.protobuf.Internal$EnumLite;
v := @parameter: java.lang.Class;
v := @parameter: java.lang.Class;
v = v.<org.apache.drill.exec.rpc.RpcConfig: java.util.Map sendMap>;
v = interfaceinvoke v.<java.util.Map: java.lang.Object get(java.lang.Object)>(v);
if v != null goto label;
v = new java.lang.IllegalStateException;
v = newarray (java.lang.Object)[2];
v = v.<org.apache.drill.exec.rpc.RpcConfig: java.lang.String name>;
v[0] = v;
v[1] = v;
v = staticinvoke <java.lang.String: java.lang.String format(java.lang.String,java.lang.Object[])>("%s: There is no defined RpcMessage type for a Rpc send type of %s.", v);
specialinvoke v.<java.lang.IllegalStateException: void <init>(java.lang.String)>(v);
throw v;
label:
v = virtualinvoke v.<org.apache.drill.exec.rpc.RpcConfig$RpcMessageType: java.lang.Class getSend()>();
if v == v goto label;
v = new java.lang.IllegalStateException;
v = newarray (java.lang.Object)[3];
v = v.<org.apache.drill.exec.rpc.RpcConfig: java.lang.String name>;
v[0] = v;
v[1] = v;
v = virtualinvoke v.<java.lang.Class: java.lang.String getCanonicalName()>();
v[2] = v;
v = staticinvoke <java.lang.String: java.lang.String format(java.lang.String,java.lang.Object[])>("%s: The definition for send doesn\'t match implementation code.  The definition is %s however the current send is trying to send an object of type %s.", v);
specialinvoke v.<java.lang.IllegalStateException: void <init>(java.lang.String)>(v);
throw v;
label:
v = virtualinvoke v.<org.apache.drill.exec.rpc.RpcConfig$RpcMessageType: java.lang.Class getRet()>();
if v == v goto label;
v = new java.lang.IllegalStateException;
v = newarray (java.lang.Object)[3];
v = v.<org.apache.drill.exec.rpc.RpcConfig: java.lang.String name>;
v[0] = v;
v[1] = v;
v = virtualinvoke v.<java.lang.Class: java.lang.String getCanonicalName()>();
v[2] = v;
v = staticinvoke <java.lang.String: java.lang.String format(java.lang.String,java.lang.Object[])>("%s: The definition for send doesn\'t match implementation code.  The definition is %s however the current send is trying to setup an expected reception of an object of type %s.", v);
specialinvoke v.<java.lang.IllegalStateException: void <init>(java.lang.String)>(v);
throw v;
label:
return 1;
}
public boolean checkResponseSend(com.google.protobuf.Internal$EnumLite, java.lang.Class)
{
java.lang.IllegalStateException v, v;
java.lang.Object[] v, v;
java.lang.Integer v;
org.apache.drill.exec.rpc.RpcConfig v;
java.util.Map v;
int v;
java.lang.String v, v, v, v, v;
com.google.protobuf.Internal$EnumLite v;
java.lang.Class v, v;
java.lang.Object v;
v := @this: org.apache.drill.exec.rpc.RpcConfig;
v := @parameter: com.google.protobuf.Internal$EnumLite;
v := @parameter: java.lang.Class;
v = v.<org.apache.drill.exec.rpc.RpcConfig: java.util.Map receiveMap>;
v = interfaceinvoke v.<com.google.protobuf.Internal$EnumLite: int getNumber()>();
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(v);
v = interfaceinvoke v.<java.util.Map: java.lang.Object get(java.lang.Object)>(v);
if v != null goto label;
v = new java.lang.IllegalStateException;
v = newarray (java.lang.Object)[2];
v = v.<org.apache.drill.exec.rpc.RpcConfig: java.lang.String name>;
v[0] = v;
v[1] = v;
v = staticinvoke <java.lang.String: java.lang.String format(java.lang.String,java.lang.Object[])>("%s: There is no defined RpcMessage type for a Rpc response of type %s.", v);
specialinvoke v.<java.lang.IllegalStateException: void <init>(java.lang.String)>(v);
throw v;
label:
v = virtualinvoke v.<org.apache.drill.exec.rpc.RpcConfig$RpcMessageType: java.lang.Class getRet()>();
if v == v goto label;
v = new java.lang.IllegalStateException;
v = newarray (java.lang.Object)[3];
v = v.<org.apache.drill.exec.rpc.RpcConfig: java.lang.String name>;
v[0] = v;
v[1] = v;
v = virtualinvoke v.<java.lang.Class: java.lang.String getCanonicalName()>();
v[2] = v;
v = staticinvoke <java.lang.String: java.lang.String format(java.lang.String,java.lang.Object[])>("%s: The definition for the response doesn\'t match implementation code.  The definition is %s however the current response is trying to response with an object of type %s.", v);
specialinvoke v.<java.lang.IllegalStateException: void <init>(java.lang.String)>(v);
throw v;
label:
return 1;
}
public static org.apache.drill.exec.rpc.RpcConfig$RpcConfigBuilder newBuilder()
{
org.apache.drill.exec.rpc.RpcConfig$RpcConfigBuilder v;
v = new org.apache.drill.exec.rpc.RpcConfig$RpcConfigBuilder;
specialinvoke v.<org.apache.drill.exec.rpc.RpcConfig$RpcConfigBuilder: void <init>()>();
return v;
}
static void <clinit>()
{
org.slf4j.Logger v;
v = staticinvoke <org.slf4j.LoggerFactory: org.slf4j.Logger getLogger(java.lang.Class)>(class "Lorg/apache/drill/exec/rpc/RpcConfig;");
<org.apache.drill.exec.rpc.RpcConfig: org.slf4j.Logger logger> = v;
return;
}
}