Project

General

Profile

Download (1.07 KB) Statistics
| Branch: | Tag: | Revision:
1
package eu.etaxonomy.cdm.server.jsvc;
2

    
3
import eu.etaxonomy.cdm.server.Bootloader;
4

    
5
public class ServiceWrapper {
6

    
7

    
8
    /**
9
     * Method required by jsvc. jsvc is being used by the linux start up script
10
     * @param args
11
     * @throws Exception
12
     */
13
    public void init(String[] args) throws Exception {
14
        Bootloader.getBootloader().parseCommandOptions(args);
15
    }
16

    
17
   /**
18
    * Method required by jsvc. jsvc is being used by the linux start up script
19
    * @param args
20
    * @throws Exception
21
    */
22
   public void start() throws Exception {
23
       Bootloader.getBootloader().startServer();
24
    }
25

    
26
   /**
27
    * Method required by jsvc. jsvc is being used by the linux start up script
28
    * @param args
29
    * @throws Exception
30
    */
31
   public void stop() throws Exception {
32
       Bootloader.getBootloader().getServer().stop();
33
    }
34

    
35
   /**
36
    * Method required by jsvc. jsvc is being used by the linux start up script
37
    * @param args
38
    * @throws Exception
39
    */
40
   public void destroy() throws Exception {
41
       Bootloader.getBootloader().getServer().destroy();
42
    }
43

    
44

    
45
}
    (1-1/1)