com.alibaba.dubbo.rpc.cluster.directory
Class AbstractDirectory<T>
java.lang.Object
com.alibaba.dubbo.rpc.cluster.directory.AbstractDirectory<T>
- All Implemented Interfaces:
- Node, Directory<T>
- Direct Known Subclasses:
- RegistryDirectory, StaticDirectory
public abstract class AbstractDirectory<T>
- extends Object
- implements Directory<T>
增加router的Directory
- Author:
- chao.liuc
AbstractDirectory
public AbstractDirectory(URL url)
AbstractDirectory
public AbstractDirectory(URL url,
List<Router> routers)
AbstractDirectory
public AbstractDirectory(URL url,
URL consumerUrl,
List<Router> routers)
list
public List<Invoker<T>> list(Invocation invocation)
throws RpcException
- Description copied from interface:
Directory
- list invokers.
- Specified by:
list
in interface Directory<T>
- Returns:
- invokers
- Throws:
RpcException
getUrl
public URL getUrl()
- Description copied from interface:
Node
- get url.
- Specified by:
getUrl
in interface Node
- Returns:
- url.
getRouters
public List<Router> getRouters()
getConsumerUrl
public URL getConsumerUrl()
setConsumerUrl
public void setConsumerUrl(URL consumerUrl)
isDestroyed
public boolean isDestroyed()
destroy
public void destroy()
- Description copied from interface:
Node
- destroy.
- Specified by:
destroy
in interface Node
Copyright © 2012–2017 Alibaba. All rights reserved.