CICS525 / DBLikeProject

DBLikeProject
0 stars 1 forks source link

StopIgnoreFile and StartIgnoreFile #1

Closed achengscode closed 10 years ago

achengscode commented 10 years ago

Could you please clarify what those two methods are supposed to do?

I'm not 100% sure what it is they do.

Thanks.

Elitward commented 10 years ago

FileSysMonitor is going to invoke callback when a file in sync folder is updated and ready for upload. But if the file is updated by our Client application itself. This upload should not trigger a upload.

So when the FileSysPerformer updates a file according to Master Server's command. This file do not need to be uploads. In this case, FileSysPerformer will invoke startIgnoreFile(filename) before write the file, and then invoke stopIgnoreFile(filename).

achengscode commented 10 years ago

Okay, thanks for that.

I had another question, is the startIgnore and stopIgnore something that is permanent (that is, the filename is stored to a file) or is it temporary (that is, if marked for ignore, then shutdown client, it is now not ignored)

Elitward commented 10 years ago

Please make it temporary. Use a ArrayList to keep it in memory will be fine. FileSysMonitor starts right after the Client Application runs, until it quits. Keep ignore list in RAM is enough.

achengscode commented 10 years ago

Thank you very much Eli!