All Versions
- DSpace 7.x (Current Release)
- DSpace 8.x (Unreleased)
- DSpace 6.x (EOL)
- DSpace 5.x (EOL)
- More Versions...
...
For very fine-grained information, a task may write to a reporting stream. This stream is sent to standard out, so is only available when running a task from the command line. Unlike the result string, there is no limit to the amount of data that may be pushed to this stream.
...
The status code, reporting stream, and the result string are accessed (or set) by methods on the Curation Curator object:
Code Block | ||
---|---|---|
| ||
Curator curator = new Curator(); curator.setReporter(new OutputStreamWriter(System.out)); curator.addTask("vscan").curate(coll); int status = curator.getStatus("vscan"); String result = curator.getResult("vscan"); |
...