|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IStartupTask
Interface for implementing a startup task. Progress trackers like the diagnostic tool can subscribe to notifications from the startup manager. Startup tasks include a series of steps, each of which returns a result: OK, WARN, ERR, FATAL. The progress manager uses these results to maintain overall warmup progress. Each task has a unique ID; each step has a sequential ID. These ID's inform notification subscribers to allow support for detailed progress diagnostic messages, which are maintained *outside* of this framework; the purpose of this framework is to manage startup and send notifications on progres, no more. The concept of setup and teardown are not directly supported; developers are expected to implement such code as the first and last step in the task.
Method Summary | |
---|---|
ReturnValue |
executeStep(int sequentialStepID)
Executes each step in the task. |
int |
getNumSteps()
Ideally, the number of steps in a startup task is a fixed static value. |
int |
getTaskID()
Unique identifier for task. |
java.lang.String |
getTaskName()
Simple text name for task. |
ReturnValue |
init(java.lang.String _strApplicationName)
Does whatever initialization is required by this task in order to determine the number of steps in the task. |
Methods inherited from interface com.plumtree.uiinfrastructure.application.startup.messages.IMessage |
---|
getMsg, getMsgArray, getNumMsgs |
Method Detail |
---|
java.lang.String getTaskName()
int getTaskID()
int getNumSteps()
ReturnValue init(java.lang.String _strApplicationName)
ReturnValue executeStep(int sequentialStepID)
sequentialStepID
-
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |