Enterprise Information Portal APIs

com.ibm.gcs.db.component
Class DB2StatesDef

java.lang.Object
  |
  +--com.ibm.gcs.db.component.DB2StatesDef

public final class DB2StatesDef
extends java.lang.Object


Field Summary
static int CRAWLFAILED
           
static int SUMMARIZED
           
static int SUMMARYFAILED
           
static int TOBECRAWLED
           
static int TOBESUMMARIZED
           
static int UNKNOWNSTATE
           
static int VIRGIN
           
 
Constructor Summary
DB2StatesDef()
           
 
Method Summary
static com.ibm.gcs.urlpool.URLState buildURLState(int sid, java.sql.Timestamp timestamp, java.lang.Throwable throwable)
           
static int get(java.lang.String name)
          Returns the integer constant that corresponds to the URLState name.
static boolean isFailureState(int sid)
          Returns true if state is failed.
static boolean isFailureState(com.ibm.gcs.urlpool.URLState urlState)
          Returns true if state is crawl failed or summary failed
static boolean isFinalState(int sid)
          Returns true if state is failed or summarized
static boolean isFinalState(com.ibm.gcs.urlpool.URLState urlState)
          Returns true if state is failed or summarized
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VIRGIN

public static final int VIRGIN

TOBECRAWLED

public static final int TOBECRAWLED

TOBESUMMARIZED

public static final int TOBESUMMARIZED

SUMMARIZED

public static final int SUMMARIZED

CRAWLFAILED

public static final int CRAWLFAILED

SUMMARYFAILED

public static final int SUMMARYFAILED

UNKNOWNSTATE

public static final int UNKNOWNSTATE
Constructor Detail

DB2StatesDef

public DB2StatesDef()
Method Detail

get

public static int get(java.lang.String name)
Returns the integer constant that corresponds to the URLState name.
Parameters:
name - The name of the URLState.

isFinalState

public static boolean isFinalState(com.ibm.gcs.urlpool.URLState urlState)
Returns true if state is failed or summarized
Parameters:
urlstate - The URLState.

isFinalState

public static boolean isFinalState(int sid)
Returns true if state is failed or summarized
Parameters:
int - stateId

isFailureState

public static boolean isFailureState(com.ibm.gcs.urlpool.URLState urlState)
Returns true if state is crawl failed or summary failed
Parameters:
urlstate - The URLState.

isFailureState

public static boolean isFailureState(int sid)
Returns true if state is failed.
Parameters:
int - stateId

buildURLState

public static com.ibm.gcs.urlpool.URLState buildURLState(int sid,
                                                         java.sql.Timestamp timestamp,
                                                         java.lang.Throwable throwable)

EIP Web Crawler APIs

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