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

public abstract class AbstractClusterInvoker<T> extends Object implements ClusterInvoker<T>
AbstractClusterInvoker
  • Constructor Details

    • AbstractClusterInvoker

      public AbstractClusterInvoker()
    • AbstractClusterInvoker

      public AbstractClusterInvoker(Directory<T> directory)
    • AbstractClusterInvoker

      public AbstractClusterInvoker(Directory<T> directory, org.apache.dubbo.common.URL url)
  • Method Details

    • getInterface

      public Class<T> getInterface()
      Specified by:
      getInterface in interface Invoker<T>
    • getUrl

      public org.apache.dubbo.common.URL getUrl()
      Specified by:
      getUrl in interface org.apache.dubbo.common.Node
    • getRegistryUrl

      public org.apache.dubbo.common.URL getRegistryUrl()
      Specified by:
      getRegistryUrl in interface ClusterInvoker<T>
    • isAvailable

      public boolean isAvailable()
      Specified by:
      isAvailable in interface org.apache.dubbo.common.Node
    • getDirectory

      public Directory<T> getDirectory()
      Specified by:
      getDirectory in interface ClusterInvoker<T>
    • destroy

      public void destroy()
      Specified by:
      destroy in interface org.apache.dubbo.common.Node
    • isDestroyed

      public boolean isDestroyed()
      Specified by:
      isDestroyed in interface ClusterInvoker<T>
    • invoke

      public Result invoke(Invocation invocation) throws RpcException
      Specified by:
      invoke in interface Invoker<T>
      Throws:
      RpcException
    • toString

      public String toString()
      Overrides:
      toString in class Object