uCosminexus Service Platform, Overview
You can use the file operations adapter to convert, replicate, and delete files by specifying work folders or common folders. Files can be input and output between work folders or between common folders. Files can also be input from a work folder and output to a common folder.
For the following operations, you can specify whether to overwrite an existing file or output an error message if a file with the same name already exists in the output destination folder:
For details about the file operations adapter definition file, see File operations adapter definition file in the Service Platform Reference Guide.
If a file to be read is in a common folder, a shared lock for the file is acquired. If a file to be written or to be deleted is in a common folder, dedicated lock for the file is acquired.
If an attempt to acquire the lock fails, lock acquisition processing is retried (at the specified interval) up to the number of times specified for the retry count. The timeout value is obtained by adding the product of the retry interval and retry count to the file access time for acquiring each lock. To set up the timeout, specify the lock retry count and lock retry interval parameters in the file operations adapter runtime-environment property file. The following table describes the parameters to be specified.
Table 8-25 Lock acquisition timeout settings
No. | Value | Key name | Default value |
---|---|---|---|
1 | Shared lock retry count | readLock.retry.count | 0 |
2 | Shared lock retry interval (seconds) | readLock.retry.interval | 1 |
3 | Dedicated lock retry count | writeLock.retry.count | 0 |
4 | Dedicated lock retry interval (seconds) | writeLock.retry.interval | 1 |
For details about the file operations adapter runtime-environment property file, see File operations adapter runtime-environment property file in the Service Platform Reference Guide.
All Rights Reserved. Copyright (C) 2015, Hitachi, Ltd.