/src/mpv5/webshopinterface/WSDaemonJob.java

http://mp-rechnungs-und-kundenverwaltung.googlecode.com/ · Java · 45 lines · 6 code · 7 blank · 32 comment · 0 complexity · 24cd56abd222574d1e02a42a1d90cedd MD5 · raw file

  1. /*
  2. * This file is part of YaBS.
  3. *
  4. * YaBS is free software: you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation, either version 3 of the License, or
  7. * (at your option) any later version.
  8. *
  9. * YaBS is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with YaBS. If not, see <http://www.gnu.org/licenses/>.
  16. */
  17. package mpv5.webshopinterface;
  18. /**
  19. * This interface describes a WS Daemon Job
  20. */
  21. public interface WSDaemonJob {
  22. /**
  23. * Returns true if the job shall be run only once
  24. * @return
  25. */
  26. public boolean isOneTimeJob();
  27. /**
  28. * Returns true if the job is done
  29. * @return
  30. */
  31. public boolean isDone();
  32. /**
  33. * Do the actual work
  34. * @param client The client to use
  35. */
  36. public void work(WSConnectionClient client);
  37. }
  38. //~ Formatted by Jindent --- http://www.jindent.com