Class ServiceNotKnownException

  • All Implemented Interfaces:
    Serializable
    Direct Known Subclasses:
    WrongClusterException

    public class ServiceNotKnownException
    extends AbortServiceException
    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:
    Serialized Form
    • 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 serviceType,
                                        Throwable cause)
      • ServiceNotKnownException

        public ServiceNotKnownException​(String clusterName,
                                        String serviceType,
                                        Throwable cause)
      • ServiceNotKnownException

        public ServiceNotKnownException​(URI service,
                                        String msg)
      • ServiceNotKnownException

        public ServiceNotKnownException​(String clusterName,
                                        URI service,
                                        String message)
      • ServiceNotKnownException

        public ServiceNotKnownException​(URI[] service,
                                        String msg)
      • ServiceNotKnownException

        public ServiceNotKnownException​(String clusterName,
                                        URI[] service,
                                        String msg)
      • ServiceNotKnownException

        public ServiceNotKnownException​(URI[] service,
                                        Throwable cause)
      • 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 be null 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 be null 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.