Class AbstractClusterInvoker<T>
java.lang.Object
org.apache.dubbo.rpc.cluster.support.AbstractClusterInvoker<T>
- All Implemented Interfaces:
org.apache.dubbo.common.Node,ClusterInvoker<T>,Invoker<T>
- Direct Known Subclasses:
AvailableClusterInvoker,BroadcastClusterInvoker,FailbackClusterInvoker,FailfastClusterInvoker,FailoverClusterInvoker,FailsafeClusterInvoker,ForkingClusterInvoker,ZoneAwareClusterInvoker
AbstractClusterInvoker
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractClusterInvoker(Directory<T> directory) AbstractClusterInvoker(Directory<T> directory, org.apache.dubbo.common.URL url) -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()org.apache.dubbo.common.URLorg.apache.dubbo.common.URLgetUrl()invoke(Invocation invocation) booleanbooleantoString()Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.dubbo.rpc.cluster.ClusterInvoker
hasProxyInvokers, isServiceDiscovery
-
Constructor Details
-
AbstractClusterInvoker
public AbstractClusterInvoker() -
AbstractClusterInvoker
-
AbstractClusterInvoker
-
-
Method Details
-
getInterface
- Specified by:
getInterfacein interfaceInvoker<T>
-
getUrl
public org.apache.dubbo.common.URL getUrl()- Specified by:
getUrlin interfaceorg.apache.dubbo.common.Node
-
getRegistryUrl
public org.apache.dubbo.common.URL getRegistryUrl()- Specified by:
getRegistryUrlin interfaceClusterInvoker<T>
-
isAvailable
public boolean isAvailable()- Specified by:
isAvailablein interfaceorg.apache.dubbo.common.Node
-
getDirectory
- Specified by:
getDirectoryin interfaceClusterInvoker<T>
-
destroy
public void destroy()- Specified by:
destroyin interfaceorg.apache.dubbo.common.Node
-
isDestroyed
public boolean isDestroyed()- Specified by:
isDestroyedin interfaceClusterInvoker<T>
-
invoke
- Specified by:
invokein interfaceInvoker<T>- Throws:
RpcException
-
toString
-