final class org.apache.dubbo.remoting.transport.netty.NettyChannel extends org.apache.dubbo.remoting.transport.AbstractChannel
{
private static final org.apache.dubbo.common.logger.Logger logger;
private static final java.util.concurrent.ConcurrentMap CHANNEL_MAP;
private final org.jboss.netty.channel.Channel channel;
private final java.util.Map attributes;
private void <init>(org.jboss.netty.channel.Channel, org.apache.dubbo.common.URL, org.apache.dubbo.remoting.ChannelHandler)
{
org.apache.dubbo.remoting.ChannelHandler v;
org.apache.dubbo.common.URL v;
org.apache.dubbo.remoting.transport.netty.NettyChannel v;
java.util.concurrent.ConcurrentHashMap v;
java.lang.IllegalArgumentException v;
org.jboss.netty.channel.Channel v;
v := @this: org.apache.dubbo.remoting.transport.netty.NettyChannel;
v := @parameter: org.jboss.netty.channel.Channel;
v := @parameter: org.apache.dubbo.common.URL;
v := @parameter: org.apache.dubbo.remoting.ChannelHandler;
specialinvoke v.<org.apache.dubbo.remoting.transport.AbstractChannel: void <init>(org.apache.dubbo.common.URL,org.apache.dubbo.remoting.ChannelHandler)>(v, v);
v = new java.util.concurrent.ConcurrentHashMap;
specialinvoke v.<java.util.concurrent.ConcurrentHashMap: void <init>()>();
v.<org.apache.dubbo.remoting.transport.netty.NettyChannel: java.util.Map attributes> = v;
if v != null goto label;
v = new java.lang.IllegalArgumentException;
specialinvoke v.<java.lang.IllegalArgumentException: void <init>(java.lang.String)>("netty channel == null;");
throw v;
label:
v.<org.apache.dubbo.remoting.transport.netty.NettyChannel: org.jboss.netty.channel.Channel channel> = v;
return;
}
static org.apache.dubbo.remoting.transport.netty.NettyChannel getOrAddChannel(org.jboss.netty.channel.Channel, org.apache.dubbo.common.URL, org.apache.dubbo.remoting.ChannelHandler)
{
org.apache.dubbo.remoting.ChannelHandler v;
org.apache.dubbo.remoting.transport.netty.NettyChannel v;
org.jboss.netty.channel.Channel v;
java.util.concurrent.ConcurrentMap v, v;
org.apache.dubbo.common.URL v;
java.lang.Object v;
boolean v;
v := @parameter: org.jboss.netty.channel.Channel;
v := @parameter: org.apache.dubbo.common.URL;
v := @parameter: org.apache.dubbo.remoting.ChannelHandler;
if v != null goto label;
return null;
label:
v = <org.apache.dubbo.remoting.transport.netty.NettyChannel: java.util.concurrent.ConcurrentMap CHANNEL_MAP>;
v = interfaceinvoke v.<java.util.concurrent.ConcurrentMap: java.lang.Object get(java.lang.Object)>(v);
if v != null goto label;
v = new org.apache.dubbo.remoting.transport.netty.NettyChannel;
specialinvoke v.<org.apache.dubbo.remoting.transport.netty.NettyChannel: void <init>(org.jboss.netty.channel.Channel,org.apache.dubbo.common.URL,org.apache.dubbo.remoting.ChannelHandler)>(v, v, v);
v = interfaceinvoke v.<org.jboss.netty.channel.Channel: boolean isConnected()>();
if v == 0 goto label;
v = <org.apache.dubbo.remoting.transport.netty.NettyChannel: java.util.concurrent.ConcurrentMap CHANNEL_MAP>;
interfaceinvoke v.<java.util.concurrent.ConcurrentMap: java.lang.Object putIfAbsent(java.lang.Object,java.lang.Object)>(v, v);
label:
v = v;
label:
return v;
}
static void removeChannelIfDisconnected(org.jboss.netty.channel.Channel)
{
org.jboss.netty.channel.Channel v;
boolean v;
java.util.concurrent.ConcurrentMap v;
v := @parameter: org.jboss.netty.channel.Channel;
if v == null goto label;
v = interfaceinvoke v.<org.jboss.netty.channel.Channel: boolean isConnected()>();
if v != 0 goto label;
v = <org.apache.dubbo.remoting.transport.netty.NettyChannel: java.util.concurrent.ConcurrentMap CHANNEL_MAP>;
interfaceinvoke v.<java.util.concurrent.ConcurrentMap: java.lang.Object remove(java.lang.Object)>(v);
label:
return;
}
public java.net.InetSocketAddress getLocalAddress()
{
org.apache.dubbo.remoting.transport.netty.NettyChannel v;
java.net.SocketAddress v;
org.jboss.netty.channel.Channel v;
v := @this: org.apache.dubbo.remoting.transport.netty.NettyChannel;
v = v.<org.apache.dubbo.remoting.transport.netty.NettyChannel: org.jboss.netty.channel.Channel channel>;
v = interfaceinvoke v.<org.jboss.netty.channel.Channel: java.net.SocketAddress getLocalAddress()>();
return v;
}
public java.net.InetSocketAddress getRemoteAddress()
{
org.apache.dubbo.remoting.transport.netty.NettyChannel v;
java.net.SocketAddress v;
org.jboss.netty.channel.Channel v;
v := @this: org.apache.dubbo.remoting.transport.netty.NettyChannel;
v = v.<org.apache.dubbo.remoting.transport.netty.NettyChannel: org.jboss.netty.channel.Channel channel>;
v = interfaceinvoke v.<org.jboss.netty.channel.Channel: java.net.SocketAddress getRemoteAddress()>();
return v;
}
public boolean isConnected()
{
org.apache.dubbo.remoting.transport.netty.NettyChannel v;
org.jboss.netty.channel.Channel v;
boolean v;
v := @this: org.apache.dubbo.remoting.transport.netty.NettyChannel;
v = v.<org.apache.dubbo.remoting.transport.netty.NettyChannel: org.jboss.netty.channel.Channel channel>;
v = interfaceinvoke v.<org.jboss.netty.channel.Channel: boolean isConnected()>();
return v;
}
public void send(java.lang.Object, boolean) throws org.apache.dubbo.remoting.RemotingException
{
java.lang.Throwable v, v;
org.apache.dubbo.remoting.RemotingException v, v;
org.apache.dubbo.common.URL v;
org.jboss.netty.channel.ChannelFuture v;
int v;
java.lang.String v, v, v;
boolean v, v;
org.apache.dubbo.remoting.transport.netty.NettyChannel v;
java.net.InetSocketAddress v, v;
org.jboss.netty.channel.Channel v;
java.lang.Object v, v, v;
v := @this: org.apache.dubbo.remoting.transport.netty.NettyChannel;
v := @parameter: java.lang.Object;
v := @parameter: boolean;
specialinvoke v.<org.apache.dubbo.remoting.transport.AbstractChannel: void send(java.lang.Object,boolean)>(v, v);
v = 1;
v = 0;
label:
v = v.<org.apache.dubbo.remoting.transport.netty.NettyChannel: org.jboss.netty.channel.Channel channel>;
v = interfaceinvoke v.<org.jboss.netty.channel.Channel: org.jboss.netty.channel.ChannelFuture write(java.lang.Object)>(v);
if v == 0 goto label;
v = virtualinvoke v.<org.apache.dubbo.remoting.transport.netty.NettyChannel: org.apache.dubbo.common.URL getUrl()>();
v = virtualinvoke v.<org.apache.dubbo.common.URL: int getPositiveParameter(java.lang.String,int)>("timeout", 1000);
v = interfaceinvoke v.<org.jboss.netty.channel.ChannelFuture: boolean await(long)>(v);
label:
v = interfaceinvoke v.<org.jboss.netty.channel.ChannelFuture: java.lang.Throwable getCause()>();
if v == null goto label;
throw v;
label:
v := @caughtexception;
v = new org.apache.dubbo.remoting.RemotingException;
v = staticinvoke <org.apache.dubbo.remoting.utils.PayloadDropper: java.lang.Object getRequestWithoutData(java.lang.Object)>(v);
v = virtualinvoke v.<org.apache.dubbo.remoting.transport.netty.NettyChannel: java.net.InetSocketAddress getRemoteAddress()>();
v = virtualinvoke v.<java.lang.Throwable: java.lang.String getMessage()>();
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.Object,java.net.InetSocketAddress,java.lang.String)>(v, v, v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("Failed to send message \u to \u, cause: \u0001");
specialinvoke v.<org.apache.dubbo.remoting.RemotingException: void <init>(org.apache.dubbo.remoting.Channel,java.lang.String,java.lang.Throwable)>(v, v, v);
throw v;
label:
if v != 0 goto label;
v = new org.apache.dubbo.remoting.RemotingException;
v = staticinvoke <org.apache.dubbo.remoting.utils.PayloadDropper: java.lang.Object getRequestWithoutData(java.lang.Object)>(v);
v = virtualinvoke v.<org.apache.dubbo.remoting.transport.netty.NettyChannel: java.net.InetSocketAddress getRemoteAddress()>();
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.Object,java.net.InetSocketAddress,int)>(v, v, v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("Failed to send message \u to \u0001in timeout(\u0001ms) limit");
specialinvoke v.<org.apache.dubbo.remoting.RemotingException: void <init>(org.apache.dubbo.remoting.Channel,java.lang.String)>(v, v);
throw v;
label:
return;
catch java.lang.Throwable from label to label with label;
}
public void close()
{
java.util.Map v;
java.lang.String v, v, v, v;
boolean v;
org.apache.dubbo.remoting.transport.netty.NettyChannel v;
org.apache.dubbo.common.logger.Logger v, v, v, v, v;
java.lang.Exception v, v, v;
org.jboss.netty.channel.Channel v, v, v;
v := @this: org.apache.dubbo.remoting.transport.netty.NettyChannel;
label:
v = v.<org.apache.dubbo.remoting.transport.netty.NettyChannel: org.jboss.netty.channel.Channel channel>;
staticinvoke <org.apache.dubbo.remoting.transport.netty.NettyChannel: void removeChannelIfDisconnected(org.jboss.netty.channel.Channel)>(v);
label:
goto label;
label:
v := @caughtexception;
v = <org.apache.dubbo.remoting.transport.netty.NettyChannel: org.apache.dubbo.common.logger.Logger logger>;
v = virtualinvoke v.<java.lang.Exception: java.lang.String getMessage()>();
interfaceinvoke v.<org.apache.dubbo.common.logger.Logger: void warn(java.lang.String,java.lang.Throwable)>(v, v);
label:
v = v.<org.apache.dubbo.remoting.transport.netty.NettyChannel: java.util.Map attributes>;
interfaceinvoke v.<java.util.Map: void clear()>();
label:
goto label;
label:
v := @caughtexception;
v = <org.apache.dubbo.remoting.transport.netty.NettyChannel: org.apache.dubbo.common.logger.Logger logger>;
v = virtualinvoke v.<java.lang.Exception: java.lang.String getMessage()>();
interfaceinvoke v.<org.apache.dubbo.common.logger.Logger: void warn(java.lang.String,java.lang.Throwable)>(v, v);
label:
v = <org.apache.dubbo.remoting.transport.netty.NettyChannel: org.apache.dubbo.common.logger.Logger logger>;
v = interfaceinvoke v.<org.apache.dubbo.common.logger.Logger: boolean isInfoEnabled()>();
if v == 0 goto label;
v = <org.apache.dubbo.remoting.transport.netty.NettyChannel: org.apache.dubbo.common.logger.Logger logger>;
v = v.<org.apache.dubbo.remoting.transport.netty.NettyChannel: org.jboss.netty.channel.Channel channel>;
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (org.jboss.netty.channel.Channel)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("Close netty channel \u0001");
interfaceinvoke v.<org.apache.dubbo.common.logger.Logger: void info(java.lang.String)>(v);
label:
v = v.<org.apache.dubbo.remoting.transport.netty.NettyChannel: org.jboss.netty.channel.Channel channel>;
interfaceinvoke v.<org.jboss.netty.channel.Channel: org.jboss.netty.channel.ChannelFuture close()>();
label:
goto label;
label:
v := @caughtexception;
v = <org.apache.dubbo.remoting.transport.netty.NettyChannel: org.apache.dubbo.common.logger.Logger logger>;
v = virtualinvoke v.<java.lang.Exception: java.lang.String getMessage()>();
interfaceinvoke v.<org.apache.dubbo.common.logger.Logger: void warn(java.lang.String,java.lang.Throwable)>(v, v);
label:
return;
catch java.lang.Exception from label to label with label;
catch java.lang.Exception from label to label with label;
catch java.lang.Exception from label to label with label;
}
public boolean hasAttribute(java.lang.String)
{
org.apache.dubbo.remoting.transport.netty.NettyChannel v;
java.util.Map v;
java.lang.String v;
boolean v;
v := @this: org.apache.dubbo.remoting.transport.netty.NettyChannel;
v := @parameter: java.lang.String;
v = v.<org.apache.dubbo.remoting.transport.netty.NettyChannel: java.util.Map attributes>;
v = interfaceinvoke v.<java.util.Map: boolean containsKey(java.lang.Object)>(v);
return v;
}
public java.lang.Object getAttribute(java.lang.String)
{
org.apache.dubbo.remoting.transport.netty.NettyChannel v;
java.util.Map v;
java.lang.Object v;
java.lang.String v;
v := @this: org.apache.dubbo.remoting.transport.netty.NettyChannel;
v := @parameter: java.lang.String;
v = v.<org.apache.dubbo.remoting.transport.netty.NettyChannel: java.util.Map attributes>;
v = interfaceinvoke v.<java.util.Map: java.lang.Object get(java.lang.Object)>(v);
return v;
}
public void setAttribute(java.lang.String, java.lang.Object)
{
org.apache.dubbo.remoting.transport.netty.NettyChannel v;
java.util.Map v, v;
java.lang.Object v;
java.lang.String v;
v := @this: org.apache.dubbo.remoting.transport.netty.NettyChannel;
v := @parameter: java.lang.String;
v := @parameter: java.lang.Object;
if v != null goto label;
v = v.<org.apache.dubbo.remoting.transport.netty.NettyChannel: java.util.Map attributes>;
interfaceinvoke v.<java.util.Map: java.lang.Object remove(java.lang.Object)>(v);
goto label;
label:
v = v.<org.apache.dubbo.remoting.transport.netty.NettyChannel: java.util.Map attributes>;
interfaceinvoke v.<java.util.Map: java.lang.Object put(java.lang.Object,java.lang.Object)>(v, v);
label:
return;
}
public void removeAttribute(java.lang.String)
{
org.apache.dubbo.remoting.transport.netty.NettyChannel v;
java.lang.String v;
java.util.Map v;
v := @this: org.apache.dubbo.remoting.transport.netty.NettyChannel;
v := @parameter: java.lang.String;
v = v.<org.apache.dubbo.remoting.transport.netty.NettyChannel: java.util.Map attributes>;
interfaceinvoke v.<java.util.Map: java.lang.Object remove(java.lang.Object)>(v);
return;
}
public int hashCode()
{
org.apache.dubbo.remoting.transport.netty.NettyChannel v;
int v, v;
org.jboss.netty.channel.Channel v, v;
v := @this: org.apache.dubbo.remoting.transport.netty.NettyChannel;
v = v.<org.apache.dubbo.remoting.transport.netty.NettyChannel: org.jboss.netty.channel.Channel channel>;
if v != null goto label;
v = 0;
goto label;
label:
v = v.<org.apache.dubbo.remoting.transport.netty.NettyChannel: org.jboss.netty.channel.Channel channel>;
v = virtualinvoke v.<java.lang.Object: int hashCode()>();
label:
v = 31 + v;
return v;
}
public boolean equals(java.lang.Object)
{
org.apache.dubbo.remoting.transport.netty.NettyChannel v;
org.jboss.netty.channel.Channel v, v, v, v, v, v;
java.lang.Class v, v;
java.lang.Object v;
boolean v, v, v;
v := @this: org.apache.dubbo.remoting.transport.netty.NettyChannel;
v := @parameter: java.lang.Object;
if v != v goto label;
return 1;
label:
if v != null goto label;
return 0;
label:
v = v instanceof org.apache.dubbo.remoting.transport.netty.NettyClient;
if v == 0 goto label;
v = v.<org.apache.dubbo.remoting.transport.netty.NettyChannel: org.jboss.netty.channel.Channel channel>;
v = virtualinvoke v.<org.apache.dubbo.remoting.transport.netty.NettyClient: org.jboss.netty.channel.Channel getNettyChannel()>();
v = virtualinvoke v.<java.lang.Object: boolean equals(java.lang.Object)>(v);
return v;
label:
v = virtualinvoke v.<java.lang.Object: java.lang.Class getClass()>();
v = virtualinvoke v.<java.lang.Object: java.lang.Class getClass()>();
if v == v goto label;
return 0;
label:
v = v.<org.apache.dubbo.remoting.transport.netty.NettyChannel: org.jboss.netty.channel.Channel channel>;
if v != null goto label;
v = v.<org.apache.dubbo.remoting.transport.netty.NettyChannel: org.jboss.netty.channel.Channel channel>;
if v == null goto label;
return 0;
label:
v = v.<org.apache.dubbo.remoting.transport.netty.NettyChannel: org.jboss.netty.channel.Channel channel>;
v = v.<org.apache.dubbo.remoting.transport.netty.NettyChannel: org.jboss.netty.channel.Channel channel>;
v = virtualinvoke v.<java.lang.Object: boolean equals(java.lang.Object)>(v);
if v != 0 goto label;
return 0;
label:
return 1;
}
public java.lang.String toString()
{
org.apache.dubbo.remoting.transport.netty.NettyChannel v;
java.lang.String v;
org.jboss.netty.channel.Channel v;
v := @this: org.apache.dubbo.remoting.transport.netty.NettyChannel;
v = v.<org.apache.dubbo.remoting.transport.netty.NettyChannel: org.jboss.netty.channel.Channel channel>;
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (org.jboss.netty.channel.Channel)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("NettyChannel [channel=\u]");
return v;
}
static void <clinit>()
{
java.util.concurrent.ConcurrentHashMap v;
org.apache.dubbo.common.logger.Logger v;
v = staticinvoke <org.apache.dubbo.common.logger.LoggerFactory: org.apache.dubbo.common.logger.Logger getLogger(java.lang.Class)>(class "Lorg/apache/dubbo/remoting/transport/netty/NettyChannel;");
<org.apache.dubbo.remoting.transport.netty.NettyChannel: org.apache.dubbo.common.logger.Logger logger> = v;
v = new java.util.concurrent.ConcurrentHashMap;
specialinvoke v.<java.util.concurrent.ConcurrentHashMap: void <init>()>();
<org.apache.dubbo.remoting.transport.netty.NettyChannel: java.util.concurrent.ConcurrentMap CHANNEL_MAP> = v;
return;
}
}