Class UploadScheduler

    • Constructor Detail

      • UploadScheduler

        public UploadScheduler​(ExecutionMonitor _monitor,
                               long _millis,
                               int _batch_size)

        Constructor for UploadScheduler.

        Parameters:
        _monitor - a ExecutionMonitor object.
        _millis - a long.
        _batch_size - a int.
    • Method Detail

      • enabled

        public void enabled()

        enabled.

      • disable

        public void disable()

        disable.

      • isEnabled

        public boolean isEnabled()

        isEnabled.

        Returns:
        a boolean.
      • getInterval

        public long getInterval()

        getInterval.

        Returns:
        a long.
      • getBatchSize

        public int getBatchSize()

        Getter for the field batchSize.

        Returns:
        a int.
      • update

        public void update​(Observable obj,
                           Object arg)
        Disables periodic uploads (called by the shutdown uploader).
        Specified by:
        update in interface Observer