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
public class ServiceNotKnownException extends AbortServiceException
AServiceNotKnownException
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, aServiceNotKnownException
aborts the service with all consequences (shutdown of the complete system).- Author:
- Ulrich Kreher
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description ServiceNotKnownException(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)
protected
ServiceNotKnownException(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getClusterName()
Gets the name of the cluster from which the service is requested but not known.String
getServiceInstance()
Gets the name of the service instance which has been requested but is not known.String
getServiceType()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
ServiceNotKnownException
public ServiceNotKnownException(String serviceType, String serviceInstance)
Default constructor.- Parameters:
serviceType
- The type of the service.serviceInstance
- The instance name of the service which is not known.
-
ServiceNotKnownException
public ServiceNotKnownException(String clusterName, String serviceType, String serviceInstance)
-
ServiceNotKnownException
public ServiceNotKnownException(String clusterName, String serviceType, Throwable cause)
-
ServiceNotKnownException
public ServiceNotKnownException(String clusterName, URI service, String message)
-
ServiceNotKnownException
public ServiceNotKnownException(String clusterName, URI[] service, String msg)
-
ServiceNotKnownException
public ServiceNotKnownException(String clusterName, URI[] service, Throwable cause)
-
ServiceNotKnownException
public ServiceNotKnownException(String clusterName, String serviceType, String serviceInstance, String msg)
-
ServiceNotKnownException
protected ServiceNotKnownException(String clusterName, String serviceType, String serviceInstance, Throwable cause)
-
-
Method Detail
-
getClusterName
public String getClusterName()
Gets the name of the cluster from which the service is requested but not known. This will benull
if the cluster is unknown.- Returns:
- The name of the cluster from which the service is requested but not
known or
null
if the cluster is unknown.
-
getServiceType
public String getServiceType()
- Returns:
- The service type of this exception, needed for serialisation of the exception (for web services).
-
getServiceInstance
public String getServiceInstance()
Gets the name of the service instance which has been requested but is not known. This will benull
if the service is requested via URI.- Returns:
- Gets the name of the service instance which has been requested but
is not known or
null
if the service is requested via URI.
-
-