jp.terasoluna.fw.collector.file
クラス FileCollector<P>

java.lang.Object
  上位を拡張 jp.terasoluna.fw.collector.AbstractCollector<P>
      上位を拡張 jp.terasoluna.fw.collector.file.FileCollector<P>
すべての実装されたインタフェース:
Closeable, Cloneable, Iterable<P>, Callable<Integer>, Iterator<P>, Collector<P>
直系の既知のサブクラス:
FileValidateCollector

public class FileCollector<P>
extends AbstractCollector<P>

FileCollector.
独立した別スレッドを起動し、FileQueryDAOを非同期で実行する。


フィールドの概要
protected  Class<P> clazz
          1行分の文字列を格納するファイル行オブジェクトクラス
protected  String fileName
          ファイル名(絶対パスまたは相対パスのどちらか)
protected  jp.terasoluna.fw.file.dao.FileQueryDAO fileQueryDAO
          FileQueryDAO
 
クラス jp.terasoluna.fw.collector.AbstractCollector から継承されたフィールド
beginning, CURRENT_QUEUE_CHECK_SIZE, currentQueue, DEFAULT_QUEUE_SIZE, DEFAULT_SLEEP_WAIT, exceptionHandler, finish, fo, PREVIOUS_QUEUE_CHECK_SIZE, previousQueue, queue, queueSize, sleepWait, validationErrorHandler, validator, verboseLog
 
コンストラクタの概要
protected FileCollector()
          FileCollectorコンストラクタ.
  FileCollector(FileCollectorConfig<P> config)
          FileCollectorコンストラクタ.
  FileCollector(jp.terasoluna.fw.file.dao.FileQueryDAO fileQueryDAO, String fileName, Class<P> clazz)
          FileCollectorコンストラクタ.
  FileCollector(jp.terasoluna.fw.file.dao.FileQueryDAO fileQueryDAO, String fileName, Class<P> clazz, CollectorExceptionHandler exceptionHandler)
          FileCollectorコンストラクタ.
  FileCollector(jp.terasoluna.fw.file.dao.FileQueryDAO fileQueryDAO, String fileName, Class<P> clazz, int queueSize, CollectorExceptionHandler exceptionHandler)
          FileCollectorコンストラクタ.
 
メソッドの概要
 Integer call()
           
 
クラス jp.terasoluna.fw.collector.AbstractCollector から継承されたメソッド
addQueue, close, closeQuietly, createCurrentQueue, createPreviousQueue, createQueue, execute, finalize, getCurrent, getExecutor, getNext, getPrevious, getQueue, getSleepWait, handleException, handleValidationError, hasNext, isFinish, iterator, next, remove, setFinish, setFinish, setQueueSize, setSleepWait, setVerbose, validate
 
クラス java.lang.Object から継承されたメソッド
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

fileQueryDAO

protected jp.terasoluna.fw.file.dao.FileQueryDAO fileQueryDAO
FileQueryDAO


fileName

protected String fileName
ファイル名(絶対パスまたは相対パスのどちらか)


clazz

protected Class<P> clazz
1行分の文字列を格納するファイル行オブジェクトクラス

コンストラクタの詳細

FileCollector

protected FileCollector()
FileCollectorコンストラクタ.


FileCollector

public FileCollector(jp.terasoluna.fw.file.dao.FileQueryDAO fileQueryDAO,
                     String fileName,
                     Class<P> clazz)
FileCollectorコンストラクタ.

パラメータ:
fileQueryDAO - FileQueryDAOインスタンス
fileName - ファイル名(絶対パスまたは相対パスのどちらか)
clazz - 1行分の文字列を格納するファイル行オブジェクトクラス

FileCollector

public FileCollector(jp.terasoluna.fw.file.dao.FileQueryDAO fileQueryDAO,
                     String fileName,
                     Class<P> clazz,
                     CollectorExceptionHandler exceptionHandler)
FileCollectorコンストラクタ.

パラメータ:
fileQueryDAO - FileQueryDAOインスタンス
fileName - ファイル名(絶対パスまたは相対パスのどちらか)
clazz - 1行分の文字列を格納するファイル行オブジェクトクラス
exceptionHandler - 例外ハンドラ

FileCollector

public FileCollector(jp.terasoluna.fw.file.dao.FileQueryDAO fileQueryDAO,
                     String fileName,
                     Class<P> clazz,
                     int queueSize,
                     CollectorExceptionHandler exceptionHandler)
FileCollectorコンストラクタ.

パラメータ:
fileQueryDAO - FileQueryDAOインスタンス
fileName - ファイル名(絶対パスまたは相対パスのどちらか)
clazz - 1行分の文字列を格納するファイル行オブジェクトクラス
queueSize - キューのサイズ(1以上を設定すること)
exceptionHandler - 例外ハンドラ

FileCollector

public FileCollector(FileCollectorConfig<P> config)
FileCollectorコンストラクタ.

パラメータ:
config - FileCollectorConfig FileCollector設定項目
メソッドの詳細

call

public Integer call()
             throws Exception
例外:
Exception


Copyright © 2011. All Rights Reserved.