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
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
-
Method Summary
Modifier and TypeMethodDescriptionint
int
int
Return the capacity (number of parallel steps that can handle the worker)Get the processingUrllong
Get the registerDelayint
Get the registerRetryGet the registerServerHostint
Get the registerServerPortint
int
Get the urlMetadataGet the urlWorkspaceReturn the workerFamily namesetArchiveUnitProfileCacheMaxEntries
(int archiveUnitProfileCacheMaxEntries) setArchiveUnitProfileCacheTimeoutInSeconds
(int archiveUnitProfileCacheTimeoutInSeconds) setCapacity
(int capacity) Set the capacity (number of parallel steps that can handle the worker)void
setIndexInheritedRulesWithAPIV2OutputByTenant
(List<String> indexInheritedRulesWithAPIV2OutputByTenant) void
setIndexInheritedRulesWithRulesIdByTenant
(List<String> indexInheritedRulesWithRulesIdByTenant) setProcessingUrl
(String processingUrl) The processingUrl settersetRegisterDelay
(long registerDelay) The registerDelay settersetRegisterRetry
(int registerRetry) The registerRetry settersetRegisterServerHost
(String registerServerHost) The registerServerHost settersetRegisterServerPort
(int registerServerPort) The registerServerPort settersetSchemaValidatorCacheMaxEntries
(int schemaValidatorCacheMaxEntries) setSchemaValidatorCacheTimeoutInSeconds
(int schemaValidatorCacheTimeoutInSeconds) setUrlMetadata
(String urlMetadata) The urlMetadata settersetUrlWorkspace
(String urlWorkspace) The urlWorkspace settersetWorkerFamily
(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
-
Constructor Details
-
WorkerConfiguration
public WorkerConfiguration()WorkerConfiguration empty constructor for YAMLFactory
-
-
Method Details
-
getProcessingUrl
Get the processingUrl- Returns:
- processingUrl
-
setProcessingUrl
The processingUrl setter- Parameters:
processingUrl
- the processingUrl- Returns:
- the updated WorkerConfiguration object
-
getUrlMetadata
Get the urlMetadata- Returns:
- urlMetadata
-
setUrlMetadata
The urlMetadata setter- Parameters:
urlMetadata
- the urlMetadata- Returns:
- the updated WorkerConfiguration object
-
getUrlWorkspace
Get the urlWorkspace- Returns:
- urlWorkspace
-
setUrlWorkspace
The urlWorkspace setter- Parameters:
urlWorkspace
- the urlWorkspace- Returns:
- the updated WorkerConfiguration object
-
getRegisterServerHost
Get the registerServerHost- Returns:
- registerServerHost
-
setRegisterServerHost
The registerServerHost setter- Parameters:
registerServerHost
- the registerServerHost- Returns:
- the updated WorkerConfiguration object
-
getRegisterServerPort
public int getRegisterServerPort()Get the registerServerPort- Returns:
- registerServerPort
-
setRegisterServerPort
The registerServerPort setter- Parameters:
registerServerPort
- the registerServerPort- Returns:
- the updated WorkerConfiguration object
-
getRegisterDelay
public long getRegisterDelay()Get the registerDelay- Returns:
- registerDelay
-
setRegisterDelay
The registerDelay setter- Parameters:
registerDelay
- the registerDelay- Returns:
- the updated WorkerConfiguration object
-
getRegisterRetry
public int getRegisterRetry()Get the registerRetry- Returns:
- registerRetry
-
setRegisterRetry
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
Set the capacity (number of parallel steps that can handle the worker)- Parameters:
capacity
- the capacity to set- Returns:
- this
-
getWorkerFamily
Return the workerFamily name- Returns:
- workerFamily
-
setWorkerFamily
Set the workerFamily name of this worker (Default Value : DefaultWorker)- Parameters:
workerFamily
- the worker family as String- Returns:
- this
-
getIndexInheritedRulesWithRulesIdByTenant
-
setIndexInheritedRulesWithRulesIdByTenant
-
getIndexInheritedRulesWithAPIV2OutputByTenant
-
setIndexInheritedRulesWithAPIV2OutputByTenant
-
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
-
getSchemaValidatorCacheTimeoutInSeconds
public int getSchemaValidatorCacheTimeoutInSeconds() -
setSchemaValidatorCacheTimeoutInSeconds
public WorkerConfiguration setSchemaValidatorCacheTimeoutInSeconds(int schemaValidatorCacheTimeoutInSeconds)
-