uCosminexus Stream Data Platform - Application Framework Setup and Operation Guide
You specify a file input connector definition (FileInputConnectorDefinition tag) as a child element of a CB definition for input (InputCBDefinition tag).
For details about file input processing, see 10.2 File input.
<FileInputConnectorDefinition>
<input readType="{BATCH|REAL_TIME}"
compositionType="{WRAP_AROUND|ANTI_WRAP_AROUND}"
interval="monitoring-interval"
retryCount="monitoring-retries-count"
readOrder="{DEFINED|MODIFIED}"
readUnit="reading-unit"/>
<file path="input-path-name"
name="input-files"
messageLog="{ON|OFF}"/>
</FileInputConnectorDefinition>
|
<?xml version="1.0" encoding="UTF-8"?>
<root:AdaptorCompositionDefinition
xmlns:ficon="http://www.hitachi.co.jp/soft/xml/sdp/adaptor/definition/callback/FileInputConnectorDefinition">
<!-- Omitted -->
<!-- CB definition for input -->
<cb:InputCBDefinition
class="jp.co.Hitachi.soft.sdp.adaptor.callback.io.FileInputCBImpl" name="inputer1">
<!-- File input connector definition -->
<ficon:FileInputConnectorDefinition>
<!-- Input definition -->
<ficon:input readType="REAL_TIME" interval="600000"
retryCount="100" readUnit="1"/>
<!-- Input file definition -->
<ficon:file path="C:\tmp\" name="a[1-100].txt"/>
</ficon:FileInputConnectorDefinition>
</cb:InputCBDefinition>
|
This subsection describes the format used to specify sequence numbers in place of input file names in the name attribute in the file tag.
prefix-string sequence-number-1 intermediate-string sequence-number-2 suffix string |
| Example | Processing result | Order of files to be input during normal operation |
|---|---|---|
| a[1-100].txt | Y | a1.txt, a2.txt, ... (omitted) ..., a9.txt, a10.txt, a11.txt, a12.txt, ... (omitted) ..., a99.txt, a100.txt |
| a[01-100].txt | Y | a01.txt, a02.txt, ... (omitted) ..., a09.txt, a10.txt, a11.txt, a12.txt, ... (omitted) ..., a99.txt, a100.txt |
| a[001-100].txt | Y | a001.txt, a002.txt, ... (omitted) ..., a009.txt, a010.txt, a011.txt, a012.txt, ... (omitted) ..., a099.txt, a100.txt |
| a[01-10]_[1-100].txt | Y | a01_1.txt, a01_2.txt, ... (omitted) ..., a01_9.txt, a01_10.txt, a01_a11.txt, ... (omitted) ..., a01_99.txt, a01_100.txt, a02_1.txt, a02_2.txt, ... (omitted) ..., a02_9.txt, a01_10.txt, a02_a11.txt, ... (omitted) ..., a02_99.txt, a02_100.txt, ... (omitted) ..., a10_1.txt, a10_2.txt, ... (omitted) ..., a10_9.txt, a10_10.txt, a10_a11.txt, ... (omitted) ..., a10_99.txt, a10_100.txt |
| a[5-3].txt | N#1 | -- |
| a[001-9].txt | N#2 | -- |
| a[1-005].txt | Y | a1.txt, a2.txt, a3.txt, a4.txt, a5.txt |
| a.txt, b[1-3].txt | N#3 | -- |
| a[1-3].txt,b[4-6].txt | N#3 | -- |
All Rights Reserved. Copyright (C) 2011, Hitachi, Ltd.