The Encog Project

org.encog.bot.spider
Class SpiderOptions

java.lang.Object
  extended by org.encog.bot.spider.SpiderOptions

public class SpiderOptions
extends java.lang.Object

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

DEFAULT_TIMEOUT

public static final int DEFAULT_TIMEOUT
The default timeout.

See Also:
Constant Field Values

DEFAULT_MAX_DEPTH

public static final int DEFAULT_MAX_DEPTH
The default maximum depth is no maximum depth.

See Also:
Constant Field Values

DEFAULT_CORE_POOL_SIZE

public static final int DEFAULT_CORE_POOL_SIZE
The default core pool size.

See Also:
Constant Field Values

DEFAULT_MIN_POOL_SIZE

public static final int DEFAULT_MIN_POOL_SIZE
The default min pool size.

See Also:
Constant Field Values

DEFAULT_KEEP_ALIVE

public static final int DEFAULT_KEEP_ALIVE
The default keep-alive time.

See Also:
Constant Field Values

STARTUP_CLEAR

public static final java.lang.String STARTUP_CLEAR
Specifies that when the spider starts up it should clear the workload.

See Also:
Constant Field Values

STARTUP_RESUME

public static final java.lang.String STARTUP_RESUME
Specifies that the spider should resume processing its workload.

See Also:
Constant Field Values
Constructor Detail

SpiderOptions

public SpiderOptions()
Method Detail

getCorePoolSize

public int getCorePoolSize()
Returns:
the corePoolSize

getDbClass

public java.lang.String getDbClass()
Returns:
the dbClass

getDbPWD

public java.lang.String getDbPWD()
Returns:
the dbPWD

getDbUID

public java.lang.String getDbUID()
Returns:
the dbUID

getDbURL

public java.lang.String getDbURL()
Returns:
the dbURL

getFilter

public java.util.List<java.lang.String> getFilter()
Returns:
the filter

getKeepAliveTime

public long getKeepAliveTime()
Returns:
the keepAliveTime

getMaxDepth

public int getMaxDepth()
Returns:
the maxDepth

getMaximumPoolSize

public int getMaximumPoolSize()
Returns:
the maximumPoolSize

getStartup

public java.lang.String getStartup()
Returns:
the startup

getTimeout

public int getTimeout()
Returns:
the timeout

getUserAgent

public java.lang.String getUserAgent()
Returns:
the userAgent

getWorkloadManager

public java.lang.String getWorkloadManager()
Returns:
the workloadManager

load

public void load(java.lang.String inputFile)
Load the spider settings from a configuration file.

Parameters:
inputFile - The name of the configuration file.

setCorePoolSize

public void setCorePoolSize(int corePoolSize)
Parameters:
corePoolSize - the corePoolSize to set

setDbClass

public void setDbClass(java.lang.String dbClass)
Parameters:
dbClass - the dbClass to set

setDbPWD

public void setDbPWD(java.lang.String dbPWD)
Parameters:
dbPWD - the dbPWD to set

setDbUID

public void setDbUID(java.lang.String dbUID)
Parameters:
dbUID - the dbUID to set

setDbURL

public void setDbURL(java.lang.String dbURL)
Parameters:
dbURL - the dbURL to set

setFilter

public void setFilter(java.util.List<java.lang.String> filter)
Parameters:
filter - the filter to set

setKeepAliveTime

public void setKeepAliveTime(long keepAliveTime)
Parameters:
keepAliveTime - the keepAliveTime to set

setMaxDepth

public void setMaxDepth(int maxDepth)
Parameters:
maxDepth - the maxDepth to set

setMaximumPoolSize

public void setMaximumPoolSize(int maximumPoolSize)
Parameters:
maximumPoolSize - the maximumPoolSize to set

setStartup

public void setStartup(java.lang.String startup)
Parameters:
startup - the startup to set

setTimeout

public void setTimeout(int timeout)
Parameters:
timeout - the timeout to set

setUserAgent

public void setUserAgent(java.lang.String userAgent)
Parameters:
userAgent - the userAgent to set

setWorkloadManager

public void setWorkloadManager(java.lang.String workloadManager)
Parameters:
workloadManager - the workloadManager to set

The Encog Project