Subversion Repositories XServices

Rev

Rev 58 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 58 Rev 65
Line 6... Line 6...
6
 
6
 
7
import net.brutex.xservices.types.HostConnection;
7
import net.brutex.xservices.types.HostConnection;
8
import net.brutex.xservices.types.ReturnCode;
8
import net.brutex.xservices.types.ReturnCode;
Line -... Line 9...
-
 
9
import net.brutex.xservices.util.BrutexNamespaces;
-
 
10
 
-
 
11
/**
-
 
12
 * @author brosenberger
9
import net.brutex.xservices.util.BrutexNamespaces;
13
 *
10
 
14
 */
Line -... Line 15...
-
 
15
@WebService(targetNamespace = BrutexNamespaces.WS_XSERVICES)
-
 
16
public interface ExecuteService {
-
 
17
 
-
 
18
	/**
-
 
19
	 * @param cmd
-
 
20
	 * @param args
11
@WebService(targetNamespace = BrutexNamespaces.WS_XSERVICES)
21
	 * @param timeout
12
public interface ExecuteService {
22
	 * @return
13
 
23
	 */
14
	@WebMethod(operationName = "runCommand")
24
	@WebMethod(operationName = "runCommand")
15
	public abstract ReturnCode runCommand(
25
	public abstract ReturnCode runCommand(
Line -... Line 26...
-
 
26
			@WebParam(name = "executable") String cmd,
-
 
27
			@WebParam(name = "argline") String args,
-
 
28
			@WebParam(name = "timeout") long timeout);
-
 
29
 
-
 
30
	/**
-
 
31
	 * @param cmd
16
			@WebParam(name = "executable") String cmd,
32
	 * @param args
17
			@WebParam(name = "argline") String args,
33
	 * @param timeout
18
			@WebParam(name = "timeout") long timeout);
34
	 * @return
19
 
35
	 */
20
	@WebMethod(operationName = "runCommandWithArgs")
36
	@WebMethod(operationName = "runCommandWithArgs")
Line -... Line 37...
-
 
37
	public abstract ReturnCode runCommandWithArgs(
-
 
38
			@WebParam(name = "executable") String cmd,
-
 
39
			@WebParam(name = "arg") String[] args,
-
 
40
			@WebParam(name = "timeout") long timeout);
-
 
41
 
21
	public abstract ReturnCode runCommandWithArgs(
42
	/**
22
			@WebParam(name = "executable") String cmd,
43
	 * @param cmd
23
			@WebParam(name = "arg") String[] args,
44
	 * @param args
24
			@WebParam(name = "timeout") long timeout);
45
	 * @return
Line -... Line 46...
-
 
46
	 */
-
 
47
	@WebMethod(operationName = "runCommandAsync")
-
 
48
	public abstract ReturnCode runCommandAsync(
-
 
49
			@WebParam(name = "executable") String cmd,
-
 
50
			@WebParam(name = "argline") String args);
25
 
51
 
26
	@WebMethod(operationName = "runCommandAsync")
52
	/**
27
	public abstract ReturnCode runCommandAsync(
53
	 * @param cmd
28
			@WebParam(name = "executable") String cmd,
54
	 * @param args
Line -... Line 55...
-
 
55
	 * @return
-
 
56
	 */
-
 
57
	@WebMethod(operationName = "runCommandAsyncWithArgs")
-
 
58
	public abstract ReturnCode runCommandAsyncWithArgs(
-
 
59
			@WebParam(name = "executable") String cmd,
-
 
60
			@WebParam(name = "arg") String[] args);
29
			@WebParam(name = "argline") String args);
61
 
30
 
62
	/**
31
	@WebMethod(operationName = "runCommandAsyncWithArgs")
63
	 * @param host
32
	public abstract ReturnCode runCommandAsyncWithArgs(
64
	 * @param cmd
33
			@WebParam(name = "executable") String cmd,
65
	 * @param timeout
Line -... Line 66...
-
 
66
	 * @return
-
 
67
	 */
-
 
68
	@WebMethod(operationName = "runCommandWithSSH")
-
 
69
	public abstract ReturnCode runCommandWithSSH(
-
 
70
			@WebParam(name = "host") HostConnection host,
-
 
71
			@WebParam(name = "command") String cmd,
-
 
72
			@WebParam(name = "timeout") long timeout);
34
			@WebParam(name = "arg") String[] args);
73
 
35
 
74
	/**
36
	@WebMethod(operationName = "runCommandWithSSH")
75
	 * @param host
37
	public abstract ReturnCode runCommandWithSSH(
76
	 * @param keyfile
38
			@WebParam(name = "host") HostConnection host,
77
	 * @param cmd
39
			@WebParam(name = "command") String cmd,
78
	 * @param timeout
Line -... Line 79...
-
 
79
	 * @return
-
 
80
	 */
-
 
81
	@WebMethod(operationName = "runCommandWithSSHKeyAuth")
-
 
82
	public abstract ReturnCode runCommandWithSSHKeyAuth(
-
 
83
			@WebParam(name = "host") HostConnection host,
-
 
84
			@WebParam(name = "keyfile") String keyfile,
40
			@WebParam(name = "timeout") long timeout);
85
			@WebParam(name = "command") String cmd,
41
 
86
			@WebParam(name = "timeout") long timeout);
42
	@WebMethod(operationName = "runCommandWithSSHKeyAuth")
87
 
43
	public abstract ReturnCode runCommandWithSSHKeyAuth(
88
	/**
44
			@WebParam(name = "host") HostConnection host,
89
	 * @param host
Line -... Line 90...
-
 
90
	 * @param cmd
-
 
91
	 * @param timeout
-
 
92
	 * @return
-
 
93
	 */
-
 
94
	@WebMethod(operationName = "rExec")
-
 
95
	public abstract ReturnCode rExec(
-
 
96
			@WebParam(name = "host") HostConnection host,
-
 
97
			@WebParam(name = "command") String cmd,
45
			@WebParam(name = "keyfile") String keyfile,
98
			@WebParam(name = "timeout") long timeout);
46
			@WebParam(name = "command") String cmd,
99
 
47
			@WebParam(name = "timeout") long timeout);
100
	/**
48
 
101
	 * @param host
49
	@WebMethod(operationName = "rExec")
102
	 * @param prompt