Class NettyPortUnificationServer
java.lang.Object
org.apache.dubbo.remoting.transport.AbstractPeer
org.apache.dubbo.remoting.transport.AbstractEndpoint
org.apache.dubbo.remoting.transport.AbstractServer
org.apache.dubbo.remoting.api.pu.AbstractPortUnificationServer
org.apache.dubbo.remoting.transport.netty4.NettyPortUnificationServer
- All Implemented Interfaces:
org.apache.dubbo.common.Resetable,ChannelHandler,Endpoint,IdleSensible,RemotingServer
PortUnificationServer.
-
Constructor Summary
ConstructorsConstructorDescriptionNettyPortUnificationServer(org.apache.dubbo.common.URL url, ChannelHandler handler) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSupportedProtocol(org.apache.dubbo.common.URL url, ChannelHandler handler) voidbind()booleanvoidclose()voiddoClose()voiddoOpen()getChannel(InetSocketAddress remoteAddress) booleanisBound()Methods inherited from class org.apache.dubbo.remoting.api.pu.AbstractPortUnificationServer
getProtocols, getSupportedHandlersMethods inherited from class org.apache.dubbo.remoting.transport.AbstractServer
close, connected, disconnected, getAccepts, getBindAddress, reset, sendMethods inherited from class org.apache.dubbo.remoting.transport.AbstractEndpoint
resetMethods inherited from class org.apache.dubbo.remoting.transport.AbstractPeer
caught, getChannelHandler, getDelegateHandler, getHandler, getUrl, isClosed, isClosing, received, send, sent, startCloseMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.dubbo.remoting.Endpoint
getChannelHandler, getUrl, isClosed, send, startCloseMethods inherited from interface org.apache.dubbo.remoting.RemotingServer
reset
-
Constructor Details
-
NettyPortUnificationServer
public NettyPortUnificationServer(org.apache.dubbo.common.URL url, ChannelHandler handler) throws RemotingException - Throws:
RemotingException
-
-
Method Details
-
addSupportedProtocol
- Overrides:
addSupportedProtocolin classAbstractPortUnificationServer
-
close
public void close()- Specified by:
closein interfaceEndpoint- Overrides:
closein classAbstractServer
-
bind
- Throws:
Throwable
-
doOpen
- Throws:
Throwable
-
doClose
public void doClose() -
isBound
public boolean isBound() -
getChannels
-
getChannel
-
getLocalAddress
- Specified by:
getLocalAddressin interfaceEndpoint- Overrides:
getLocalAddressin classAbstractServer
-
canHandleIdle
public boolean canHandleIdle()
-