IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

com.ibm.websphere.objectgrid.osgi
Class ServiceNotAvailableException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.ibm.websphere.objectgrid.ObjectGridException
              extended by com.ibm.websphere.objectgrid.osgi.ServiceNotAvailableException
All Implemented Interfaces:
IObjectGridException, Serializable

public class ServiceNotAvailableException
extends ObjectGridException

A ServiceNotAvailableException indicates one or more specific service rankings are not available.

Users can use getUnavailableServiceRankings() to get the unavailable service rankings.

Since:
7.1.1
See Also:
Serialized Form

Constructor Summary
ServiceNotAvailableException(String message, Map<String,Integer> unavailableRankings)
          Constructs a new ServiceNotAvailableException with the specified detail message.
ServiceNotAvailableException(String message, String service, Integer ranking)
          Constructs a new ServiceNotAvailableException with the specified detail message.
ServiceNotAvailableException(String message, Throwable cause, Map<String,Integer> serviceRankings)
          Constructs a new ServiceNotAvailableException with the specified detail message and cause.
ServiceNotAvailableException(String message, Throwable cause, String service, Integer ranking)
          Constructs a new ServiceNotAvailableException with the specified detail message and cause.
 
Method Summary
 Map<String,Integer> getUnavailableServiceRankings()
           
 
Methods inherited from class com.ibm.websphere.objectgrid.ObjectGridException
getCause, initCause
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServiceNotAvailableException

public ServiceNotAvailableException(String message,
                                    String service,
                                    Integer ranking)
Constructs a new ServiceNotAvailableException with the specified detail message. The cause is not initialized, and may subsequently be initialized by a call to the initCause method.

Parameters:
message - the detail message. The detail message is saved for later retrieval by the getMessage method.
service - the OSGi service name
ranking - the unavailable OSGi service ranking
See Also:
ObjectGridException.initCause(Throwable), Throwable.getMessage()

ServiceNotAvailableException

public ServiceNotAvailableException(String message,
                                    Map<String,Integer> unavailableRankings)
Constructs a new ServiceNotAvailableException with the specified detail message. The cause is not initialized, and may subsequently be initialized by a call to the initCause method.

Parameters:
message - the detail message. The detail message is saved for later retrieval by the getMessage method.
unavailableRankings - the service rankings that are not available. The key of the map is the service name, and the value is the service ranking.
See Also:
ObjectGridException.initCause(Throwable), Throwable.getMessage()

ServiceNotAvailableException

public ServiceNotAvailableException(String message,
                                    Throwable cause,
                                    String service,
                                    Integer ranking)
Constructs a new ServiceNotAvailableException with the specified detail message and cause.

Note that the detail message associated with cause is not automatically incorporated in this ServiceNotAvailableException's detail message.

Parameters:
message - the detail message (which is saved for later retrieval by the getMessage method).
cause - the cause (which is saved for later retrieval by the getCause method). (Anull value is permitted, and indicates that the cause is nonexistent or unknown).
service - the OSGi service name
ranking - the unavailable OSGi service ranking
See Also:
ObjectGridException.getCause(), Throwable.getMessage()

ServiceNotAvailableException

public ServiceNotAvailableException(String message,
                                    Throwable cause,
                                    Map<String,Integer> serviceRankings)
Constructs a new ServiceNotAvailableException with the specified detail message and cause.

Note that the detail message associated with cause is not automatically incorporated in this ServiceNotAvailableException's detail message.

Parameters:
message - the detail message (which is saved for later retrieval by the getMessage method).
cause - the cause (which is saved for later retrieval by the getCause method). (Anull value is permitted, and indicates that the cause is nonexistent or unknown).
serviceRankings - the service rankings that are not available. The key of the map is the service name, and the value is the service ranking.
See Also:
ObjectGridException.getCause(), Throwable.getMessage()
Method Detail

getUnavailableServiceRankings

public Map<String,Integer> getUnavailableServiceRankings()
Returns:
the unavailable service rankings.

IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

© Copyright International Business Machines Corp 2005,2012. All rights reserved.