简体   繁体   中英

How to know whether a file is in making or completed in java?

I am calling sqlloader to load data file to data base from java. Log file is generated for that. The log file generation can take long time depending upon the size of the data file. From separate java call I need to know whether the log file writing is completed or not. If the log file writing is completed then I will show "Load Complete" or else I will say "Load Running." But how to know whether the log file is fully completed or still in making?

You could search for Elapsed time in log file. If it is there, it is done. Otherwise still running.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM