public class WrongClusterException extends ServiceNotKnownException
WrongClusterException will be thrown if a service is requested
from a specific cluster but the requested registry is in a different cluster.| Constructor and Description |
|---|
WrongClusterException(java.lang.String requestedCluster,
java.lang.String serviceType,
java.lang.String serviceInstance,
java.lang.String actualCluster)
Creates a new exception indicating that the registry is in a different
cluster than the requested service.
|
WrongClusterException(java.lang.String requestedCluster,
java.net.URI[] service,
java.lang.String actualCluster)
Creates a new exception indicating that the registry is in a different
cluster than the requested service.
|
WrongClusterException(java.lang.String requestedCluster,
java.net.URI[] service,
java.lang.String actualCluster,
java.lang.String msg)
Creates a new exception indicating that the registry is in a different
cluster than the requested service.
|
WrongClusterException(java.lang.String requestedCluster,
java.net.URI serviceUri,
java.lang.String actualCluster,
java.lang.String msg)
Creates a new exception indicating that the registry is in a different
cluster than the requested service or entity.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getActualCluster()
Gets the cluster name that the registry has which is different from the one
the service is requested from.
|
getClusterName, getServiceInstance, getServiceTypepublic WrongClusterException(java.lang.String requestedCluster,
java.lang.String serviceType,
java.lang.String serviceInstance,
java.lang.String actualCluster)
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.public WrongClusterException(java.lang.String requestedCluster,
java.net.URI[] service,
java.lang.String actualCluster)
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.public WrongClusterException(java.lang.String requestedCluster,
java.net.URI[] service,
java.lang.String actualCluster,
java.lang.String msg)
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.public WrongClusterException(java.lang.String requestedCluster,
java.net.URI serviceUri,
java.lang.String actualCluster,
java.lang.String msg)
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.