Package edu.byu.hbll.box
Class SourceConfig
- java.lang.Object
-
- edu.byu.hbll.box.SourceConfig
-
public class SourceConfig extends Object
The configuration of a source in Box.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SourceConfig.Builder
-
Field Summary
Fields Modifier and Type Field Description static String
ALL_SOURCES_ALIAS
For participating operations, this refers to all sources.static String
PRINCIPAL_SOURCE_ALIAS
Always points to the principal source.static Set<String>
RESERVED_SOURCE_NAMES
Reserved source names.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getBatchCapacity()
Returns the batchCapacity.Duration
getBatchDelay()
Returns the batchDelay.BoxDatabase
getCursorDb()
Returns the cursorDb.BoxDatabase
getDb()
Returns the db.int
getDefaultLimit()
Returns the defaultLimit.Map<String,Set<String>>
getFacetFields()
Returns the facetFields.Harvester
getHarvester()
Returns the harvest processor.edu.byu.hbll.scheduler.Schedule
getHarvestResetSchedule()
Returns the harvestResetSchedule.edu.byu.hbll.scheduler.Schedule
getHarvestSchedule()
Returns the harvestSchedule.String
getName()
Return the name of this source.edu.byu.hbll.scheduler.Schedule
getOff()
Returns when processing is turned off.edu.byu.hbll.scheduler.Schedule
getOn()
Returns when processing is turned on.List<BoxConfigurable>
getOthers()
Returns other managed objects.BoxDatabase
getPreferredCursorDb()
Returns cursorDb if not null, otherwise db.Processor
getProcessor()
Returns the processor.int
getQuota()
Returns the quota.edu.byu.hbll.scheduler.Schedule
getQuotaReset()
Returns the quotaReset schedule.Duration
getRemoveAge()
Returns the removeAge.edu.byu.hbll.scheduler.Schedule
getRemoveSchedule()
Returns the removeSchedule.Duration
getReprocessAge()
Returns the reprocessAge.edu.byu.hbll.scheduler.Schedule
getReprocessSchedule()
Returns the reprocessSchedule.Duration
getSuspend()
Returns the suspend.int
getThreadCount()
Returns the threadCount.boolean
isDependencyOnly()
Returns whether or not this source is a dependency only.boolean
isEnabled()
Returns whether or not this source is enabled.boolean
isHarvestEnabled()
Returns whether or not harvester is enabled.boolean
isOverwrite()
Returns whether or not to always overwrite.boolean
isPostEnabled()
Returns whether or not post is enabled.boolean
isPrincipal()
Returns whether or not this source is the principal source.boolean
isProcess()
Returns whether or not to always process.boolean
isProcessEnabled()
Returns whether or not the processor is enabled.boolean
isSave()
Returns whether or not to save the documents.boolean
isSaveDeleted()
Returns whether or not to save newly harvested deleted items.String
toString()
Returns the name of the source.
-
-
-
Field Detail
-
PRINCIPAL_SOURCE_ALIAS
public static final String PRINCIPAL_SOURCE_ALIAS
Always points to the principal source.- See Also:
- Constant Field Values
-
ALL_SOURCES_ALIAS
public static final String ALL_SOURCES_ALIAS
For participating operations, this refers to all sources.- See Also:
- Constant Field Values
-
-
Method Detail
-
getName
public String getName()
Return the name of this source.- Returns:
- the name
-
isEnabled
public boolean isEnabled()
Returns whether or not this source is enabled.- Returns:
- the enabled
-
isPrincipal
public boolean isPrincipal()
Returns whether or not this source is the principal source.- Returns:
- the principal
-
getProcessor
public Processor getProcessor()
Returns the processor.- Returns:
- the processor
-
getBatchDelay
public Duration getBatchDelay()
Returns the batchDelay.- Returns:
- the batchDelay
-
getBatchCapacity
public int getBatchCapacity()
Returns the batchCapacity.- Returns:
- the batchCapacity
-
getThreadCount
public int getThreadCount()
Returns the threadCount.- Returns:
- the threadCount
-
getSuspend
public Duration getSuspend()
Returns the suspend.- Returns:
- the suspend
-
getQuota
public int getQuota()
Returns the quota.- Returns:
- the quota
-
getQuotaReset
public edu.byu.hbll.scheduler.Schedule getQuotaReset()
Returns the quotaReset schedule.- Returns:
- the quotaReset
-
getOn
public edu.byu.hbll.scheduler.Schedule getOn()
Returns when processing is turned on.- Returns:
- the on
-
getOff
public edu.byu.hbll.scheduler.Schedule getOff()
Returns when processing is turned off.- Returns:
- the off
-
isProcessEnabled
public boolean isProcessEnabled()
Returns whether or not the processor is enabled.- Returns:
- the processEnabled
-
getHarvester
public Harvester getHarvester()
Returns the harvest processor.- Returns:
- the harvestProcessor
-
isHarvestEnabled
public boolean isHarvestEnabled()
Returns whether or not harvester is enabled.- Returns:
- the harvestEnabled
-
getHarvestSchedule
public edu.byu.hbll.scheduler.Schedule getHarvestSchedule()
Returns the harvestSchedule.- Returns:
- the harvestSchedule
-
getHarvestResetSchedule
public edu.byu.hbll.scheduler.Schedule getHarvestResetSchedule()
Returns the harvestResetSchedule.- Returns:
- the harvestResetSchedule
-
isSaveDeleted
public boolean isSaveDeleted()
Returns whether or not to save newly harvested deleted items.- Returns:
- the saveDeleted
-
getReprocessAge
public Duration getReprocessAge()
Returns the reprocessAge.- Returns:
- the reprocessAge
-
getReprocessSchedule
public edu.byu.hbll.scheduler.Schedule getReprocessSchedule()
Returns the reprocessSchedule.- Returns:
- the reprocessSchedule
-
getRemoveAge
public Duration getRemoveAge()
Returns the removeAge.- Returns:
- the removeAge
-
getRemoveSchedule
public edu.byu.hbll.scheduler.Schedule getRemoveSchedule()
Returns the removeSchedule.- Returns:
- the removeSchedule
-
getFacetFields
public Map<String,Set<String>> getFacetFields()
Returns the facetFields.- Returns:
- the facetFields
-
isSave
public boolean isSave()
Returns whether or not to save the documents.- Returns:
- the save
-
isProcess
public boolean isProcess()
Returns whether or not to always process.- Returns:
- the process
-
isDependencyOnly
public boolean isDependencyOnly()
Returns whether or not this source is a dependency only.- Returns:
- the dependencyOnly
-
getDefaultLimit
public int getDefaultLimit()
Returns the defaultLimit.- Returns:
- the defaultLimit
-
toString
public String toString()
Returns the name of the source.
-
getDb
public BoxDatabase getDb()
Returns the db.- Returns:
- the db
-
getCursorDb
public BoxDatabase getCursorDb()
Returns the cursorDb.- Returns:
- the cursorDb
-
getOthers
public List<BoxConfigurable> getOthers()
Returns other managed objects.- Returns:
- the others managed objects
-
getPreferredCursorDb
public BoxDatabase getPreferredCursorDb()
Returns cursorDb if not null, otherwise db.- Returns:
- cursorDb if not null, otherwise db
-
isOverwrite
public boolean isOverwrite()
Returns whether or not to always overwrite.- Returns:
- whether or not to always overwrite
-
isPostEnabled
public boolean isPostEnabled()
Returns whether or not post is enabled.- Returns:
- whether or not post is enabled
-
-