Class ScanProgressItem


  • public class ScanProgressItem
    extends java.lang.Object
    Class for Visual Plugin Progress management
    • Constructor Detail

      • ScanProgressItem

        public ScanProgressItem​(HostProcess hProcess,
                                Plugin plugin,
                                int status)
        Parameters:
        plugin -
        status -
    • Method Detail

      • getNameLabel

        public java.lang.String getNameLabel()
        Returns:
      • getAttackStrenghtLabel

        @Deprecated
        public java.lang.String getAttackStrenghtLabel()
        Deprecated.
      • getAttackStrengthLabel

        public java.lang.String getAttackStrengthLabel()
        Returns:
      • getStatusLabel

        public java.lang.String getStatusLabel()
        Returns:
      • getElapsedTime

        public long getElapsedTime()
      • getProgressPercentage

        public int getProgressPercentage()
        Get back the percentage of completion.
        Returns:
        the percentage value from 0 to 100
      • isRunning

        public boolean isRunning()
        Returns:
      • isCompleted

        public boolean isCompleted()
        Returns:
      • isSkipped

        public boolean isSkipped()
        Tells whether or not the plugin was skipped.
        Returns:
        true if the plugin was skipped, false otherwise.
        Since:
        2.4.0
        See Also:
        getSkippedReason()
      • getSkippedReason

        public java.lang.String getSkippedReason()
        Gets the reason why the plugin was skipped.
        Returns:
        the reason why the plugin was skipped, might be null if there's no reason
        Since:
        2.6.0
        See Also:
        isSkipped()
      • skip

        public void skip()
      • getPlugin

        protected Plugin getPlugin()
        Returns:
      • getReqCount

        public int getReqCount()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object