com.ibm.gcs.component
Interface GCSThreadGroupEvent
- public interface GCSThreadGroupEvent
This interface represents an event that should
be handled by all the GCSThread
s in a GCSThreadGroup
,
such as the events used to stop the Crawler and Summarizer threads.
I think it is used as follows:
When the Crawler
or Summarizer
is stopped,
it stops its worker threads by calling the
GCSThreadGroup.interruptAndJoin(com.ibm.gcs.component.ScheduleException)
method.
This method adds GCSThreadGroupEvent that throws a ScheduleException
for each thread to the GCSThreadGroup's event buffer,
and then interrupts each thread. Each Thread handles the
the events in its ThreadGroup's event buffer each time
it wakes up while waiting for a URL or Resource in the
URLPool
or ResourcePool
.
- See Also:
GCSThreadGroup
,
GCSThread
Field Summary |
static java.lang.String |
copyright
|
Method Summary |
void |
handle()
handles this event |
copyright
public static final java.lang.String copyright
handle
public void handle()
- handles this event
(c) Copyright International Business Machines Corporation 1996, 2002. IBM Corp. All rights reserved.