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
|
package eu.etaxonomy.cdm.server.jsvc;
|
10
|
|
11
|
import eu.etaxonomy.cdm.server.Bootloader;
|
12
|
|
13
|
public class ServiceWrapper {
|
14
|
|
15
|
/**
|
16
|
* Method required by jsvc. jsvc is being used by the linux start up script
|
17
|
* @param args
|
18
|
* @throws Exception
|
19
|
*/
|
20
|
public void init(String[] args) throws Exception {
|
21
|
Bootloader.getBootloader().parseCommandOptions(args);
|
22
|
}
|
23
|
|
24
|
/**
|
25
|
* Method required by jsvc. jsvc is being used by the linux start up script
|
26
|
* @param args
|
27
|
* @throws Exception
|
28
|
*/
|
29
|
public void start() throws Exception {
|
30
|
Bootloader.getBootloader().startServer();
|
31
|
}
|
32
|
|
33
|
/**
|
34
|
* Method required by jsvc. jsvc is being used by the linux start up script
|
35
|
* @param args
|
36
|
* @throws Exception
|
37
|
*/
|
38
|
public void stop() throws Exception {
|
39
|
Bootloader.getBootloader().getServer().stop();
|
40
|
}
|
41
|
|
42
|
/**
|
43
|
* Method required by jsvc. jsvc is being used by the linux start up script
|
44
|
* @param args
|
45
|
* @throws Exception
|
46
|
*/
|
47
|
public void destroy() throws Exception {
|
48
|
Bootloader.getBootloader().getServer().destroy();
|
49
|
}
|
50
|
}
|