Project

General

Profile

Download (1.33 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
2
 * Copyright (C) 2009 EDIT
3
 * European Distributed Institute of Taxonomy
4
 * http://www.e-taxonomy.eu
5
 *
6
 * The contents of this file are subject to the Mozilla Public License Version 1.1
7
 * See LICENSE.TXT at the top of this package for the full license terms.
8
 */
9

    
10
package eu.etaxonomy.cdm.server.jsvc;
11

    
12
import eu.etaxonomy.cdm.server.Bootloader;
13

    
14
public class ServiceWrapper {
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 init(String[] args) throws Exception {
23
        Bootloader.getBootloader().parseCommandOptions(args);
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 start() throws Exception {
32
       Bootloader.getBootloader().startServer();
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 stop() throws Exception {
41
       Bootloader.getBootloader().getServer().stop();
42
    }
43

    
44
   /**
45
    * Method required by jsvc. jsvc is being used by the linux start up script
46
    * @param args
47
    * @throws Exception
48
    */
49
   public void destroy() throws Exception {
50
       Bootloader.getBootloader().getServer().destroy();
51
    }
52

    
53

    
54
}
    (1-1/1)