Class WrongClusterException

All Implemented Interfaces:
Serializable

public class WrongClusterException extends ServiceNotKnownException
A WrongClusterException will be thrown if a service is requested from a specific cluster but the requested registry is in a different cluster.
See Also:
  • Constructor Details

    • WrongClusterException

      public WrongClusterException(String requestedCluster, String serviceType, String serviceInstance, String actualCluster)
      Creates a new exception indicating that the registry is in a different cluster than the requested service.
      Parameters:
      requestedCluster - The cluster name of the requested service.
      serviceType - The type name of the requested service.
      serviceInstance - The (simple) instance name of the requested service.
      actualCluster - The cluster name of the registry the designated service is requested from.
    • WrongClusterException

      public WrongClusterException(String requestedCluster, URI[] service, String actualCluster)
      Creates a new exception indicating that the registry is in a different cluster than the requested service.
      Parameters:
      requestedCluster - The cluster name of the requested service.
      service - The URI of the requested service.
      actualCluster - The cluster name of the registry the designated service is requested from.
    • WrongClusterException

      public WrongClusterException(String requestedCluster, URI[] service, String actualCluster, String msg)
      Creates a new exception indicating that the registry is in a different cluster than the requested service.
      Parameters:
      requestedCluster - The cluster name of the requested service.
      service - The URI of the requested service.
      actualCluster - The cluster name of the registry the designated service is requested from.
      msg - A message describing the problem further.
    • WrongClusterException

      public WrongClusterException(String requestedCluster, URI serviceUri, String actualCluster, String msg)
      Creates a new exception indicating that the registry is in a different cluster than the requested service or entity.
      Parameters:
      requestedCluster - The cluster name of the requested service or entity.
      serviceUri - The URI of the requested service or entity.
      actualCluster - The cluster name of the registry the designated service is requested from.
      msg - A message describing the problem further.
  • Method Details

    • getActualCluster

      public String getActualCluster()
      Gets the cluster name that the registry has which is different from the one the service is requested from.
      Returns:
      The cluster name that the registry has which is different from the one the service is requested from.