com.alibaba.dubbo.remoting.transport.grizzly
Class GrizzlyServer
java.lang.Object
com.alibaba.dubbo.remoting.transport.AbstractPeer
com.alibaba.dubbo.remoting.transport.AbstractEndpoint
com.alibaba.dubbo.remoting.transport.AbstractServer
com.alibaba.dubbo.remoting.transport.grizzly.GrizzlyServer
- All Implemented Interfaces:
- Resetable, ChannelHandler, Endpoint, Server
public class GrizzlyServer
- extends AbstractServer
GrizzlyServer
- Author:
- william.liangf
Methods inherited from class com.alibaba.dubbo.remoting.transport.AbstractPeer |
caught, getChannelHandler, getDelegateHandler, getHandler, getUrl, isClosed, isClosing, received, send, sent, startClose |
Methods inherited from interface com.alibaba.dubbo.remoting.Server |
reset |
GrizzlyServer
public GrizzlyServer(URL url,
ChannelHandler handler)
throws RemotingException
- Throws:
RemotingException
isBound
public boolean isBound()
- Description copied from interface:
Server
- is bound.
- Returns:
- bound
getChannels
public Collection<Channel> getChannels()
- Description copied from interface:
Server
- get channels.
- Returns:
- channels
getChannel
public Channel getChannel(InetSocketAddress remoteAddress)
- Description copied from interface:
Server
- get channel.
- Returns:
- channel
connected
public void connected(Channel ch)
throws RemotingException
- Description copied from interface:
ChannelHandler
- on channel connected.
- Specified by:
connected
in interface ChannelHandler
- Overrides:
connected
in class AbstractServer
- Parameters:
ch
- channel.
- Throws:
RemotingException
disconnected
public void disconnected(Channel ch)
throws RemotingException
- Description copied from interface:
ChannelHandler
- on channel disconnected.
- Specified by:
disconnected
in interface ChannelHandler
- Overrides:
disconnected
in class AbstractServer
- Parameters:
ch
- channel.
- Throws:
RemotingException
Copyright © 2012–2017 Alibaba. All rights reserved.