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 java.lang.Object implements org.springframework.context.ApplicationContextAwareMax 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 Classes Modifier and Type Class Description static classNodeStringLengthWorker.NodeStringLengthJobA scheduled job that checks and adjusts string storage for persisted strings in the system.static classNodeStringLengthWorker.NodeStringLengthWorkResultThread-safe helper class to carry the job progress information
-
Constructor Summary
Constructors Constructor Description NodeStringLengthWorker(NodeDAO nodeDAO, JobLockService jobLockService, TransactionService transactionService, QNameDAO qnameDAO, BehaviourFilter behaviourFilter, int queryRange, int threadCount)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NodeStringLengthWorker.NodeStringLengthWorkResultexecute()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 Detail
-
NodeStringLengthWorker
public NodeStringLengthWorker(NodeDAO nodeDAO, JobLockService jobLockService, TransactionService transactionService, QNameDAO qnameDAO, BehaviourFilter behaviourFilter, int queryRange, int threadCount)
-
-
Method Detail
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansExceptionSet the application context for event publishing during batch processing- Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-
execute
public NodeStringLengthWorker.NodeStringLengthWorkResult execute()
Performs the work, including logging details of progress.
-
-