|
i-net Clear Reports | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.inet.report.schedule.ScheduleAction
com.inet.report.schedule.ErrorAction
public class ErrorAction
This class is an action class representing an action class which could not be
loaded at startup of the i-net Scheduler. The class has not been in the class
path. To prevent that the action will
be lost an instance of this ErrorAction is created which saves all information
about the action class which could not be loaded.
There is a special handling for this action during saving. The original
definition will be restored out of the information in this class.
| Field Summary |
|---|
| Fields inherited from class com.inet.report.schedule.ScheduleAction |
|---|
TYPE_CACHE, TYPE_CUSTOM, TYPE_EMAIL, TYPE_FILE, TYPE_FTP, TYPE_PRINT |
| Constructor Summary | |
|---|---|
ErrorAction(ScheduleTask taskOfOriginalAndErrorAction)
Creates an ErrorAction for an ScheduleAction of the provided task. |
|
| Method Summary | |
|---|---|
void |
action(ExecutedTask executedTask)
This method will simply do nothing except create a log message that a custom action should be executed but the class could not be found. |
java.util.Properties |
getActionProperties()
This will return all the saved properties of the custom action which is saved in this ErrorAction. |
java.lang.String |
getClassPathEntry()
Returns the class path entry where the custom action class represented by this ErrorAction should have been found. |
java.lang.String[] |
getErrorMessages()
Returns the error messages for this action class. |
java.lang.String |
getOriginalActionClassName()
This will return the class name of the custom action which could not be loaded and is now represented by thie ErrorAction. |
void |
setActionProperties(java.util.Properties newActionProperties)
Sets the properties ot the custom action which will be represented by this ErrorAction. |
void |
setClassPathEntry(java.lang.String classPathEntry)
This call will try to fix the problem that the custom action saved in this ErrorAction is not found. |
void |
setOriginalActionClassName(java.lang.String originalActionClassName)
Sets the class name of the cutom action which could not be found and will be represented by this ErrorAction. |
| Methods inherited from class com.inet.report.schedule.ScheduleAction |
|---|
getType, isValid, toString |
| Constructor Detail |
|---|
public ErrorAction(ScheduleTask taskOfOriginalAndErrorAction)
taskOfOriginalAndErrorAction - The task where the ErrorAction will be located.| Method Detail |
|---|
public java.lang.String getClassPathEntry()
public void setClassPathEntry(java.lang.String classPathEntry)
getErrorMessages() returns an empty array it was sucessful.
Important: If you get an empty array from this method this means that
the original custom action which should be
saved by this error action could be loaded. So the custom action then will exist
in the associated task. Then you should not use this object anymore because this
could cause unpredictable side-effects.
classPathEntry - The new class path entry e.g. a path to a jar file
where the custom action should be found. This class path entry will be
added to the current class path.public void action(ExecutedTask executedTask)
action in class ScheduleActionexecutedTask - All information about the executed task.public java.util.Properties getActionProperties()
public void setActionProperties(java.util.Properties newActionProperties)
newActionProperties - The properties of the custom action.public java.lang.String getOriginalActionClassName()
public void setOriginalActionClassName(java.lang.String originalActionClassName)
originalActionClassName - The class name of the custom action.public java.lang.String[] getErrorMessages()
setClassPathEntry(String)
you could get either an empty array which means that the custom action
could be found now or still an array containing
the message that the class could not be found. You can also get an
additional error message if the class could be found but the properties
previously set to the custom action do not match the
found class anymore.
getErrorMessages in class ScheduleAction
|
i-net Clear Reports | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||