Subversion Repositories XServices

Rev

Details | Last modification | View Log | RSS feed

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