org.hpccsystems.ws.client.wrappers.wsworkunits.WsWorkunitsClientStub1_69 Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wsclient Show documentation
Show all versions of wsclient Show documentation
This project allows a user to interact with ESP services in a controlled manner. The API calls available under org.hpccsystems.ws.client.platform allow for a user to target ESP's across multiple environments running a range of hpccsystems-platform versions. There is no guarantee that if a user utilizes org.hpccsystems.ws.client.gen generated stub code from wsdl, that the calls will be backwards compatible with older hpccsystems-platform versions.
package org.hpccsystems.ws.client.wrappers.wsworkunits;
import org.apache.axis2.AxisFault;
import org.hpccsystems.ws.client.BaseHPCCWsClient;
import org.hpccsystems.ws.client.HPCCWsWorkUnitsClient;
import org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_69.WUInfoResponse;
import org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_69.WsWorkunitsStub;
import org.hpccsystems.ws.client.utils.Connection;
@Deprecated
public class WsWorkunitsClientStub1_69 implements IWsWorkunitsClientStubWrapper
{
private Connection connection;
/**
* Instantiates a new ws workunits client stub 1 69.
*
* @param connection
* the connection
*/
public WsWorkunitsClientStub1_69(final Connection connection)
{
this.connection = connection;
}
/**
* Gets the stub.
*
* @return the stub
* @throws AxisFault
* the axis fault
*/
public WsWorkunitsStub getStub() throws AxisFault
{
WsWorkunitsStub stub = new WsWorkunitsStub(connection.getBaseUrl() + HPCCWsWorkUnitsClient.WSWORKUNITSWSDLURI);
stub = (WsWorkunitsStub) BaseHPCCWsClient.setStubOptions(stub, connection);
return stub;
}
/*
* (non-Javadoc)
*
* @see org.hpccsystems.ws.client.wrappers.wsworkunits.IWsWorkunitsClientStubWrapper#WUInfo(org.hpccsystems.ws.client.wrappers.wsworkunits.
* WUInfoRequestWrapper)
*/
@Override
public WUInfoResponseWrapper WUInfo(final WUInfoRequestWrapper params) throws Exception
{
final WsWorkunitsStub stub = getStub();
final WUInfoResponse response = stub.wUInfo(params.getRawVersion1_69());
return new WUInfoResponseWrapper(response);
}
/*
* (non-Javadoc)
*
* @see
* org.hpccsystems.ws.client.wrappers.wsworkunits.IWsWorkunitsClientStubWrapper#WUCreateAndUpdate(org.hpccsystems.ws.client.wrappers.wsworkunits.
* WUCreateAndUpdateWrapper)
*/
@Override
public WUUpdateResponseWrapper WUCreateAndUpdate(final WUCreateAndUpdateWrapper params) throws Exception
{
final WsWorkunitsStub stub = getStub();
return new WUUpdateResponseWrapper(stub.wUCreateAndUpdate(params.getRawVersion1_69()));
}
/*
* (non-Javadoc)
*
* @see org.hpccsystems.ws.client.wrappers.wsworkunits.IWsWorkunitsClientStubWrapper#WUCreate(org.hpccsystems.ws.client.wrappers.wsworkunits.
* WUCreateRequestWrapper)
*/
@Override
public WUCreateResponseWrapper WUCreate(final WUCreateRequestWrapper params) throws Exception
{
final WsWorkunitsStub stub = getStub();
return new WUCreateResponseWrapper(stub.wUCreate(params.getRawVersion1_69()));
}
/*
* (non-Javadoc)
*
* @see org.hpccsystems.ws.client.wrappers.wsworkunits.IWsWorkunitsClientStubWrapper#WUUpdate(org.hpccsystems.ws.client.wrappers.wsworkunits.
* WUUpdateRequestWrapper)
*/
@Override
public WUUpdateResponseWrapper WUUpdate(final WUUpdateRequestWrapper params) throws Exception
{
final WsWorkunitsStub stub = getStub();
return new WUUpdateResponseWrapper(stub.wUUpdate(params.getRawVersion1_69()));
}
}