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
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 Summary
ConstructorsConstructorDescriptionWrongClusterException(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
Modifier and TypeMethodDescriptionGets 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, getServiceTypeMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
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
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
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.
-