Esri Geoportal Server
1.0

com.esri.gpt.control.webharvest.engine
Class HarvesterConfiguration

java.lang.Object
  extended by com.esri.gpt.framework.context.Configuration
      extended by com.esri.gpt.control.webharvest.engine.HarvesterConfiguration

public class HarvesterConfiguration
extends Configuration

Harvester configuration.


Field Summary
static long AUTOSELECT_FREQUENCY
          default autoselect wait/sleep duration (1 hour)
static int DEFAULT_POOL_SIZE
          default pool of worker threads getPoolSize
static long MAX_REP_ERRORS
          default maximum reported errors
static long MAX_REP_RECORDS
          default maximum reported records
static boolean RESOURCE_AUTOAPPROVE
          default resource auto approve
static long WATCHDOG_FREQUENCY
          default watch-dog wait/sleep duration (1 minute)
 
Constructor Summary
HarvesterConfiguration()
           
 
Method Summary
 boolean getActive()
          Gets 'active' flag
 long getAutoSelectFrequency()
          Gets auto-selection frequency (milliseconds).
 String getBaseContextPath()
          Gets base context path
 long getMaxRepErrors()
          Gets maximum number of errors to report.
 long getMaxRepRecords()
          Gets maximum number of records to report.
 int getPoolSize()
          Gets initial worker threads pool size.
 boolean getQueueEnabled()
          Checks if queue enabled.
 boolean getResourceAutoApprove()
          Checks if auto approve resource.
 long getWatchDogFrequency()
          Gets watch-dog frequency (milliseconds).
 void setActive(boolean active)
          Sets 'active' flag.
 void setAutoSelectFrequency(TimePeriod autoSelectFrequency)
          Sets auto-selection frequency (milliseconds).
 void setBaseContextPath(String baseContextPath)
          Sets base context path
 void setMaxRepErrors(long maxRepErrors)
          Sets maximum number of errors to report.
 void setMaxRepRecords(long maxRepRecords)
          Sets maximum number of records to report.
 void setPoolSize(int poolSize)
          Sets initial worker threads pool size.
 void setQueueEnabled(boolean queueEnabled)
          Enables/disables queue.
 void setResourceAutoApprove(boolean resourceAutoApprove)
          Sets if auto approve resource.
 void setWatchDogFrequency(TimePeriod watchDogFrequency)
          Sets watch-dog frequency (milliseconds).
 String toString()
          Creates string representation of the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_POOL_SIZE

public static final int DEFAULT_POOL_SIZE
default pool of worker threads getPoolSize

See Also:
Constant Field Values

AUTOSELECT_FREQUENCY

public static final long AUTOSELECT_FREQUENCY
default autoselect wait/sleep duration (1 hour)

See Also:
Constant Field Values

WATCHDOG_FREQUENCY

public static final long WATCHDOG_FREQUENCY
default watch-dog wait/sleep duration (1 minute)

See Also:
Constant Field Values

MAX_REP_RECORDS

public static final long MAX_REP_RECORDS
default maximum reported records

See Also:
Constant Field Values

MAX_REP_ERRORS

public static final long MAX_REP_ERRORS
default maximum reported errors

See Also:
Constant Field Values

RESOURCE_AUTOAPPROVE

public static final boolean RESOURCE_AUTOAPPROVE
default resource auto approve

See Also:
Constant Field Values
Constructor Detail

HarvesterConfiguration

public HarvesterConfiguration()
Method Detail

getActive

public boolean getActive()
Gets 'active' flag

Returns:
true if harvester should be activated at startup

setActive

public void setActive(boolean active)
Sets 'active' flag.

Parameters:
active - true if harvester should be activated at startup

getQueueEnabled

public boolean getQueueEnabled()
Checks if queue enabled.

Returns:
true if queue enabled

setQueueEnabled

public void setQueueEnabled(boolean queueEnabled)
Enables/disables queue.

Parameters:
queueEnabled - true to enable queue

getPoolSize

public int getPoolSize()
Gets initial worker threads pool size.

Returns:
the poolSize

setPoolSize

public void setPoolSize(int poolSize)
Sets initial worker threads pool size.

Parameters:
poolSize - the poolSize to set

getAutoSelectFrequency

public long getAutoSelectFrequency()
Gets auto-selection frequency (milliseconds).

Returns:
the autoSelectFrequency

setAutoSelectFrequency

public void setAutoSelectFrequency(TimePeriod autoSelectFrequency)
Sets auto-selection frequency (milliseconds).

Parameters:
autoSelectFrequency - the autoSelectFrequency to set

getBaseContextPath

public String getBaseContextPath()
Gets base context path

Returns:
the baseContextPath

setBaseContextPath

public void setBaseContextPath(String baseContextPath)
Sets base context path

Parameters:
baseContextPath - the baseContextPath to set

getWatchDogFrequency

public long getWatchDogFrequency()
Gets watch-dog frequency (milliseconds).

Returns:
watch-dog frequency

setWatchDogFrequency

public void setWatchDogFrequency(TimePeriod watchDogFrequency)
Sets watch-dog frequency (milliseconds).

Parameters:
watchDogFrequency - watch-dog frequency

getMaxRepErrors

public long getMaxRepErrors()
Gets maximum number of errors to report.

Returns:
maximum number of errors to report or -1 for no limit

setMaxRepErrors

public void setMaxRepErrors(long maxRepErrors)
Sets maximum number of errors to report.

Parameters:
maxRepErrors - maximum number of errors to report or -1 for no limit

getMaxRepRecords

public long getMaxRepRecords()
Gets maximum number of records to report.

Returns:
maximum number of records to report or -1 for no limit

setMaxRepRecords

public void setMaxRepRecords(long maxRepRecords)
Sets maximum number of records to report.

Parameters:
maxRepRecords - maximum number of records to report or -1 for no limit

getResourceAutoApprove

public boolean getResourceAutoApprove()
Checks if auto approve resource.

Returns:
true if auto approve resource

setResourceAutoApprove

public void setResourceAutoApprove(boolean resourceAutoApprove)
Sets if auto approve resource.

Parameters:
resourceAutoApprove - true to auto approve resource

toString

public String toString()
Creates string representation of the object.

Overrides:
toString in class Object
Returns:
string representation of the object

Esri Geoportal Server
1.0

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.