Class WrongClusterException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- de.aristaflow.adept2.base.configuration.AbortServiceException
-
- de.aristaflow.adept2.base.service.ServiceNotKnownException
-
- de.aristaflow.adept2.base.globalregistry.WrongClusterException
-
- All Implemented Interfaces:
Serializable
public class WrongClusterException extends ServiceNotKnownException
AWrongClusterException
will be thrown if a service is requested from a specific cluster but the requested registry is in a different cluster.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description 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.WrongClusterException(String requestedCluster, URI[] service, String actualCluster)
Creates a new exception indicating that the registry is in a different cluster than the requested service.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.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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getActualCluster()
Gets the cluster name that the registry has which is different from the one the service is requested from.-
Methods inherited from class de.aristaflow.adept2.base.service.ServiceNotKnownException
getClusterName, getServiceInstance, getServiceType
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
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 Detail
-
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.
-
-