Subversion Repositories XServices

Rev

Rev 46 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 46 Rev 58
1
package net.brutex.xservices.ws;
1
package net.brutex.xservices.ws;
2
 
2
 
3
import javax.jws.WebMethod;
3
import javax.jws.WebMethod;
4
import javax.jws.WebParam;
4
import javax.jws.WebParam;
5
import javax.jws.WebService;
5
import javax.jws.WebService;
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;
9
import net.brutex.xservices.util.BrutexNamespaces;
9
import net.brutex.xservices.util.BrutexNamespaces;
10
 
10
 
11
@WebService(targetNamespace = BrutexNamespaces.WS_XSERVICES)
11
@WebService(targetNamespace = BrutexNamespaces.WS_XSERVICES)
12
public interface ExecuteService {
12
public interface ExecuteService {
13
 
13
 
14
	@WebMethod(operationName = "runCommand")
14
	@WebMethod(operationName = "runCommand")
15
	public abstract ReturnCode runCommand(
15
	public abstract ReturnCode runCommand(
16
			@WebParam(name = "executable") String cmd,
16
			@WebParam(name = "executable") String cmd,
17
			@WebParam(name = "argline") String args,
17
			@WebParam(name = "argline") String args,
18
			@WebParam(name = "timeout") long timeout);
18
			@WebParam(name = "timeout") long timeout);
19
 
19
 
20
	@WebMethod(operationName = "runCommandWithArgs")
20
	@WebMethod(operationName = "runCommandWithArgs")
21
	public abstract ReturnCode runCommandWithArgs(
21
	public abstract ReturnCode runCommandWithArgs(
22
			@WebParam(name = "executable") String cmd,
22
			@WebParam(name = "executable") String cmd,
23
			@WebParam(name = "arg") String[] args,
23
			@WebParam(name = "arg") String[] args,
24
			@WebParam(name = "timeout") long timeout);
24
			@WebParam(name = "timeout") long timeout);
25
 
25
 
26
	@WebMethod(operationName = "runCommandAsync")
26
	@WebMethod(operationName = "runCommandAsync")
27
	public abstract ReturnCode runCommandAsync(
27
	public abstract ReturnCode runCommandAsync(
28
			@WebParam(name = "executable") String cmd,
28
			@WebParam(name = "executable") String cmd,
29
			@WebParam(name = "argline") String args);
29
			@WebParam(name = "argline") String args);
30
 
30
 
31
	@WebMethod(operationName = "runCommandAsyncWithArgs")
31
	@WebMethod(operationName = "runCommandAsyncWithArgs")
32
	public abstract ReturnCode runCommandAsyncWithArgs(
32
	public abstract ReturnCode runCommandAsyncWithArgs(
33
			@WebParam(name = "executable") String cmd,
33
			@WebParam(name = "executable") String cmd,
34
			@WebParam(name = "arg") String[] args);
34
			@WebParam(name = "arg") String[] args);
35
 
35
 
36
	@WebMethod(operationName = "runCommandWithSSH")
36
	@WebMethod(operationName = "runCommandWithSSH")
37
	public abstract ReturnCode runCommandWithSSH(
37
	public abstract ReturnCode runCommandWithSSH(
38
			@WebParam(name = "host") String host,
38
			@WebParam(name = "host") HostConnection host,
39
			@WebParam(name = "port") int port,
-
 
40
			@WebParam(name = "username") String username,
-
 
41
			@WebParam(name = "password") String password,
-
 
42
			@WebParam(name = "command") String cmd,
39
			@WebParam(name = "command") String cmd,
43
			@WebParam(name = "timeout") long timeout);
40
			@WebParam(name = "timeout") long timeout);
44
 
41
 
45
	@WebMethod(operationName = "runCommandWithSSHKeyAuth")
42
	@WebMethod(operationName = "runCommandWithSSHKeyAuth")
46
	public abstract ReturnCode runCommandWithSSHKeyAuth(
43
	public abstract ReturnCode runCommandWithSSHKeyAuth(
47
			@WebParam(name = "host") String host,
44
			@WebParam(name = "host") HostConnection host,
48
			@WebParam(name = "port") int port,
-
 
49
			@WebParam(name = "username") String username,
-
 
50
			@WebParam(name = "passphrase") String passphrase,
-
 
51
			@WebParam(name = "keyfile") String keyfile,
45
			@WebParam(name = "keyfile") String keyfile,
52
			@WebParam(name = "command") String cmd,
46
			@WebParam(name = "command") String cmd,
53
			@WebParam(name = "timeout") long timeout);
47
			@WebParam(name = "timeout") long timeout);
54
 
48
 
55
	@WebMethod(operationName = "rExec")
49
	@WebMethod(operationName = "rExec")
56
	public abstract ReturnCode rExec(
50
	public abstract ReturnCode rExec(
57
			@WebParam(name = "host") HostConnection host,
51
			@WebParam(name = "host") HostConnection host,
58
			@WebParam(name = "command") String cmd,
52
			@WebParam(name = "command") String cmd,
59
			@WebParam(name = "timeout") long timeout);
53
			@WebParam(name = "timeout") long timeout);
60
 
54
 
61
	@WebMethod(operationName = "telnet")
55
	@WebMethod(operationName = "telnet")
62
	public abstract ReturnCode runTelnet(
56
	public abstract ReturnCode runTelnet(
63
			@WebParam(name = "host") HostConnection host,
57
			@WebParam(name = "host") HostConnection host,
64
			@WebParam(name = "prompt") String prompt,
58
			@WebParam(name = "prompt") String prompt,
65
			@WebParam(name = "command") String cmd,
59
			@WebParam(name = "command") String cmd,
66
			@WebParam(name = "expect") String expect,
60
			@WebParam(name = "expect") String expect,
67
			@WebParam(name = "timeout") long timeout);
61
			@WebParam(name = "timeout") long timeout);
68
 
62
 
69
}
63
}
70
 
64
 
71
Generated by GNU Enscript 1.6.5.90.
65
Generated by GNU Enscript 1.6.5.90.
72
 
66
 
73
 
67