Class ReadOdometer

  • All Implemented Interfaces:
    org.dspace.curate.CurationTask

    @Distributive
    public class ReadOdometer
    extends org.dspace.curate.AbstractCurationTask
    ReadOdometer simply reads and displays the odometer data. Since this data is currently only maintained per site, the actual data object is ignored.

    Odometer data is stored in base folder for the Replication Task Suite (see 'base.dir' setting in 'replicate.cfg'). It is stored in a text file named 'odometer' -- see org.dspace.ctask.replicate.Odometer for more info.

    Author:
    richardrodgers
    See Also:
    Odometer
    • Field Summary

      • Fields inherited from class org.dspace.curate.AbstractCurationTask

        communityService, configurationService, curator, handleService, itemService, taskId
    • Constructor Summary

      Constructors 
      Constructor Description
      ReadOdometer()  
    • Constructor Detail

      • ReadOdometer

        public ReadOdometer()
    • Method Detail

      • perform

        public int perform​(org.dspace.content.DSpaceObject dso)
                    throws IOException
        Performs the "Read Odometer" task.
        Specified by:
        perform in interface org.dspace.curate.CurationTask
        Specified by:
        perform in class org.dspace.curate.AbstractCurationTask
        Parameters:
        dso - this param is ignored, as the odometer is sitewide
        Returns:
        integer which represents Curator return status
        Throws:
        IOException - if I/O error