Subversion Repositories XServices

Rev

Rev 46 | Go to most recent revision | Details | Compare with Previous | 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(
58 brianR 38
			@WebParam(name = "host") HostConnection host,
46 brianR 39
			@WebParam(name = "command") String cmd,
40
			@WebParam(name = "timeout") long timeout);
41
 
42
	@WebMethod(operationName = "runCommandWithSSHKeyAuth")
43
	public abstract ReturnCode runCommandWithSSHKeyAuth(
58 brianR 44
			@WebParam(name = "host") HostConnection host,
46 brianR 45
			@WebParam(name = "keyfile") String keyfile,
46
			@WebParam(name = "command") String cmd,
47
			@WebParam(name = "timeout") long timeout);
48
 
49
	@WebMethod(operationName = "rExec")
50
	public abstract ReturnCode rExec(
51
			@WebParam(name = "host") HostConnection host,
52
			@WebParam(name = "command") String cmd,
53
			@WebParam(name = "timeout") long timeout);
54
 
55
	@WebMethod(operationName = "telnet")
56
	public abstract ReturnCode runTelnet(
57
			@WebParam(name = "host") HostConnection host,
58
			@WebParam(name = "prompt") String prompt,
59
			@WebParam(name = "command") String cmd,
60
			@WebParam(name = "expect") String expect,
61
			@WebParam(name = "timeout") long timeout);
62
 
63
}