|
The Encog Project | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.encog.bot.spider.SpiderOptions
public class SpiderOptions
SpiderOptions: This class contains options for the spider's execution.
| Field Summary | |
|---|---|
static int |
DEFAULT_CORE_POOL_SIZE
The default core pool size. |
static int |
DEFAULT_KEEP_ALIVE
The default keep-alive time. |
static int |
DEFAULT_MAX_DEPTH
The default maximum depth is no maximum depth. |
static int |
DEFAULT_MIN_POOL_SIZE
The default min pool size. |
static int |
DEFAULT_TIMEOUT
The default timeout. |
static java.lang.String |
STARTUP_CLEAR
Specifies that when the spider starts up it should clear the workload. |
static java.lang.String |
STARTUP_RESUME
Specifies that the spider should resume processing its workload. |
| Constructor Summary | |
|---|---|
SpiderOptions()
|
|
| Method Summary | |
|---|---|
int |
getCorePoolSize()
|
java.lang.String |
getDbClass()
|
java.lang.String |
getDbPWD()
|
java.lang.String |
getDbUID()
|
java.lang.String |
getDbURL()
|
java.util.List<java.lang.String> |
getFilter()
|
long |
getKeepAliveTime()
|
int |
getMaxDepth()
|
int |
getMaximumPoolSize()
|
java.lang.String |
getStartup()
|
int |
getTimeout()
|
java.lang.String |
getUserAgent()
|
java.lang.String |
getWorkloadManager()
|
void |
load(java.lang.String inputFile)
Load the spider settings from a configuration file. |
void |
setCorePoolSize(int corePoolSize)
|
void |
setDbClass(java.lang.String dbClass)
|
void |
setDbPWD(java.lang.String dbPWD)
|
void |
setDbUID(java.lang.String dbUID)
|
void |
setDbURL(java.lang.String dbURL)
|
void |
setFilter(java.util.List<java.lang.String> filter)
|
void |
setKeepAliveTime(long keepAliveTime)
|
void |
setMaxDepth(int maxDepth)
|
void |
setMaximumPoolSize(int maximumPoolSize)
|
void |
setStartup(java.lang.String startup)
|
void |
setTimeout(int timeout)
|
void |
setUserAgent(java.lang.String userAgent)
|
void |
setWorkloadManager(java.lang.String workloadManager)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULT_TIMEOUT
public static final int DEFAULT_MAX_DEPTH
public static final int DEFAULT_CORE_POOL_SIZE
public static final int DEFAULT_MIN_POOL_SIZE
public static final int DEFAULT_KEEP_ALIVE
public static final java.lang.String STARTUP_CLEAR
public static final java.lang.String STARTUP_RESUME
| Constructor Detail |
|---|
public SpiderOptions()
| Method Detail |
|---|
public int getCorePoolSize()
public java.lang.String getDbClass()
public java.lang.String getDbPWD()
public java.lang.String getDbUID()
public java.lang.String getDbURL()
public java.util.List<java.lang.String> getFilter()
public long getKeepAliveTime()
public int getMaxDepth()
public int getMaximumPoolSize()
public java.lang.String getStartup()
public int getTimeout()
public java.lang.String getUserAgent()
public java.lang.String getWorkloadManager()
public void load(java.lang.String inputFile)
inputFile - The name of the configuration file.public void setCorePoolSize(int corePoolSize)
corePoolSize - the corePoolSize to setpublic void setDbClass(java.lang.String dbClass)
dbClass - the dbClass to setpublic void setDbPWD(java.lang.String dbPWD)
dbPWD - the dbPWD to setpublic void setDbUID(java.lang.String dbUID)
dbUID - the dbUID to setpublic void setDbURL(java.lang.String dbURL)
dbURL - the dbURL to setpublic void setFilter(java.util.List<java.lang.String> filter)
filter - the filter to setpublic void setKeepAliveTime(long keepAliveTime)
keepAliveTime - the keepAliveTime to setpublic void setMaxDepth(int maxDepth)
maxDepth - the maxDepth to setpublic void setMaximumPoolSize(int maximumPoolSize)
maximumPoolSize - the maximumPoolSize to setpublic void setStartup(java.lang.String startup)
startup - the startup to setpublic void setTimeout(int timeout)
timeout - the timeout to setpublic void setUserAgent(java.lang.String userAgent)
userAgent - the userAgent to setpublic void setWorkloadManager(java.lang.String workloadManager)
workloadManager - the workloadManager to set
|
The Encog Project | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||