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 int
getArchiveUnitProfileCacheMaxEntries()
int
getArchiveUnitProfileCacheTimeoutInSeconds()
int
getCapacity()
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.String
getProcessingUrl()
Get the processingUrllong
getRegisterDelay()
Get the registerDelayint
getRegisterRetry()
Get the registerRetryjava.lang.String
getRegisterServerHost()
Get the registerServerHostint
getRegisterServerPort()
Get the registerServerPortint
getSchemaValidatorCacheMaxEntries()
int
getSchemaValidatorCacheTimeoutInSeconds()
java.lang.String
getUrlMetadata()
Get the urlMetadatajava.lang.String
getUrlWorkspace()
Get the urlWorkspacejava.lang.String
getWorkerFamily()
Return the workerFamily nameWorkerConfiguration
setArchiveUnitProfileCacheMaxEntries(int archiveUnitProfileCacheMaxEntries)
WorkerConfiguration
setArchiveUnitProfileCacheTimeoutInSeconds(int archiveUnitProfileCacheTimeoutInSeconds)
WorkerConfiguration
setCapacity(int capacity)
Set the capacity (number of parallel steps that can handle the worker)void
setIndexInheritedRulesWithAPIV2OutputByTenant(java.util.List<java.lang.String> indexInheritedRulesWithAPIV2OutputByTenant)
void
setIndexInheritedRulesWithRulesIdByTenant(java.util.List<java.lang.String> indexInheritedRulesWithRulesIdByTenant)
WorkerConfiguration
setProcessingUrl(java.lang.String processingUrl)
The processingUrl setterWorkerConfiguration
setRegisterDelay(long registerDelay)
The registerDelay setterWorkerConfiguration
setRegisterRetry(int registerRetry)
The registerRetry setterWorkerConfiguration
setRegisterServerHost(java.lang.String registerServerHost)
The registerServerHost setterWorkerConfiguration
setRegisterServerPort(int registerServerPort)
The registerServerPort setterWorkerConfiguration
setSchemaValidatorCacheMaxEntries(int schemaValidatorCacheMaxEntries)
WorkerConfiguration
setSchemaValidatorCacheTimeoutInSeconds(int schemaValidatorCacheTimeoutInSeconds)
WorkerConfiguration
setUrlMetadata(java.lang.String urlMetadata)
The urlMetadata setterWorkerConfiguration
setUrlWorkspace(java.lang.String urlWorkspace)
The urlWorkspace setterWorkerConfiguration
setWorkerFamily(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, isEnableSession, isEnableXsrFilter, isTenantFilter, setAdminBasicAuth, setAuthentication, 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, getStaticContent, setBaseUri, setBaseUrl, setStaticContent
-
-
-
-
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)
-
-