I am creating a Swing UI that will upload files from a directory. We are scheduling this task using Quartz. Now my problem is, on press of Stop button, the scheduler should stop and the file upload process should also stop. And I want a file either transfered fully or not at all. How do I do that?I am creating a Swing UI that will upload files