|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface StartStrategy
The StartStrategy interface is used to assist the kernel in determining how to handle problems that occur while starting a service.
Method Summary | |
---|---|
void |
startError(ServiceName serviceName,
Throwable startError)
Handle the start error. |
boolean |
waitForUnsatisfiedConditions(ServiceName serviceName,
Set conditions)
Determines if the kernel should wait for the unsatified conditions to be satisfied. |
Method Detail |
---|
boolean waitForUnsatisfiedConditions(ServiceName serviceName, Set conditions) throws UnsatisfiedConditionsException, UnregisterServiceException
serviceName
- the name of the service that has the unsatisfied condtionsconditions
- the unsatisfied condtions
UnsatisfiedConditionsException
- the the strategy would like to leave the service in the starting state
and throw an exception the caller
UnregisterServiceException
- if the strategy would like to ignore the unsatisfied conditions and continue to
destry the servicevoid startError(ServiceName serviceName, Throwable startError) throws UnregisterServiceException, Exception
UnregisterServiceException
, or
return. If this method rethrows the exception, the service will be destroyed and the exception will be thrown to
the caller. If an UnregisterServiceException is thrown, the kernel will unregister the service and rethrow
Throwable.getCause()
. If this method returns without throwing an exception, the kernel
will pass the exception to the service monitor for processing and leave the service in the starting state.
serviceName
- the name of the service that has the errorstartError
- the Exception or Error
UnregisterServiceException
- if the strategy would like the service to be destroyed and unregistered
Exception
- if the strategy would like to destroy the service and throw the exception to the caller
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |