I was just talking with Ginnie about the interface between the
checkpoints and their DOC software nodes. The design specifies that the
checkpoint name must be the same as the software node name that contains
it's input. Unfortunately, this interface is subject to user error and
right now that mistake doesn't get discovered until we're actually
executing the checkpoint which is annoying and not very user friendly.
It would be nice to move this check to prior to checkpoint execution
however, not all checkpoints get input from a DOC software node.
So in our discussion we came up with a potential solution that I wanted
to pass by people.
- Part of the requirement for checkpoint class would be the inclusion of
an attribute indicating whether or not it gets input from a DOC software
node and should be validated. I'll call that attribute
validate_software_name.
- The engine currently generates a list of checkpoints to be executed.
Prior to the call to execute_checkpoints the engine would perform a
check that would cycle through all the checkpoints on the execution list
and if validate_software_name is True would check to make sure the DOC
has a software node with the same name as the checkpoint.
- If there is not a match, print out a really nice error message
indicating what mistake the user has made and stop execution.
Thoughts?
Jean
_______________________________________________
caiman-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/caiman-discuss