Subversion Repositories XServices

Rev

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

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