class SiteMonitor.SiteChecker
extends java.lang.Thread
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
private int |
ivSiteNdx
The number (element index) of the site this thread is checking.
|
private static long |
serialVersionUID
The class' serialization version id.
|
Constructor and Description |
---|
SiteChecker(int siteNdx)
Constructs a new
SiteChecker thread. |
Modifier and Type | Method and Description |
---|---|
private boolean |
isSiteAccessible()
Determines if a web site is accessible.
|
void |
run()
Starts the
SiteChecker thread. |
private void |
sendEmail()
Sends an email notification for a site access failure.
|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
private static final long serialVersionUID
private int ivSiteNdx
public SiteChecker(int siteNdx)
SiteChecker
thread.siteNdx
- (int) The number (element index) of the
site this thread is checking.public void run()
SiteChecker
thread.run
in interface java.lang.Runnable
run
in class java.lang.Thread
private boolean isSiteAccessible()
true
if the site is accessible,
otherwise false
.private void sendEmail()