Package org.alfresco.repo.node.db
Class NodeStringLengthWorker
java.lang.Object
org.alfresco.repo.node.db.NodeStringLengthWorker
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
public class NodeStringLengthWorker
extends Object
implements org.springframework.context.ApplicationContextAware
Max String Length Worker
What it is
A worker for a scheduled job that checks and adjusts string storage for persisted strings in the system.
Settings that control the behaviour
- ${system.maximumStringLength} - the maximum length of a string that can be persisted in the *alf_node_properties.string_value* column.
- ${system.maximumStringLength.jobQueryRange} - the node ID range to query for. The process will repeat from the first to the last node, querying for up to this many nodes. Only reduce the value if the NodeDAO query takes a long time.
- ${system.maximumStringLength.jobThreadCount} - the number of threads that will handle persistence checks and changes. Increase or decrease this to allow for free CPU capacity on the machine executing the job.
How to use it
sdfsf- Since:
- 4.1.9.2
- Author:
- Derek Hulley
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA scheduled job that checks and adjusts string storage for persisted strings in the system.static classThread-safe helper class to carry the job progress information -
Constructor Summary
ConstructorsConstructorDescriptionNodeStringLengthWorker(NodeDAO nodeDAO, JobLockService jobLockService, TransactionService transactionService, QNameDAO qnameDAO, BehaviourFilter behaviourFilter, int queryRange, int threadCount) -
Method Summary
Modifier and TypeMethodDescriptionexecute()Performs the work, including logging details of progress.voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) Set the application context for event publishing during batch processing
-
Constructor Details
-
NodeStringLengthWorker
public NodeStringLengthWorker(NodeDAO nodeDAO, JobLockService jobLockService, TransactionService transactionService, QNameDAO qnameDAO, BehaviourFilter behaviourFilter, int queryRange, int threadCount)
-
-
Method Details
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException Set the application context for event publishing during batch processing- Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-
execute
Performs the work, including logging details of progress.
-