Class ServiceNotKnownException
java.lang.Object
java.lang.Throwable
java.lang.Exception
de.aristaflow.adept2.base.configuration.AbortServiceException
de.aristaflow.adept2.base.service.ServiceNotKnownException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
WrongClusterException
A
When initialising or starting a service, a
ServiceNotKnownException will be thrown if a service is
requested but is unknown or at least not all needed information is known
by the called registry. Usually this is a problem of the configuration of the
corresponding registry. It may also be caused by the unavailability of a
remote service. When initialising or starting a service, a
ServiceNotKnownException aborts the service with all
consequences (shutdown of the complete system).- Author:
- Ulrich Kreher
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionServiceNotKnownException(String serviceType, String serviceInstance) Default constructor.ServiceNotKnownException(String clusterName, String serviceType, String serviceInstance) ServiceNotKnownException(String clusterName, String serviceType, String serviceInstance, String msg) ServiceNotKnownException(String clusterName, String serviceType, String serviceInstance, String msg, Throwable cause) protectedServiceNotKnownException(String clusterName, String serviceType, String serviceInstance, Throwable cause) ServiceNotKnownException(String clusterName, String serviceType, Throwable cause) ServiceNotKnownException(String serviceType, Throwable cause) ServiceNotKnownException(String clusterName, URI[] service, String msg) ServiceNotKnownException(String clusterName, URI[] service, Throwable cause) ServiceNotKnownException(String clusterName, URI service, String message) ServiceNotKnownException(URI[] service, String msg) ServiceNotKnownException(URI[] service, Throwable cause) ServiceNotKnownException(URI service, String msg) -
Method Summary
Modifier and TypeMethodDescriptionGets the name of the cluster from which the service is requested but not known.Gets the name of the service instance which has been requested but is not known.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ServiceNotKnownException
Default constructor.- Parameters:
serviceType- The type of the service.serviceInstance- The instance name of the service which is not known.
-
ServiceNotKnownException
-
ServiceNotKnownException
-
ServiceNotKnownException
-
ServiceNotKnownException
-
ServiceNotKnownException
-
ServiceNotKnownException
-
ServiceNotKnownException
-
ServiceNotKnownException
-
ServiceNotKnownException
-
ServiceNotKnownException
-
ServiceNotKnownException
-
ServiceNotKnownException
-
-
Method Details
-
getClusterName
Gets the name of the cluster from which the service is requested but not known. This will benullif the cluster is unknown.- Returns:
- The name of the cluster from which the service is requested but not
known or
nullif the cluster is unknown.
-
getServiceType
- Returns:
- The service type of this exception, needed for serialisation of the exception (for web services).
-
getServiceInstance
Gets the name of the service instance which has been requested but is not known. This will benullif the service is requested via URI.- Returns:
- Gets the name of the service instance which has been requested but
is not known or
nullif the service is requested via URI.
-