Subversion Repositories XServices

Rev

Rev 87 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
16 brianR 1
/*
111 brianR 2
 *   Copyright 2013 Brian Rosenberger (Brutex Network)
16 brianR 3
 *
4
 *   Licensed under the Apache License, Version 2.0 (the "License");
5
 *   you may not use this file except in compliance with the License.
6
 *   You may obtain a copy of the License at
7
 *
8
 *       http://www.apache.org/licenses/LICENSE-2.0
9
 *
10
 *   Unless required by applicable law or agreed to in writing, software
11
 *   distributed under the License is distributed on an "AS IS" BASIS,
12
 *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
 *   See the License for the specific language governing permissions and
14
 *   limitations under the License.
15
 */
16
package net.brutex.xservices.ws;
17
 
18
import javax.jws.WebMethod;
19
import javax.jws.WebParam;
20
import javax.jws.WebService;
18 brianR 21
import net.brutex.xservices.types.HostConnection;
78 brianR 22
import net.brutex.xservices.types.HostinfoType;
22 brianR 23
import net.brutex.xservices.types.MailMimeType;
16 brianR 24
import net.brutex.xservices.types.ReturnCode;
87 brianR 25
import net.brutex.xservices.types.RuntimeInfoType;
83 brianR 26
import net.brutex.xservices.types.ant.FileSetResource;
78 brianR 27
 
28
import org.apache.cxf.aegis.type.java5.XmlElement;
83 brianR 29
import org.apache.cxf.aegis.type.java5.XmlReturnType;
23 brianR 30
import org.apache.cxf.annotations.WSDLDocumentation;
16 brianR 31
 
32
/**
85 brianR 33
 * Bundles various methods
16 brianR 34
 *
35
 * @author Brian Rosenberger, bru@brutex.de
70 brianR 36
 * @since 0.4.0
16 brianR 37
 */
111 brianR 38
@WebService(targetNamespace = net.brutex.xservices.util.BrutexNamespaces.WS_XSERVICES)
72 brianR 39
@WSDLDocumentation("Various service operations.")
16 brianR 40
public interface MiscService {
41
 
111 brianR 42
	 public static final String OPERATION_GETMEMORY = "getMemory";
18 brianR 43
 
111 brianR 44
	  @WebMethod(operationName="getHostinfo")
45
	  @WSDLDocumentation("Get information about a host.")
46
	  public abstract HostinfoType getHostinfo(@WebParam(name="hostname") @XmlElement(minOccurs="1", nillable=false) String paramString);
47
 
48
	  @WebMethod(operationName="sleep")
49
	  @WSDLDocumentation("Delay request response a specified duration.")
50
	  public abstract ReturnCode sleep(@WebParam(name="minutes") int paramInt1, @WebParam(name="seconds") int paramInt2);
51
 
52
	  @WebMethod(operationName="getInfo")
53
	  @WSDLDocumentation("Get XService information.")
54
	  public abstract ReturnCode getInfo();
55
 
56
	  @WebMethod(operationName="generateUUID")
57
	  @WSDLDocumentation("Generate a UUID.")
58
	  public abstract String generateUUID();
59
 
60
	  @WebMethod(operationName="getMemory")
61
	  @WSDLDocumentation("Get memory and processor information")
62
	  public abstract RuntimeInfoType getMemory();
16 brianR 63
}