PageRenderTime 216ms CodeModel.GetById 100ms app.highlight 6ms RepoModel.GetById 105ms app.codeStats 1ms

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