Package fr.gouv.vitam.worker.server.rest
Class WorkerConfiguration
- java.lang.Object
-
- fr.gouv.vitam.common.server.application.configuration.DefaultVitamApplicationConfiguration
-
- fr.gouv.vitam.worker.server.rest.WorkerConfiguration
-
- All Implemented Interfaces:
VitamApplicationConfiguration,VitamApplicationConfigurationInterface
public final class WorkerConfiguration extends DefaultVitamApplicationConfiguration
Worker configuration class mapping
-
-
Field Summary
-
Fields inherited from class fr.gouv.vitam.common.server.application.configuration.DefaultVitamApplicationConfiguration
IS_A_MANDATORY_PARAMETER, jettyConfig
-
-
Constructor Summary
Constructors Constructor Description WorkerConfiguration()WorkerConfiguration empty constructor for YAMLFactory
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetArchiveUnitProfileCacheMaxEntries()intgetArchiveUnitProfileCacheTimeoutInSeconds()intgetCapacity()Return the capacity (number of parallel steps that can handle the worker)java.util.List<java.lang.String>getIndexInheritedRulesWithAPIV2OutputByTenant()java.util.List<java.lang.String>getIndexInheritedRulesWithRulesIdByTenant()java.lang.StringgetProcessingUrl()Get the processingUrllonggetRegisterDelay()Get the registerDelayintgetRegisterRetry()Get the registerRetryjava.lang.StringgetRegisterServerHost()Get the registerServerHostintgetRegisterServerPort()Get the registerServerPortintgetSchemaValidatorCacheMaxEntries()intgetSchemaValidatorCacheTimeoutInSeconds()java.lang.StringgetUrlMetadata()Get the urlMetadatajava.lang.StringgetUrlWorkspace()Get the urlWorkspacejava.lang.StringgetWorkerFamily()Return the workerFamily nameWorkerConfigurationsetArchiveUnitProfileCacheMaxEntries(int archiveUnitProfileCacheMaxEntries)WorkerConfigurationsetArchiveUnitProfileCacheTimeoutInSeconds(int archiveUnitProfileCacheTimeoutInSeconds)WorkerConfigurationsetCapacity(int capacity)Set the capacity (number of parallel steps that can handle the worker)voidsetIndexInheritedRulesWithAPIV2OutputByTenant(java.util.List<java.lang.String> indexInheritedRulesWithAPIV2OutputByTenant)voidsetIndexInheritedRulesWithRulesIdByTenant(java.util.List<java.lang.String> indexInheritedRulesWithRulesIdByTenant)WorkerConfigurationsetProcessingUrl(java.lang.String processingUrl)The processingUrl setterWorkerConfigurationsetRegisterDelay(long registerDelay)The registerDelay setterWorkerConfigurationsetRegisterRetry(int registerRetry)The registerRetry setterWorkerConfigurationsetRegisterServerHost(java.lang.String registerServerHost)The registerServerHost setterWorkerConfigurationsetRegisterServerPort(int registerServerPort)The registerServerPort setterWorkerConfigurationsetSchemaValidatorCacheMaxEntries(int schemaValidatorCacheMaxEntries)WorkerConfigurationsetSchemaValidatorCacheTimeoutInSeconds(int schemaValidatorCacheTimeoutInSeconds)WorkerConfigurationsetUrlMetadata(java.lang.String urlMetadata)The urlMetadata setterWorkerConfigurationsetUrlWorkspace(java.lang.String urlWorkspace)The urlWorkspace setterWorkerConfigurationsetWorkerFamily(java.lang.String workerFamily)Set the workerFamily name of this worker (Default Value : DefaultWorker)-
Methods inherited from class fr.gouv.vitam.common.server.application.configuration.DefaultVitamApplicationConfiguration
getAdminBasicAuth, getJettyConfig, isAuthentication, isAuthorizeTrackTotalHits, isEnableSession, isEnableXsrFilter, isTenantFilter, setAdminBasicAuth, setAuthentication, setAuthorizeTrackTotalHits, setEnableSession, setEnableXsrFilter, setJettyConfig, setTenantFilter
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface fr.gouv.vitam.common.server.application.configuration.VitamApplicationConfigurationInterface
getBaseUri, getBaseUrl, setBaseUri, setBaseUrl
-
-
-
-
Method Detail
-
getProcessingUrl
public java.lang.String getProcessingUrl()
Get the processingUrl- Returns:
- processingUrl
-
setProcessingUrl
public WorkerConfiguration setProcessingUrl(java.lang.String processingUrl)
The processingUrl setter- Parameters:
processingUrl- the processingUrl- Returns:
- the updated WorkerConfiguration object
-
getUrlMetadata
public java.lang.String getUrlMetadata()
Get the urlMetadata- Returns:
- urlMetadata
-
setUrlMetadata
public WorkerConfiguration setUrlMetadata(java.lang.String urlMetadata)
The urlMetadata setter- Parameters:
urlMetadata- the urlMetadata- Returns:
- the updated WorkerConfiguration object
-
getUrlWorkspace
public java.lang.String getUrlWorkspace()
Get the urlWorkspace- Returns:
- urlWorkspace
-
setUrlWorkspace
public WorkerConfiguration setUrlWorkspace(java.lang.String urlWorkspace)
The urlWorkspace setter- Parameters:
urlWorkspace- the urlWorkspace- Returns:
- the updated WorkerConfiguration object
-
getRegisterServerHost
public java.lang.String getRegisterServerHost()
Get the registerServerHost- Returns:
- registerServerHost
-
setRegisterServerHost
public WorkerConfiguration setRegisterServerHost(java.lang.String registerServerHost)
The registerServerHost setter- Parameters:
registerServerHost- the registerServerHost- Returns:
- the updated WorkerConfiguration object
-
getRegisterServerPort
public int getRegisterServerPort()
Get the registerServerPort- Returns:
- registerServerPort
-
setRegisterServerPort
public WorkerConfiguration setRegisterServerPort(int registerServerPort)
The registerServerPort setter- Parameters:
registerServerPort- the registerServerPort- Returns:
- the updated WorkerConfiguration object
-
getRegisterDelay
public long getRegisterDelay()
Get the registerDelay- Returns:
- registerDelay
-
setRegisterDelay
public WorkerConfiguration setRegisterDelay(long registerDelay)
The registerDelay setter- Parameters:
registerDelay- the registerDelay- Returns:
- the updated WorkerConfiguration object
-
getRegisterRetry
public int getRegisterRetry()
Get the registerRetry- Returns:
- registerRetry
-
setRegisterRetry
public WorkerConfiguration setRegisterRetry(int registerRetry)
The registerRetry setter- Parameters:
registerRetry- the registerRetry- Returns:
- the updated WorkerConfiguration object
-
getCapacity
public int getCapacity()
Return the capacity (number of parallel steps that can handle the worker)- Returns:
- the capacity
-
setCapacity
public WorkerConfiguration setCapacity(int capacity)
Set the capacity (number of parallel steps that can handle the worker)- Parameters:
capacity- the capacity to set- Returns:
- this
-
getWorkerFamily
public java.lang.String getWorkerFamily()
Return the workerFamily name- Returns:
- workerFamily
-
setWorkerFamily
public WorkerConfiguration setWorkerFamily(java.lang.String workerFamily)
Set the workerFamily name of this worker (Default Value : DefaultWorker)- Parameters:
workerFamily- the worker family as String- Returns:
- this
-
getIndexInheritedRulesWithRulesIdByTenant
public java.util.List<java.lang.String> getIndexInheritedRulesWithRulesIdByTenant()
-
setIndexInheritedRulesWithRulesIdByTenant
public void setIndexInheritedRulesWithRulesIdByTenant(java.util.List<java.lang.String> indexInheritedRulesWithRulesIdByTenant)
-
getIndexInheritedRulesWithAPIV2OutputByTenant
public java.util.List<java.lang.String> getIndexInheritedRulesWithAPIV2OutputByTenant()
-
setIndexInheritedRulesWithAPIV2OutputByTenant
public void setIndexInheritedRulesWithAPIV2OutputByTenant(java.util.List<java.lang.String> indexInheritedRulesWithAPIV2OutputByTenant)
-
getArchiveUnitProfileCacheMaxEntries
public int getArchiveUnitProfileCacheMaxEntries()
-
setArchiveUnitProfileCacheMaxEntries
public WorkerConfiguration setArchiveUnitProfileCacheMaxEntries(int archiveUnitProfileCacheMaxEntries)
-
getArchiveUnitProfileCacheTimeoutInSeconds
public int getArchiveUnitProfileCacheTimeoutInSeconds()
-
setArchiveUnitProfileCacheTimeoutInSeconds
public WorkerConfiguration setArchiveUnitProfileCacheTimeoutInSeconds(int archiveUnitProfileCacheTimeoutInSeconds)
-
getSchemaValidatorCacheMaxEntries
public int getSchemaValidatorCacheMaxEntries()
-
setSchemaValidatorCacheMaxEntries
public WorkerConfiguration setSchemaValidatorCacheMaxEntries(int schemaValidatorCacheMaxEntries)
-
getSchemaValidatorCacheTimeoutInSeconds
public int getSchemaValidatorCacheTimeoutInSeconds()
-
setSchemaValidatorCacheTimeoutInSeconds
public WorkerConfiguration setSchemaValidatorCacheTimeoutInSeconds(int schemaValidatorCacheTimeoutInSeconds)
-
-