test
Class TestImpl

java.lang.Object
  extended by test.TestImpl

@Copyright
public class TestImpl
extends java.lang.Object

Test service implementation. Note that it is not necessary for the implementation to implement the interface. In fact, this is not possible in this case because of various differences between the interface and the implementation. For example, deploy throws an exception, but the interface does not.


Field Summary
static java.lang.String defaultServiceLocation
          The default deployment URL.
 
Constructor Summary
TestImpl()
           
 
Method Summary
 java.lang.String deploy(boolean setFail, Deploy deploy)
          The fail method.
 double deploy(int instanceCount, Logo logo)
          The deploy method.
 void signal(double weight)
          The signal method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

defaultServiceLocation

public static final java.lang.String defaultServiceLocation
The default deployment URL.

See Also:
Constant Field Values
Constructor Detail

TestImpl

public TestImpl()
Method Detail

deploy

@RequestWrapper(localName="deploy",
                targetNamespace="http://test",
                className="test.Deploy")
@ResponseWrapper(localName="deployResponse",
                 targetNamespace="http://test",
                 className="test.DeployResponse")
public double deploy(int instanceCount,
                                                    Logo logo)
              throws java.lang.Exception
The deploy method.

Parameters:
instanceCount - The number of instances to deploy.
logo - A text-based logo.
Returns:
A floating-point number.
Throws:
java.lang.Exception - if the deployment fails.

deploy

@RequestWrapper(localName="fail",
                targetNamespace="http://test",
                className="test.Fail")
@ResponseWrapper(localName="failResponse",
                 targetNamespace="http://test",
                 className="test.FailResponse")
public java.lang.String deploy(boolean setFail,
                                                              Deploy deploy)
The fail method. Note that the name of the method differs from the name of the operation. The generated interface will use the operation name.

Parameters:
setFail - The failure mode to be set.
deploy - The deployment data.
Returns:
An informational message.

signal

@RequestWrapper(localName="signal",
                targetNamespace="http://test",
                className="test.Signal")
public void signal(double weight)
The signal method. There is no response class because the method is one-way and so does not return anything. The response wrapper annotation that would have been used if the method was not one-way is therefore commented out.

Parameters:
weight - The weight.