|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
tr.linkchecker.url.CUrlQueue
Class that offers methods to the derivative classes
Date: 14.12.2004
Field Summary | |
protected CMediator |
mMed
|
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
CUrlQueue(java.lang.ThreadGroup tg,
java.lang.String name,
CMediator med)
Constructor |
Method Summary | |
void |
buildLCOutput(java.lang.String tableName,
java.util.Vector urlList)
Build the data for the output |
static int |
getPackageCounter()
|
static int |
getProcessCounter()
|
protected void |
insertPackageStmt(int packagenr,
java.lang.String name,
long time,
long countok,
long counterr,
int processnr)
Insert a package-entry in the database |
protected void |
insertProcessStmt(int processnr,
java.lang.String host,
java.lang.String port,
long runtime)
Insert a process-entry in the database |
void |
run()
Run-Method |
static void |
setPackageCounter(int packageCounter)
Sets the package-counter |
static void |
setProcessCounter(int processCounter)
Sets the process-counter |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected CMediator mMed
Constructor Detail |
public CUrlQueue(java.lang.ThreadGroup tg, java.lang.String name, CMediator med)
tg
- ThreadGroup this thread add toname
- Name of the Threadmed
- Mediator-objectMethod Detail |
public void run()
public void buildLCOutput(java.lang.String tableName, java.util.Vector urlList)
tableName
- Name of the tableurlList
- public static void setProcessCounter(int processCounter)
processCounter
- ProcessCounterpublic static void setPackageCounter(int packageCounter)
packageCounter
- PackageCounterpublic static int getProcessCounter()
public static int getPackageCounter()
protected void insertProcessStmt(int processnr, java.lang.String host, java.lang.String port, long runtime)
processnr
- Nr of the processhost
- host, in that the process runport
- port, in that the process runruntime
- Time the process runprotected void insertPackageStmt(int packagenr, java.lang.String name, long time, long countok, long counterr, int processnr)
packagenr
- Nr of the packagename
- Name of the tabletime
- Time the packege-process runcountok
- Counts the urls that are okcounterr
- Count the urls that aren't okprocessnr
- Nr of the process in which the package run
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |