public class Heritrix3JobMonitorThread extends Object implements Runnable
Modifier and Type | Field and Description |
---|---|
boolean |
bExit
Boolean switch to close the thread.
|
Map<Long,Heritrix3JobMonitor> |
filterJobMonitorMap |
List<String> |
h3HostnamePortDisabledList
List of hosts with monitoring disabled.
|
List<String> |
h3HostnamePortEnabledList
List of hosts with monitoring enabled.
|
Set<String> |
h3HostPortSet |
static HarvestChannelDAO |
harvestChannelDAO
HarvestChannelDAO instance. |
static JobDAO |
jobDAO
JobDAO instance. |
Map<Long,Heritrix3JobMonitor> |
runningJobMonitorMap
A map from harvest job number to the running H3 job monitor for the given job
|
static RunningJobsInfoDAO |
runningJobsInfoDAO
RunningJobsInfoDAO instance. |
Thread |
thread
Current thread.
|
Throwable |
throwable
If caught, the throwable that stopped the monitor thread.
|
Constructor and Description |
---|
Heritrix3JobMonitorThread(NASEnvironment environment) |
Modifier and Type | Method and Description |
---|---|
void |
checkH3HostnamePort(Heritrix3JobMonitor jobmonitor) |
Heritrix3JobMonitor |
getRunningH3Job(long jobId) |
List<Heritrix3JobMonitor> |
getRunningH3Jobs() |
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.
|
void |
init() |
boolean |
isH3HostnamePortEnabled(Heritrix3JobMonitor jobmonitor) |
void |
run() |
void |
start() |
void |
updateH3HostnamePortFilter() |
public static RunningJobsInfoDAO runningJobsInfoDAO
RunningJobsInfoDAO
instance.public static HarvestChannelDAO harvestChannelDAO
HarvestChannelDAO
instance.public boolean bExit
public Map<Long,Heritrix3JobMonitor> runningJobMonitorMap
public Map<Long,Heritrix3JobMonitor> filterJobMonitorMap
public Set<String> h3HostPortSet
public List<String> h3HostnamePortEnabledList
public List<String> h3HostnamePortDisabledList
public Heritrix3JobMonitorThread(NASEnvironment environment)
public void start()
public Set<Long> getRunningJobs()
public Heritrix3JobMonitor getRunningH3Job(long jobId)
public List<Heritrix3JobMonitor> getRunningH3Jobs()
public void checkH3HostnamePort(Heritrix3JobMonitor jobmonitor)
public boolean isH3HostnamePortEnabled(Heritrix3JobMonitor jobmonitor)
public void updateH3HostnamePortFilter()
Copyright © 2005–2018 The Royal Danish Library, the National Library of France and the Austrian National Library.. All rights reserved.