Halt/stop a process and then resume again
Hi frns,
I m implementing an application in which i want to add a specila functionality which is described as below :
suppose there is a folder and it contains 5 files.
FOLDER
- FILE 1
- FILE 2
- FILE 3
- FILE 4
- FILE 5
Now I have to send the folder to another pc in internet or any network.
So i will read the contents of all the files and send it to the server.
For this I will zip the folder (with all inside files being zipped) and then read the file in buffer and send to the othere computer.
Now the trouble is that if while zipping the folder; I have zipped FILE 1, FILE 2 and then while zipping FILE 3 there is some problem and the pc gets shutdown or the electricity is no more. So when the pc restarts I want to restart the process of zipping the file FILE 3 and then FILE 4 , FILE 5. and then send to the server.
So wht i am saying is that we should be able to store the status of every step and if there is some interruption in the process and then it restarts again then the status should be resumed and started at that point.
For this, I have one solution that :
when ever a file is being zipped in I will make one file and store the status that FILE 1 is zipped ,then FILE 2 zipped, ie.
FILE 1 ZIP START
FILE 1 ZIP FINISH
FILE 2 ZIP START
FILE 2 ZIP FINISH
and if process stops during zip of FILE 3 then the the status file will contain the entry
FILE 3 ZIP START
it will not contain the FINISH entry.
Now if the process shuts down and restarts I will read the file and see the status for the zipping process.
So I will find that there is no entry for FILE 3 FINISH .so I will start from FILE 3 ZIP process and then complete the process.
This should happen for every step (after zip of FILE 1 or 2 or 3 ..........., or some other task)
But the problem is that this process of handling the process resuming is tedious and will be inefficient when there are so many processes.
So can anyone tell me that is there any other way to do this or is there any inbuilt facility in java to handle such problems.
Thanks for your time and consideration
Sipin
Hi,
You probably need that file that you are talking about (transaction log of whatever you want to call it) but I don't understand why you need to write down the start info. Finished is enough.
Kaj
Similar Messages
-
Controling movie to stop 10 sec -and then run again
Hey
I'm making a flv incl. a movie. I would like the movie to
stop now and then (to put some animations on top of it) and then
run after lets say 10 sec - this has to be timer controled. How do
i script this in actionscript 2.0? and will I be able to use it
again in the same flv?
Thank you very much !
br/jeanHello!
Your best bet might be to try an interval that will unpause
your movie after ten seconds or so. Just have it set the duration
of the inteval as a parameter if you have difrent length of your
pauses. If you need to determine when to pause the move you can use
a listener to the time property of your NetStream object. Anyway,
here is a simple way to pause: -
Is there a way to stop and then resume an ipod video conversion process?
I am trying to convert videos to play on my new iPod Classic. The conversion process is painfully slow. I need to move the computer. Is there a way to stop the conversion process and then resume it later where you left off? The only way I have been able to figure it out is to put the laptop to sleep and then open it up later to resume. This is a problem too as I have an external USB drive hanging off the side. Any ideas?
Thanks all in advance for your help.AFAIk you can just uninstall Thunderbird and reinstall. The profile will not be deleted. If you want to make sure, however, make a backup of your profile folder first.
Read up on "backup", e.g. here : http://email.about.com/od/mozillathunderbirdtips/qt/et_backup_prof.htm
(google is your friend :9 )
P.S. _ Matter of fact you should regularly backup your data (e.g. your thunderbirdprofile) to some place different so as not to loose it all, if a thunderbird-bug/virus/windows-failure/Layer8-Problem corrupts your data. -
HT204379 Any way to stop and then resume a screensaver?
Any way to stop and then resume a screensaver?
TIALooks like you can. Use Hot Corners:
Ciao. -
When I try to open iPhoto it begins the process and then stops. It brings up a message that iPhoto has quit unexpectedly. Efforts to reopen it bring the same result. My timemachine has been accidentally turned off. I have over 20,000 photos on iPhoto. Help!
First, copy your iPhoto Library to an external so that you have a backup.
Second, see if you can create a new Library and have it open. To do this, open iPhoto while holding down the Option key. It will ask which Library to use, or allow you to create a new Library. Save the new library with a different name from the old one.
If that does open with a new library, the old library is corrupt, but all the files are still OK.
If it is a corrupt Library, iPhoto Library Manager can repair some corruption, or transfer the Library over to a new one. -
Synaptic touchpad stops working now and then on ProBook 6450b
The touchpad on my ProBook 6450b stops working every now and then. It just freezes, no error message or anything. It always works again after I reboot. It also starts working immediately if I go to the Task Manager and kill SynTPEnh.exe and then restart SynTPEnh.exe via Explorer (C:\Program Files\Synaptic\SynTP\SynTPEnh.exe). I have had this machine for 9 months, and these problems started only a couple of weeks ago. There are no error messages, and Device Manager says the device is working properly even when the touchpad is frozen. Sometimes I can go days without having a freeze, sometimes multiple freezes within minutes. Also, it happens during different activities - web browsing, watching movies, etc.
I'm not sure, but I might have enabled the WiFi-card in the BIOS prior to having these problems. However, as I currently need wireless, disabling it again is not an option.
I tried updating the BIOS, but the installation program wouldn't detect my SanDisk Cruzer USB stick, so I couldn't make a backup and decided to abort the procedure. I also tried installing another version of the Synaptic driver (can't remember the version, but it said "Evaluation Copy" on the Synaptic device in the Control Panel). It worked for a couple of days, then I got the old freeze again.
My setup:
HP ProBook 6450b
Windows 7 Professional 32-bit
Synaptic driver version 15.0.24As a "quick'n'dirty" solution, I figured out how to automate this process. Simply create a new textfile called "Restart Synaptics.bat" and enter the following into it:
taskkill /IM SynTPEnh.exe /F
"C:\Program Files\Synaptics\SynTP\SynTPEnh.exe"
This will kill the SynTPEnh.exe process and then restart it. Now put a shortcut to your batch file in the Start Menu for easy access. -
I tried to install yosemite yesterday and my computer goes through the whole installation process and then to a blank white screen. I've rebooted, I've reinstalled several times and get the same result. Two days wasted and I can't use my computer!!
I don't know if you've already resolved your problem, but I had the same thing, it took me 6 hours to fix it. I had the exact same as you, installed the update and then it went to a white screen. After trying start up holding down cmmd r or holding down the alt key to try to install it again, nothing worked, same result every time. Then an angel came to me here somewhere but I can't find it now to thank him. Start in safe mode, press shift once you hear the start up chime and hold it down until you hear it again. Installation completion box came up and it was working. turn off computer and start up again normally and all is well. Except my final cut pro x doesn't work with it, have to update that now too. same as when I updated to mavericks.
Hope this helps. -
I get the following error after the installation and configuration window of MS Project: "There is not enough memory to complete the operation. To free up available memory, close programs, projects, or windows you aren't using, and then try again."
It happens both with MS Project 2010 and 2013 on a Windows 7 desktop.
I tried installing / uninstalling Office 2010, MS Project, tried installing 32 and then 64 bit versions, clean up, disk error checker, startup changes (msconfig), anti virus, running as Windows 7 and then Windows XP compatible mode.
Nothing helps. I see this issue reported as early as 2007 version of MS projects on Microsoft forums, but I do not see any solution anywhere. Any suggestions on how to fix the issue without having to reformat hard drive? Every other application, including
all other Office programs work seamlessly.
I also tried Microsoft support, after an hour and a half of basically doing what I did before, I was told I have to pay 99$ for "premium" support, so someone can look at this bug.
I have 16 Gb RAM and more than 200Gb or hard drive free, so actual memory is not the problem.This issue was originally reported with MS Project 2007 and keeps popping up since.
A quick Google search provides more than 200K pages of results of this issue:
https://www.google.ca/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=There+is+not+enough+memory+to+complete+the+operation.+To+free+up+available+memory%2C+close+programs%2C+projects%2C+or+windows+you+aren't+using%2C+and+then+try+again.
And 193K results on Bing:
http://www.bing.com/search?q=There+is+not+enough+memory+to+complete+the+operation.+To+free+up+available+memory%2C+close+programs%2C+projects%2C+or+windows+you+aren%27t+using%2C+and+then+try+again.&go=Submit&qs=n&form=QBLH&pq=there+is+not+enough+memory+to+complete+the+operation.+to+free+up+available+memory%2C+close+programs%2C+projects%2C+or+windows+you+aren%27t+using%2C+and+then+try+again.&sc=0-0&sp=-1&sk=&cvid=4cb023c1fbd94ec2bba9821b095f21f2
Computer was defragged already. I run more tests, and specifically when MS Projects tries to run, it tries to take all memory, more than 300Gb, on the computer. (DropBox was running at the same time, and warned that there were no space. As soon as MS Project
stopped attempting to configure itself, everything came back to normal and the available space became available again.)
Looking through older forum posts, looks like this application tries to take "unlimited" amount of memory. Some registry fixes are mentioned potentially, but I was not able to apply them.
Since everything else works, this is a MS Project bug reported by multiple users on various versions of Windows, including Vista and 7, so please provide a fix and not 'not a know bug' lie. All the premium support will say, is to format the hard drive, unless
they have a patch or a registry edit solution. If the latter is true, since the issue exists for multiple years, it should have been already been provided to users.
Also, I am not running a SQL server, or any server, this is an installation on a local machine. -
My Mac g5 starts and goes to finder. The desktop has disappeared. Also the circle keeps spinning. It will stop for a minute, then start again. It acts like something is running. I have restarted multiple times. Can anyone help please? Thank you.
Spinning Beach Ball
Spinning Beach ball (2) -
How to catch the error occurred in Integration Process, and then save it?
1. how to catch the error occurred in Integration Process, and then save the detailed error message to the file?
2. there are fault message type for inbound message interface, how to use the fault message type in IR?
Thanks,
Michael
Message was edited by: Spring Tang
inital
Message was edited by: Spring Tang
detailed message output
Message was edited by: Spring Tang
fault message typeHi Spring,
If u give an exception step along with your Transformation Step, whenever some error occurs in your message mapping, this exception block wil be triggered.
You can configure your exception block to do all exception processing that you want. This exception handling is like any other java Exceptio n Handler. You can do anything that you want in your exception handler block on the basis of your requirements.
<i>If an exception is triggered at runtime, the system first searches for the relevant exception handler in surrounding blocks. If it does not find the correct exception handler, it continues the search in the next block in the block hierarchy.
When the system finds the correct system handler, it stops all active steps in the block in which the exception handler is defined and then continues processing in the exception handler branch. Once the exception handler has finished processing, the process is continued after the block.
If the system fails to find an exception handler, it terminates the integration process with an error.</i>
Regards,
Bhavesh -
Bluetooth stops working now and then
My bluetooth stops working now and then. Let's say I haven't used bluetooth for a few hours and I want to sync my mobile phone. I try, but it's unable to connect. If I then try to turn off Bluetooth, I'm unable to turn it back on. In Bluetooth preferences, the status will be 'Off' and the 'Turn Bluetooth On' button is greyed out. The only way to get Bluetooth working again, is to restart OS X.
Help!1. Boot from your system CD, run Disk First Aid and repair your permissions.
2. Then try running it with Airport turned off.
3. Reinstall the original RAM and run it that way for awhile.
-Bmer
Mac Owners Support Group
Join Us @ MacOSG.com
ITMS: MacOSG Podcast
An Apple User Group -
Scheduled Task - Stop/Start processes and .exe
I've running some short batch files to stop a process and an .exe at just past midnight.
and then corresponding files to start a process and an .exe at 6am
I've set up Task Scheduler to run the Stops at 00:05 and 00:10
and then the starts at 06:30 and 06:40
However when I run tests, the scheduled tasks giving a status of "running" long after the the "stop" batch files have run.
How can i set them up so they run once, then stop running so there is no danger of conflict when the "start" tasks run in the morning.
I hope this is clear.
Thanks
PeteHi,
Please check the in the task manager (+show tasks from all users) to see if it is indeed still running. You could refer to the thread below to troubleshoot the issue:
TASK SCHEDULER: scheduler status is being “RUNNING” always
http://social.technet.microsoft.com/Forums/en-US/2f6dc29c-3b8b-45f5-a2a7-53e076acc062/task-scheduler-scheduler-status-is-being-running-always
If the issue still exists, the workaround is adding this line at the very end of the batch file:
TASKKILL /F /IM cmd.exe
Regards,
Mandy
We
are trying to better understand customer views on social support experience, so your participation in this
interview project would be greatly appreciated if you have time.
Thanks for helping make community forums a great place. -
'"Connection Failed" : The server "rrnas01" may not exist or it is unavailable at this time. Check the server name or IP address, check your network connection, and then try again' message keeps displaying whenever I try to open any Adobe CS5 applications (except for Adobe Acrobat Pro). It displays until I click "OK" about 15-20 times or so and then will finally let my program open.
I have tried deleting files within my Library/Preferences folder and turning off/deleting login items within my system preferences as other forums suggested but nothing happened. Spending 3.5 hours on the phone with Adobe and completely uninstalling and then reinstalling the entire CS5 Master Collection didn't work either.
Also, it may be helpful to know that my programs worked fine for about three weeks then when we got internet and changed the password (the join, not the adminstrative password) with the wireless network "ScubaSteve" (which I've used with no problems at my old apartment) it started acting up. I have never seen "rrnas01" before so I don't know at all where it came from. I also installed the free 30 day trial of Suitcase Fusion 3 recently, but thinking that could also be the cause I have uninstalled it, and still no help.
Please help me! And please keep in mind I don't know all the computer lingo that a lot of the people in these forums seem to know. Thanks in advance for ny help you can give me.It may not be possible .. there is a major bug between Mountain Lion and the TC where the TC disk goes off the radar of the computer.
Lion is also affected but not as badly.
7.6.4 seems worse than earlier firmware.. so back to 7.6.1 or 7.5.2 if that is possible.
Obviously that is not a solution for a later Gen5 TC.
Reset to factory after the firmware downgrade. .use all network names that are short, no spaces and pure alphanumeric.
If the TC is the main router set the dhcp to a very short lease time.. eg 30min.. and see how it goes, or try a longer lease like 99days.
I prefer the very short lease but response has been mixed.
Use ethernet not wireless.. ethernet is always more reliable and stable than wireless.
And last .. a nightly electric timer that powers off every night at midnight for 1min.. would not be the first device we have suggested a fix that amounts to beat the unit to the punch by forcing it to reboot since it is unstable. -
I've just installed Firefox on my laptop and keep getting the message, "Windows cannot find 'c:\Program Files (x86)\Mozilla Firefox\firefox.exe'. Make sure you typed the name correctly, and then try again." I get this message whenever I either try to open it from the Start menu or from the desktop icon. I've never gotten it to work and even uninstalled it and then redownloaded it and still cannot get it to open. Any help would be greatly appreciated!!!!
Are you installing from the official site? http://www.mozilla.com/firefox
If you use Windows Explorer (My Computer) to check that path, is the Mozilla Firefox folder there? That is the normal installation location, but I think it's worth checking.
If the folder isn't there or firefox.exe is not in it, I wonder whether some other software might be interfering. You might want to run some supplemental security scans. These two tools are highly regarded:
Malwarebytes Anti-malware : http://www.malwarebytes.org/products/malwarebytes_free
SUPERAntiSpyware : http://www.superantispyware.com/ -
I want to delete my icloud-account from my iphone 5 and then register again, because I want to change my email-address/account name. What would be the steps to follow? How do I make sure I do not lose any information stored on/in my iphone 5?
You would have to delete the existing iCloud account and create a wholly new one - you cannot change the @icloud.com email address of the one you already have. To make a new one, you will also need an new AppleID as any AppleID can only have one iCloud account associated with it.
Deleting the account will not delete anything off your device (if prompted for things like contacts, choose to keep them). You will have to sync everything anew with the new account as you cannot move your sync'd content, your old backups or anything else from one iCloud account to another. You will have to set up sync again and let it sync to the new account, and then make new backups to the new account as well.
Maybe you are looking for
-
IPod Touch, Nano & Classics Not Recongized in iTunes or Windows !!
I have 1 iPod Touch, 2 iPod Classic & 1 iPod Nano (brand new one) Since the iTunes V9 update none of them will show up in Windows or iTunes. I have tryed the 5 R's, wiping everything off the computer and reinstalling it, reinstalling iTunes and more!
-
Adobe Standard 9 Freezes when working in PDF File.
System: Dell T3500 Xeon Processor with XP Pro 64-bit. 6Gb Ram. MS Office 2007. Mozilla Firefox and Thunderbird. Quickbooks Pro 2009. Adobe Standard 9. Linksys Network Magic software. Hardwired to Linksys WRT54G2 wireless router. The only program tha
-
X6 not automatically connecting to in-built hands ...
Hi, has anyone else had the problem where the phone won't automatically connect to the inbuilt hands free kit? We have a Kluger KX-S - our previous phone Nokia 6300 had no problems whats so ever - any ideas? thanks
-
How to create mass users and map them to existing hrms users
Hi, Im running oracle ebusiness suite 12i . I want to create mass users , and map them to existing hrms users. The users I want to create exist in an excel spreadsheet with the columns employee id, user name. They will all be granted the same respons
-
Unable to install adobe flash on my Mac
unable to install adobe flash on my MAC