Subversion Repositories XServices

Rev

Rev 199 | 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;
199 brianR 21
import javax.jws.soap.SOAPBinding;
22
 
18 brianR 23
import net.brutex.xservices.types.HostConnection;
78 brianR 24
import net.brutex.xservices.types.HostinfoType;
22 brianR 25
import net.brutex.xservices.types.MailMimeType;
16 brianR 26
import net.brutex.xservices.types.ReturnCode;
87 brianR 27
import net.brutex.xservices.types.RuntimeInfoType;
199 brianR 28
import net.brutex.xservices.types.alfevent.ALFEventResponseType;
29
import net.brutex.xservices.types.alfevent.ALFEventType;
83 brianR 30
import net.brutex.xservices.types.ant.FileSetResource;
78 brianR 31
 
32
import org.apache.cxf.aegis.type.java5.XmlElement;
83 brianR 33
import org.apache.cxf.aegis.type.java5.XmlReturnType;
23 brianR 34
import org.apache.cxf.annotations.WSDLDocumentation;
199 brianR 35
import org.h2.jdbcx.JdbcConnectionPool;
16 brianR 36
 
199 brianR 37
import java.math.BigInteger;
38
 
16 brianR 39
/**
85 brianR 40
 * Bundles various methods
16 brianR 41
 *
42
 * @author Brian Rosenberger, bru@brutex.de
70 brianR 43
 * @since 0.4.0
16 brianR 44
 */
111 brianR 45
@WebService(targetNamespace = net.brutex.xservices.util.BrutexNamespaces.WS_XSERVICES)
199 brianR 46
//@SOAPBinding(style = SOAPBinding.Style.RPC)
72 brianR 47
@WSDLDocumentation("Various service operations.")
16 brianR 48
public interface MiscService {
49
 
111 brianR 50
	 public static final String OPERATION_GETMEMORY = "getMemory";
18 brianR 51
 
199 brianR 52
	@WebMethod(operationName="getHostinfo")
111 brianR 53
	  @WSDLDocumentation("Get information about a host.")
54
	  public abstract HostinfoType getHostinfo(@WebParam(name="hostname") @XmlElement(minOccurs="1", nillable=false) String paramString);
55
 
56
	  @WebMethod(operationName="sleep")
57
	  @WSDLDocumentation("Delay request response a specified duration.")
58
	  public abstract ReturnCode sleep(@WebParam(name="minutes") int paramInt1, @WebParam(name="seconds") int paramInt2);
59
 
60
	  @WebMethod(operationName="getInfo")
61
	  @WSDLDocumentation("Get XService information.")
62
	  public abstract ReturnCode getInfo();
63
 
64
	  @WebMethod(operationName="generateUUID")
65
	  @WSDLDocumentation("Generate a UUID.")
66
	  public abstract String generateUUID();
67
 
68
	  @WebMethod(operationName="getMemory")
69
	  @WSDLDocumentation("Get memory and processor information")
70
	  public abstract RuntimeInfoType getMemory();
199 brianR 71
 
72
	  @WebMethod(operationName="lock")
73
	  @WSDLDocumentation("Get a lock.")
74
	  public abstract BigInteger lock(@WebParam(name="id") @XmlElement(nillable = false) String id,
75
									  @WebParam(name="objectId") @XmlElement(nillable = false) String objectId) throws XServicesFault;
76
 
203 brianR 77
	 @WebMethod(operationName="", action = "EventNotice")
78
	 @SOAPBinding(use = SOAPBinding.Use.LITERAL, style = SOAPBinding.Style.DOCUMENT, parameterStyle = SOAPBinding.ParameterStyle.BARE)
79
	 public abstract ALFEventResponseType mergeALFEvent(@WebParam(name="ALFEventNoticeDoc", targetNamespace = "http://www.eclipse.org/alf/schema/EventBase/1") ALFEventType event) throws XServicesFault;
16 brianR 80
}