Enterprise Information Portal APIs

com.ibm.gcs.component.config
Class Globals

java.lang.Object
  |
  +--com.ibm.gcs.component.config.Globals

public class Globals
extends java.lang.Object

This part of the Config represents global parameters, such as logger configuration, locale, max urls, number of threads, temp/content/summary filepool, URL pool configuration, system property, and status monitor settings. It automatically creates the specified Loggers, URLPool, locale, and system network properties.


Method Summary
 Config getConfig()
          returns the parent Config object.
static int getConnectTimeout()
          returns the number of milliseconds to wait for connect on the network
 com.ibm.gcs.util.filepool.FilePool getContentFilePool()
          returns the FilePool that is used for some crawled content files
 int getGraphMonitorRefreshTime()
          returns the int value of the graph monitor refresh time (in half-second units)
 int getHowOftenToGC()
          returns the number of URLs to crawl between requesting garbage collection
 java.util.Locale getLocale()
          returns the current Locale
 int getMaxResourcePoolSize()
          returns the maximum number of resources that can be in the resource pool
 int getMaxURLs()
          returns int value of max-urls attribute
 int getNumCrawlers()
          returns the number of crawler threads to use
static int getNumCrawlersStatic()
          returns the number of crawler threads to use.
 int getNumSummarizers()
          returns the number of summarizer threads to use
static int getReadTimeout()
          returns the number of milliseconds to wait for data on the network
 java.lang.String getSummariesDir()
          returns the summaries directory to use
 com.ibm.gcs.util.filepool.FilePool getSummariesFilePool()
          returns the FilePool that is used for GCS summary files
 com.ibm.gcs.util.filepool.FilePool getTempFilePool()
          returns the FilePool that is used for temporary files
 int getTextMonitorRefreshTime()
          returns the int value of the graph monitor refresh time (in half-second units)
 com.ibm.gcs.urlpool.URLCollection getURLCollection()
          returns contents of urlpool-config element
 URLPoolConfig getURLPoolConfig()
          returns contents of urlpool-config element
 boolean isGraphMonitor()
           
 boolean isTextMonitor()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getMaxURLs

public int getMaxURLs()
returns int value of max-urls attribute

getURLPoolConfig

public URLPoolConfig getURLPoolConfig()
returns contents of urlpool-config element

getURLCollection

public com.ibm.gcs.urlpool.URLCollection getURLCollection()
returns contents of urlpool-config element

getNumCrawlers

public int getNumCrawlers()
returns the number of crawler threads to use

getNumCrawlersStatic

public static int getNumCrawlersStatic()
returns the number of crawler threads to use. This method is static and uses the static numCrawler-value!

getNumSummarizers

public int getNumSummarizers()
returns the number of summarizer threads to use

getHowOftenToGC

public int getHowOftenToGC()
returns the number of URLs to crawl between requesting garbage collection

getMaxResourcePoolSize

public int getMaxResourcePoolSize()
returns the maximum number of resources that can be in the resource pool

getConnectTimeout

public static int getConnectTimeout()
returns the number of milliseconds to wait for connect on the network

getReadTimeout

public static int getReadTimeout()
returns the number of milliseconds to wait for data on the network

isGraphMonitor

public boolean isGraphMonitor()

isTextMonitor

public boolean isTextMonitor()

getGraphMonitorRefreshTime

public int getGraphMonitorRefreshTime()
returns the int value of the graph monitor refresh time (in half-second units)

getTextMonitorRefreshTime

public int getTextMonitorRefreshTime()
returns the int value of the graph monitor refresh time (in half-second units)

getConfig

public Config getConfig()
returns the parent Config object.

getTempFilePool

public com.ibm.gcs.util.filepool.FilePool getTempFilePool()
returns the FilePool that is used for temporary files

getContentFilePool

public com.ibm.gcs.util.filepool.FilePool getContentFilePool()
returns the FilePool that is used for some crawled content files

getSummariesFilePool

public com.ibm.gcs.util.filepool.FilePool getSummariesFilePool()
returns the FilePool that is used for GCS summary files

getSummariesDir

public java.lang.String getSummariesDir()
returns the summaries directory to use

getLocale

public java.util.Locale getLocale()
returns the current Locale

EIP Web Crawler APIs

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