Enterprise Information Portal APIs

com.ibm.gcs.component
Class GCSThread

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--com.ibm.gcs.component.GCSThread
All Implemented Interfaces:
java.lang.Runnable

public class GCSThread
extends java.lang.Thread

This is the basic Thread model for the worker threads in the Crawler and Summarizer. GCSThreads are grouped in a GCSThreadGroup, with a GCSThreadGroupEvent model for interrupting and stopping the group.


Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
GCSThread(GCSThreadGroup gct)
          (constructor)
GCSThread(java.lang.String name, GCSThreadGroup gct)
          (constructor)
 
Method Summary
static GCSThread currentGCSThread()
          get the GCSThread that is currently running
static GCSThreadGroup currentGCSThreadGroup()
          get the GCSThreadGroup that contains the currently running GCSThread
static int currentGCSThreadIndex()
          get the index of the current GCSThread in its GCSThreadGroup
static void decrAwakeCount()
          decrease the number of awake threads in the current GCSThreadGroup
 int GCSThreadIndex()
          get the index of the current GCSThread in its GCSThreadGroup
static int getAwakeCount()
          count the number of awake threads in the current GCSThreadGroup
 GCSThreadGroup getGCSThreadGroup()
          get the GCSThreadGroup that contains the currently running GCSThread
static void incrAwakeCount()
          increase the number of awake threads in the current GCSThreadGroup
static void Synchronize()
          synchronize the current GCSThreadGroup
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, run, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GCSThread

public GCSThread(java.lang.String name,
                 GCSThreadGroup gct)
(constructor)

GCSThread

public GCSThread(GCSThreadGroup gct)
(constructor)
Method Detail

currentGCSThread

public static final GCSThread currentGCSThread()
get the GCSThread that is currently running

getGCSThreadGroup

public final GCSThreadGroup getGCSThreadGroup()
get the GCSThreadGroup that contains the currently running GCSThread

currentGCSThreadGroup

public static final GCSThreadGroup currentGCSThreadGroup()
get the GCSThreadGroup that contains the currently running GCSThread

GCSThreadIndex

public final int GCSThreadIndex()
get the index of the current GCSThread in its GCSThreadGroup

currentGCSThreadIndex

public static final int currentGCSThreadIndex()
get the index of the current GCSThread in its GCSThreadGroup

Synchronize

public static final void Synchronize()
synchronize the current GCSThreadGroup

getAwakeCount

public static final int getAwakeCount()
count the number of awake threads in the current GCSThreadGroup

incrAwakeCount

public static final void incrAwakeCount()
increase the number of awake threads in the current GCSThreadGroup

decrAwakeCount

public static final void decrAwakeCount()
decrease the number of awake threads in the current GCSThreadGroup

EIP Web Crawler APIs

(c) Copyright International Business Machines Corporation 1996, 2002. IBM Corp. All rights reserved.