[
https://issues.apache.org/jira/browse/LABS-197?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ryan McKinley updated LABS-197:
-------------------------------
Attachment: LABS-197-taskValidator.patch
here is one approach... the interface is:
public interface TaskValidator {
public Task validateTask( Task task ) throws InvalidTaskException;
}
the Validator may change the task so it is valid (perhaps normalize a URL or
something) or throw an exception.
In this patch, the SimpleTaskQueue also implements TaskValidator and checks for
"maxSize"
> Create TaskValidator -- include concepts like: maxDepth and maxSize
> -------------------------------------------------------------------
>
> Key: LABS-197
> URL: https://issues.apache.org/jira/browse/LABS-197
> Project: Labs
> Issue Type: Improvement
> Components: Droids
> Reporter: Ryan McKinley
> Priority: Blocker
> Attachments: LABS-197-taskValidator.patch
>
>
> The TaskQueue should have an expendable way to check if a Task is valid.
> perhaps something like:
> {code:java}
>
> public interface TaskValidator {
> public boolean validateTask( Task task ) throws InvalidTaskException;
> }
> {code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]