com.alibaba.dubbo.registry.support
Class ProviderInvokerWrapper<T>

java.lang.Object
  extended by com.alibaba.dubbo.registry.support.ProviderInvokerWrapper<T>
All Implemented Interfaces:
Node, Invoker

public class ProviderInvokerWrapper<T>
extends Object
implements Invoker

Author:
qinliujie

Constructor Summary
ProviderInvokerWrapper(Invoker<T> invoker, URL registryUrl, URL providerUrl)
           
 
Method Summary
 void destroy()
          destroy.
 Class<T> getInterface()
          get service interface.
 Invoker<T> getInvoker()
           
 URL getOriginUrl()
           
 URL getProviderUrl()
           
 URL getRegistryUrl()
           
 URL getUrl()
          get url.
 Result invoke(Invocation invocation)
          invoke.
 boolean isAvailable()
          is available.
 boolean isReg()
           
 void setReg(boolean reg)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProviderInvokerWrapper

public ProviderInvokerWrapper(Invoker<T> invoker,
                              URL registryUrl,
                              URL providerUrl)
Method Detail

getInterface

public Class<T> getInterface()
Description copied from interface: Invoker
get service interface.

Specified by:
getInterface in interface Invoker
Returns:
service interface.

getUrl

public URL getUrl()
Description copied from interface: Node
get url.

Specified by:
getUrl in interface Node
Returns:
url.

isAvailable

public boolean isAvailable()
Description copied from interface: Node
is available.

Specified by:
isAvailable in interface Node
Returns:
available.

invoke

public Result invoke(Invocation invocation)
              throws RpcException
Description copied from interface: Invoker
invoke.

Specified by:
invoke in interface Invoker
Returns:
result
Throws:
RpcException

destroy

public void destroy()
Description copied from interface: Node
destroy.

Specified by:
destroy in interface Node

getOriginUrl

public URL getOriginUrl()

getRegistryUrl

public URL getRegistryUrl()

getProviderUrl

public URL getProviderUrl()

getInvoker

public Invoker<T> getInvoker()

isReg

public boolean isReg()

setReg

public void setReg(boolean reg)


Copyright © 2012–2017 Alibaba. All rights reserved.