public class org.apache.dubbo.remoting.Transporters extends java.lang.Object
{
private void <init>()
{
org.apache.dubbo.remoting.Transporters v;
v := @this: org.apache.dubbo.remoting.Transporters;
specialinvoke v.<java.lang.Object: void <init>()>();
return;
}
public static transient org.apache.dubbo.remoting.RemotingServer bind(java.lang.String, org.apache.dubbo.remoting.ChannelHandler[]) throws org.apache.dubbo.remoting.RemotingException
{
org.apache.dubbo.common.URL v;
org.apache.dubbo.remoting.ChannelHandler[] v;
org.apache.dubbo.remoting.RemotingServer v;
java.lang.String v;
v := @parameter: java.lang.String;
v := @parameter: org.apache.dubbo.remoting.ChannelHandler[];
v = staticinvoke <org.apache.dubbo.common.URL: org.apache.dubbo.common.URL valueOf(java.lang.String)>(v);
v = staticinvoke <org.apache.dubbo.remoting.Transporters: org.apache.dubbo.remoting.RemotingServer bind(org.apache.dubbo.common.URL,org.apache.dubbo.remoting.ChannelHandler[])>(v, v);
return v;
}
public static transient org.apache.dubbo.remoting.RemotingServer bind(org.apache.dubbo.common.URL, org.apache.dubbo.remoting.ChannelHandler[]) throws org.apache.dubbo.remoting.RemotingException
{
org.apache.dubbo.remoting.ChannelHandler v;
org.apache.dubbo.remoting.RemotingServer v;
java.lang.IllegalArgumentException v, v;
org.apache.dubbo.remoting.transport.ChannelHandlerDispatcher v;
org.apache.dubbo.common.URL v;
org.apache.dubbo.remoting.ChannelHandler[] v;
int v, v;
org.apache.dubbo.remoting.Transporter v;
v := @parameter: org.apache.dubbo.common.URL;
v := @parameter: org.apache.dubbo.remoting.ChannelHandler[];
if v != null goto label;
v = new java.lang.IllegalArgumentException;
specialinvoke v.<java.lang.IllegalArgumentException: void <init>(java.lang.String)>("url == null");
throw v;
label:
if v == null goto label;
v = lengthof v;
if v != 0 goto label;
label:
v = new java.lang.IllegalArgumentException;
specialinvoke v.<java.lang.IllegalArgumentException: void <init>(java.lang.String)>("handlers == null");
throw v;
label:
v = lengthof v;
if v != 1 goto label;
v = v[0];
goto label;
label:
v = new org.apache.dubbo.remoting.transport.ChannelHandlerDispatcher;
specialinvoke v.<org.apache.dubbo.remoting.transport.ChannelHandlerDispatcher: void <init>(org.apache.dubbo.remoting.ChannelHandler[])>(v);
v = v;
label:
v = staticinvoke <org.apache.dubbo.remoting.Transporters: org.apache.dubbo.remoting.Transporter getTransporter()>();
v = interfaceinvoke v.<org.apache.dubbo.remoting.Transporter: org.apache.dubbo.remoting.RemotingServer bind(org.apache.dubbo.common.URL,org.apache.dubbo.remoting.ChannelHandler)>(v, v);
return v;
}
public static transient org.apache.dubbo.remoting.Client connect(java.lang.String, org.apache.dubbo.remoting.ChannelHandler[]) throws org.apache.dubbo.remoting.RemotingException
{
org.apache.dubbo.common.URL v;
org.apache.dubbo.remoting.ChannelHandler[] v;
org.apache.dubbo.remoting.Client v;
java.lang.String v;
v := @parameter: java.lang.String;
v := @parameter: org.apache.dubbo.remoting.ChannelHandler[];
v = staticinvoke <org.apache.dubbo.common.URL: org.apache.dubbo.common.URL valueOf(java.lang.String)>(v);
v = staticinvoke <org.apache.dubbo.remoting.Transporters: org.apache.dubbo.remoting.Client connect(org.apache.dubbo.common.URL,org.apache.dubbo.remoting.ChannelHandler[])>(v, v);
return v;
}
public static transient org.apache.dubbo.remoting.Client connect(org.apache.dubbo.common.URL, org.apache.dubbo.remoting.ChannelHandler[]) throws org.apache.dubbo.remoting.RemotingException
{
org.apache.dubbo.remoting.ChannelHandler v;
org.apache.dubbo.remoting.Client v;
java.lang.IllegalArgumentException v;
org.apache.dubbo.remoting.transport.ChannelHandlerDispatcher v;
org.apache.dubbo.common.URL v;
org.apache.dubbo.remoting.ChannelHandler[] v;
int v, v;
org.apache.dubbo.remoting.transport.ChannelHandlerAdapter v;
org.apache.dubbo.remoting.Transporter v;
v := @parameter: org.apache.dubbo.common.URL;
v := @parameter: org.apache.dubbo.remoting.ChannelHandler[];
if v != null goto label;
v = new java.lang.IllegalArgumentException;
specialinvoke v.<java.lang.IllegalArgumentException: void <init>(java.lang.String)>("url == null");
throw v;
label:
if v == null goto label;
v = lengthof v;
if v != 0 goto label;
label:
v = new org.apache.dubbo.remoting.transport.ChannelHandlerAdapter;
specialinvoke v.<org.apache.dubbo.remoting.transport.ChannelHandlerAdapter: void <init>()>();
v = v;
goto label;
label:
v = lengthof v;
if v != 1 goto label;
v = v[0];
goto label;
label:
v = new org.apache.dubbo.remoting.transport.ChannelHandlerDispatcher;
specialinvoke v.<org.apache.dubbo.remoting.transport.ChannelHandlerDispatcher: void <init>(org.apache.dubbo.remoting.ChannelHandler[])>(v);
v = v;
label:
v = staticinvoke <org.apache.dubbo.remoting.Transporters: org.apache.dubbo.remoting.Transporter getTransporter()>();
v = interfaceinvoke v.<org.apache.dubbo.remoting.Transporter: org.apache.dubbo.remoting.Client connect(org.apache.dubbo.common.URL,org.apache.dubbo.remoting.ChannelHandler)>(v, v);
return v;
}
public static org.apache.dubbo.remoting.Transporter getTransporter()
{
java.lang.Object v;
org.apache.dubbo.common.extension.ExtensionLoader v;
v = staticinvoke <org.apache.dubbo.common.extension.ExtensionLoader: org.apache.dubbo.common.extension.ExtensionLoader getExtensionLoader(java.lang.Class)>(class "Lorg/apache/dubbo/remoting/Transporter;");
v = virtualinvoke v.<org.apache.dubbo.common.extension.ExtensionLoader: java.lang.Object getAdaptiveExtension()>();
return v;
}
static void <clinit>()
{
staticinvoke <org.apache.dubbo.common.Version: void checkDuplicate(java.lang.Class)>(class "Lorg/apache/dubbo/remoting/Transporters;");
staticinvoke <org.apache.dubbo.common.Version: void checkDuplicate(java.lang.Class)>(class "Lorg/apache/dubbo/remoting/RemotingException;");
return;
}
}