| org.cougaar.core.service.SuicideService
SuicideService | public interface SuicideService extends Service(Code) | | This service is used to tell the agent (or node) to exit, for
example due to an
java.lang.OutOfMemoryError .
The intent is to allow major components to report that they
have recognised that they have been corrupted by various means and
so should be restarted.
|
EXIT_CODE | int EXIT_CODE(Code) | | If the VM exits as a result of a suicide call, it will do so
using this value.
|
isProactiveEnabled | boolean isProactiveEnabled(Code) | | |
isProactiveEnabled_default | boolean isProactiveEnabled_default(Code) | | |
isSuicideEnabled | boolean isSuicideEnabled(Code) | | |
isSuicideEnabled_default | boolean isSuicideEnabled_default(Code) | | |
lowMem_default | double lowMem_default(Code) | | |
proactivePeriod | double proactivePeriod(Code) | | |
proactivePeriod_default | double proactivePeriod_default(Code) | | |
die | void die(Object component, Throwable error)(Code) | | Report a fatal error and die. This call might not return.
Parameters: component - Which component should be killed. May be specified asnull, implying that the whole node is suspect, or a specific component descriptor (e.g. an agent name). It is probably illegal to specify a componentother than yourself or null. Parameters: error - The error indicating the problem. An attempt will be madeto log the error during the component's death throws. May not be specifiedas null. |
|
|