Class Heritrix3JobMonitorThread

  • All Implemented Interfaces:
    Runnable

    public class Heritrix3JobMonitorThread
    extends Object
    implements Runnable
    • Field Detail

      • jobDAO

        public static JobDAO jobDAO
        JobDAO instance.
      • runningJobsInfoDAO

        public static RunningJobsInfoDAO runningJobsInfoDAO
        RunningJobsInfoDAO instance.
      • harvestChannelDAO

        public static HarvestChannelDAO harvestChannelDAO
        HarvestChannelDAO instance.
      • thread

        public Thread thread
        Current thread.
      • throwable

        public Throwable throwable
        If caught, the throwable that stopped the monitor thread.
      • bExit

        public boolean bExit
        Boolean switch to close the thread.
      • runningJobMonitorMap

        public Map<Long,​Heritrix3JobMonitor> runningJobMonitorMap
        A map from harvest job number to the running H3 job monitor for the given job
      • h3HostPortSet

        public final Set<String> h3HostPortSet
      • h3HostnamePortEnabledList

        public final List<String> h3HostnamePortEnabledList
        List of hosts with monitoring enabled.
      • h3HostnamePortDisabledList

        public final List<String> h3HostnamePortDisabledList
        List of hosts with monitoring disabled.
    • Constructor Detail

      • Heritrix3JobMonitorThread

        public Heritrix3JobMonitorThread​(NASEnvironment environment)
    • Method Detail

      • start

        public void start()
      • run

        public void run()
        Specified by:
        run in interface Runnable
      • getRunningJobs

        public Set<Long> getRunningJobs()
        Encapsulate call to get the set of running jobs and make a copy of it inside a throwable since concurrency is an issues.
        Returns:
        a copy of the running jobs set
      • isH3HostnamePortEnabled

        public boolean isH3HostnamePortEnabled​(Heritrix3JobMonitor jobmonitor)
      • updateH3HostnamePortFilter

        public void updateH3HostnamePortFilter()