com.sssw.fw.exception
Class EboServiceDependencyException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--com.sssw.fw.exception.EboException
|
+--com.sssw.fw.exception.EboApiException
|
+--com.sssw.fw.exception.EboServiceDependencyException
- All Implemented Interfaces:
- EbiParentedException, Serializable
- public class EboServiceDependencyException
- extends EboApiException
This exception is thrown by services during life cycle managment to indicate that the service
can not be started or stopped as requested because it depends on other services to be started
or stopped first.
- Since:
- v5.2
- See Also:
- Serialized Form
Constructor Summary |
EboServiceDependencyException(String[] serviceNames,
boolean isStart)
Consrtucts a new EboServiceDependencyException allowing a list of service dependencies. |
Method Summary |
String[] |
getServiceNames()
Returns the service names that the service depends on being started or stopped before it itself can start or stop. |
boolean |
isStart()
Indicates if the service names returned by getServiceNames() are services
that must be started or stopped before the service can itself start or stop. |
Methods inherited from class com.sssw.fw.exception.EboException |
copyTo,
getHTML,
getMessage,
getMessage,
printStackTrace,
printStackTrace,
printStackTrace,
printStackTrace,
printStackTrace,
printStackTrace,
setHTML |
EboServiceDependencyException
public EboServiceDependencyException(String[] serviceNames,
boolean isStart)
- Consrtucts a new EboServiceDependencyException allowing a list of service dependencies.
- Parameters:
serviceNames
- String[] of service names that the servvice depends on to be started or stopped
before it can itself start or stop.isStart
- boolean true to mean that the listed service names are services that need to be
started before the service can start, or false to mean that the listted service names
are services that need to be stopped before the service can stop.- Since:
- 5.2
getServiceNames
public String[] getServiceNames()
- Returns the service names that the service depends on being started or stopped before it itself can start or stop.
- Returns:
- String[] of service names.
- Since:
- 5.2
isStart
public boolean isStart()
- Indicates if the service names returned by getServiceNames() are services
that must be started or stopped before the service can itself start or stop.
A boolean true means the services need to be started, a false means they
need to be stopped.
- Returns:
- boolean true means the services need to be started, a false means they
need to be stopped.
- Since:
- 5.2