com.alibaba.dubbo.remoting.transport.grizzly
Class GrizzlyServer

java.lang.Object
  extended by com.alibaba.dubbo.remoting.transport.AbstractPeer
      extended by com.alibaba.dubbo.remoting.transport.AbstractEndpoint
          extended by com.alibaba.dubbo.remoting.transport.AbstractServer
              extended by com.alibaba.dubbo.remoting.transport.grizzly.GrizzlyServer
All Implemented Interfaces:
Resetable, ChannelHandler, Endpoint, Server

public class GrizzlyServer
extends AbstractServer

GrizzlyServer

Author:
william.liangf

Constructor Summary
GrizzlyServer(URL url, ChannelHandler handler)
           
 
Method Summary
 void connected(Channel ch)
          on channel connected.
 void disconnected(Channel ch)
          on channel disconnected.
 Channel getChannel(InetSocketAddress remoteAddress)
          get channel.
 Collection<Channel> getChannels()
          get channels.
 boolean isBound()
          is bound.
 
Methods inherited from class com.alibaba.dubbo.remoting.transport.AbstractServer
close, close, getAccepts, getBindAddress, getIdleTimeout, getLocalAddress, reset, send
 
Methods inherited from class com.alibaba.dubbo.remoting.transport.AbstractEndpoint
reset
 
Methods inherited from class com.alibaba.dubbo.remoting.transport.AbstractPeer
caught, getChannelHandler, getDelegateHandler, getHandler, getUrl, isClosed, isClosing, received, send, sent, startClose
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.alibaba.dubbo.remoting.Server
reset
 
Methods inherited from interface com.alibaba.dubbo.remoting.Endpoint
getChannelHandler, getUrl, isClosed, send, startClose
 

Constructor Detail

GrizzlyServer

public GrizzlyServer(URL url,
                     ChannelHandler handler)
              throws RemotingException
Throws:
RemotingException
Method Detail

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.