com.ibm.gcs.db.component
Class DB2StatesDef
java.lang.Object
|
+--com.ibm.gcs.db.component.DB2StatesDef
- public final class DB2StatesDef
- extends java.lang.Object
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 |
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
DB2StatesDef
public DB2StatesDef()
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)
(c) Copyright International Business Machines Corporation 1996, 2002. IBM Corp. All rights reserved.