public class HPCCWsWorkUnitsClient extends BaseHPCCWsClient
Modifier and Type | Field and Description |
---|---|
static int |
defaultMaxWaitTime |
static int |
defaultResultLimit |
static int |
defaultWaitTime |
static String |
WSWORKUNITSWSDLURI |
DEAFULTECLWATCHPORT, DEFAULTECLWATCHTLSPORT, fsconn, initErrMessage, stub, targetVersion, verbose
Modifier | Constructor and Description |
---|---|
protected |
HPCCWsWorkUnitsClient(Connection baseConnection)
Instantiates a new HPCC ws work units client.
|
Modifier and Type | Method and Description |
---|---|
void |
abortWU(String wuid)
Request that a given workunit is aborted.
|
QueryResultWrapper |
activateQuery(String queryId,
String cluster)
Activate query.
|
WorkunitWrapper |
compileWUFromECL(WorkunitWrapper wu)
Given an ECL query, this method will create a WU, compile and run it.
|
org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_75.WURunResponse |
createAndRunWUFromECL(WorkunitWrapper wu)
Given an ECL query, this method will create a WU, compile and run it.
|
String |
createAndRunWUFromECLAndGetResults(WorkunitWrapper wu)
Given an ECL query, this method will create a WU, compile and run it, and return results in String object - Not
recommended for large resultsets.
|
String |
createAndRunWUFromECLAndGetWUID(WorkunitWrapper wu)
Given an ECL query, this method will create a WU, compile and run it, and return wuid.
|
WorkunitWrapper |
createWorkunit()
Create a new workunit.
|
WorkunitWrapper |
createWUFromECL(String archiveOrEcl,
int resultLimit,
List<ApplicationValueWrapper> appVals,
String jobName,
boolean compileOnly)
Creates the WU from ECL.
|
WorkunitWrapper |
createWUFromECL(WorkunitWrapper wu)
Requests target HPCC System to create and compile WU based on workunit info provided.
|
List<QueryResultWrapper> |
deleteQueries(Set<String> querynames,
String cluster)
Delete queries.
|
void |
deleteWU(String wuid)
Request that a given workunit is deleted.
|
boolean |
doesWUContainErrors(String wuid)
This method queries information about a given WU and answers if the WU has reported errors.
|
boolean |
doWorkunitAction(String wuid,
org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_75.ECLWUActions action)
Request a given action to be performed upon the given workunit.
|
void |
fastWURefresh(WorkunitWrapper wu)
Performs limited refresh of local WU instance based on that WU's state on target
HPCC cluster if state of WU has not changed, Graphs, Results,ResultsView, ResultSchemas,
SourceFiles, ApplicationValues are not updated.
|
org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_75.WUResultResponse |
fetchRawResults(String wuidorlogicalname,
boolean useWuid,
int sequence,
String cluster,
boolean suppressXMLShema,
long resultOffset,
int resultCount)
Fetches results associated with a given WUID or logical file name.
|
org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_75.WUResultResponse |
fetchRawResults(org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_75.WUResult parameters)
Fetches results associated with a given WUID or logical file name.
|
String |
fetchResults(String wuid,
int sequence,
String cluster,
boolean suppressXMLShema,
long resultOffset,
int resultCount)
Fetches results associated with a given WUID.
|
String |
fetchResultsFromLogicalName(String logicalName,
int sequence,
String cluster,
boolean suppressXMLShema,
long resultOffset,
int resultCount)
Fetches results associated with a given Logical name.
|
protected void |
fullWURefresh(WorkunitWrapper wu)
Performs full refresh of local WU instance based on that WU's state on target
HPCC cluster.
|
void |
fullWURefresh(WorkunitWrapper wu,
boolean includeGraphs,
boolean includeResults,
boolean includeSourceFiles,
boolean includeApplicationValues)
Full WU refresh.
|
static HPCCWsWorkUnitsClient |
get(Connection connection)
Gets the.
|
static HPCCWsWorkUnitsClient |
get(String protocol,
String targetHost,
String targetPort,
String user,
String pass)
Gets the.
|
static HPCCWsWorkUnitsClient |
get(String protocol,
String targetHost,
String targetPort,
String user,
String pass,
int timeout)
Gets the.
|
org.apache.axis2.client.Stub |
getDefaultStub()
Gets the default stub.
|
org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_75.WUQuerySetDetailsResponse |
getQueriesDetail(String querySetName,
String clusterName,
String filter)
Fetch details about the given query.
|
List<QueryFileWrapper> |
getQueryFiles(String queryname,
String cluster)
Gets the query files.
|
org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_75.QuerySet[] |
getQuerySets()
Fetch set of available QuerySets.
|
static String |
getServiceURI()
Gets the service URI.
|
static int |
getServiceWSDLPort()
Gets the service WSDL port.
|
static String |
getServiceWSDLURL()
Gets the service WSDLURL.
|
static WUState |
getStateID(Integer id)
Converts integer representation of WU state, to WUState enumeration.
|
static WUState |
getStateID(WorkunitWrapper wu)
Gets the state ID.
|
WULogFileWrapper |
getWorkunitFile(String wuid,
String filename,
WUFileType filetype,
String description,
String ipaddr,
boolean entirefile)
Get Workunit file.
|
String |
getWorkunitResult(String wuid,
String resultname)
Gets the workunit result.
|
org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_75.WUResultResponse |
getWorkunitResult(org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_75.WUResult wur)
Return a workunit result.
|
org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_75.WUResultResponse |
getWorkunitResult(org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_75.WUResult wur,
boolean unarchive)
Return a workunit result.
|
List<WorkunitWrapper> |
getWorkunits(String jobName,
String owner,
String ecl,
Boolean archived,
String wuid,
String cluster,
WUState state)
Gets the workunits.
|
List<WorkunitWrapper> |
getWorkunits(WUQueryWrapper params)
Gets the workunits.
|
WorkunitWrapper |
getWUInfo(String wuid)
Get information about a given WorkUnit.
|
WorkunitWrapper |
getWUInfo(String wuid,
boolean unarchive)
Get information about a given WorkUnit, caller can request to unarchive
the WU if necessary to fetch WU info.
|
WorkunitWrapper |
getWUInfo(String wuid,
boolean includeResults,
boolean includeGraphs,
boolean includeSourceFiles,
boolean includeApplicationValues,
Boolean includeDebugValues,
Boolean includeExceptions,
Boolean includeVariables,
Boolean includeXmlSchemas,
Boolean includeTimers)
Deprecated.
|
WorkunitWrapper |
getWUInfo(String wuid,
boolean includeResults,
boolean includeGraphs,
boolean includeSourceFiles,
boolean includeApplicationValues,
Boolean includeDebugValues,
Boolean includeExceptions,
Boolean includeVariables,
Boolean includeXmlSchemas,
Boolean includeTimers,
boolean unarchive)
Deprecated.
|
WorkunitWrapper |
getWUInfo(WUInfoRequestWrapper wuinfodetailsparams)
Get information about a given WorkUnit, caller can request to unarchive
the WU if necessary to fetch WU info.
|
void |
initWsWorkUnitsClientStub(Connection conn)
Initializes the service's underlying soap proxy.
|
boolean |
isWorkunitCompiled(String wuid)
Reports if the WU in question is in the compiled state.
|
boolean |
isWorkunitCompiled(WorkunitWrapper thewui)
Reports if the WU in question is in the compiled state.
|
boolean |
isWorkunitComplete(String wuid)
Replies true if given wuid is in complete state.
|
static boolean |
isWorkunitComplete(WorkunitWrapper thewui)
Replies true if given wuid is in complete state.
|
static boolean |
isWorkunitComplete(WUState state)
reports if WuState is in the completed set.
|
static boolean |
isWorkunitComplete(WUState state,
WUActionCode origAction)
reports if a workunit is complete based on wustate, and original action if available.
|
boolean |
isWorkunitFailed(String state)
Reports if the string state represents the failed state.
|
boolean |
isWorkunitFailed(WorkunitWrapper thewui)
Reports if the WU in question is in the failed state.
|
List<QueryResultWrapper> |
listQueries(String queryid,
String queryname,
String clustername,
String querysetname,
Integer pageSize,
Integer pageStartFrom,
Boolean activated,
String filename,
Boolean descending)
Call WUListQueries service
|
static boolean |
looksLikeAWuid(String wuid)
Looks like A wuid.
|
boolean |
ping()
Ping.
|
WorkunitWrapper |
protectWorkunit(String wuid)
Protect a workunit
|
void |
publishWU(String wuid)
Publish WU.
|
org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_75.WUPublishWorkunitResponse |
publishWU(WorkunitWrapper wu)
Attempts to publish a query based on a given Workunit.
|
org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_75.WUPublishWorkunitResponse |
publishWUFromEcl(WorkunitWrapper wu)
Attempts to create, compile and publish a query based on ecl provided via a workunitinfo object.
|
void |
resubmitWU(String wuid,
boolean restart,
boolean clone)
Request that a given workunit is re-submitted.
|
WorkunitWrapper |
runWorkunit(String wuid,
HashMap<String,String> namedvalues,
HashMap<String,String> appvalues,
Integer timeout,
Boolean cloneWorkunit,
String appsource)
Request to run a given workunit.
|
List<QueryResultWrapper> |
searchQueries(QuerySetFilterType filtertype,
String filtervalue,
String querySetName,
String clustername)
Fetch list of querysets.
|
void |
submitWU(String wuid,
String cluster)
Submit WU.
|
void |
submitWU(WorkunitWrapper wu)
Given an ECL query, this method will create a WU, compile and run it.
|
ArrayOfECLExceptionWrapper |
syntaxCheckECL(String ecl,
String cluster,
Integer timeout)
Submit the given ECL code for syntax check upon the given target cluster.
|
boolean |
testWUQuery()
This method queries WU information using a bogus WUID.
|
List<WorkunitWrapper> |
workUnitUQuery(String wuid,
String jobname,
String cluster,
Boolean archived,
WUQueryWrapper.SortBy sortby,
WUState state,
Date endDate,
Date startDate,
Long pageStartFrom,
Long pageSize,
String owner,
List<ApplicationValueWrapper> applicationValues)
As of Platform version 6.0.0.
|
List<WorkunitWrapper> |
workUnitUQuery(WUQueryWrapper info)
Work unit U query.
|
equals, fastRefresh, fullRefresh, getConnectionURL, getInitError, getServiceVersion, getServiceVersion, getServiceWSDLPort, getServiceWSDLURL, getStubConnectionTO, getVerbose, handleECLExceptions, handleECLExceptions, handleEspExceptions, handleEspExceptions, handleEspSoapFaults, handleEspSoapFaults, hashCode, hasInitError, isComplete, setClientAuth, setStubConnectionTO, setStubOptions, setVerbose, verifyStub
monitor
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
public static final String WSWORKUNITSWSDLURI
public static final int defaultWaitTime
public static final int defaultResultLimit
public static final int defaultMaxWaitTime
protected HPCCWsWorkUnitsClient(Connection baseConnection)
baseConnection
- the base connectionpublic static String getServiceURI()
public static String getServiceWSDLURL()
public static int getServiceWSDLPort()
public static HPCCWsWorkUnitsClient get(Connection connection)
connection
- the connectionpublic static HPCCWsWorkUnitsClient get(String protocol, String targetHost, String targetPort, String user, String pass)
protocol
- the protocoltargetHost
- the target hosttargetPort
- the target portuser
- the userpass
- the passpublic static HPCCWsWorkUnitsClient get(String protocol, String targetHost, String targetPort, String user, String pass, int timeout)
protocol
- the protocoltargetHost
- the target hosttargetPort
- the target portuser
- the userpass
- the passtimeout
- the timeoutpublic void initWsWorkUnitsClientStub(Connection conn)
conn
- the connpublic void fastWURefresh(WorkunitWrapper wu) throws Exception, ArrayOfEspExceptionWrapper
wu
- the wuException
- the exceptionArrayOfEspExceptionWrapper
- the array of esp exception wrapperprotected void fullWURefresh(WorkunitWrapper wu) throws Exception
wu
- the wuException
- the exceptionpublic void fullWURefresh(WorkunitWrapper wu, boolean includeGraphs, boolean includeResults, boolean includeSourceFiles, boolean includeApplicationValues) throws Exception
wu
- the wuincludeGraphs
- the include graphsincludeResults
- the include resultsincludeSourceFiles
- the include source filesincludeApplicationValues
- the include application valuesException
- the exceptionpublic boolean isWorkunitCompiled(String wuid) throws Exception, ArrayOfEspExceptionWrapper
wuid
- the wuidException
- the exceptionArrayOfEspExceptionWrapper
- the array of esp exception wrapperpublic boolean isWorkunitCompiled(WorkunitWrapper thewui)
thewui
- the thewuipublic boolean isWorkunitFailed(WorkunitWrapper thewui)
thewui
- the thewuipublic boolean isWorkunitFailed(String state)
state
- the statepublic boolean isWorkunitComplete(String wuid) throws Exception, ArrayOfEspExceptionWrapper
wuid
- the wuidException
- the exceptionArrayOfEspExceptionWrapper
- the array of esp exception wrapperpublic static boolean isWorkunitComplete(WorkunitWrapper thewui)
thewui
- the thewuipublic static boolean isWorkunitComplete(WUState state, WUActionCode origAction)
state
- the stateorigAction
- the orig actionpublic static boolean isWorkunitComplete(WUState state)
state
- the statepublic static WUState getStateID(WorkunitWrapper wu)
wu
- the workunitpublic static WUState getStateID(Integer id)
id
- the idpublic org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_75.WUPublishWorkunitResponse publishWUFromEcl(WorkunitWrapper wu) throws Exception, ArrayOfEspExceptionWrapper
wu
- - Workunitinfo object containing all pertinent information for WU requestException
- the exceptionArrayOfEspExceptionWrapper
- the array of esp exception wrapperpublic org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_75.WUPublishWorkunitResponse publishWU(WorkunitWrapper wu) throws Exception, ArrayOfEspExceptionWrapper
wu
- the wuException
- the exceptionArrayOfEspExceptionWrapper
- the array of esp exception wrapperpublic void publishWU(String wuid) throws Exception
wuid
- the wuidException
- the exceptionpublic WorkunitWrapper getWUInfo(WUInfoRequestWrapper wuinfodetailsparams) throws Exception, ArrayOfEspExceptionWrapper
wuinfodetailsparams
- - workunit info request wrapperException
- - Caller must handle exceptionsArrayOfEspExceptionWrapper
- the array of esp exception wrapperpublic WorkunitWrapper getWUInfo(String wuid) throws Exception, ArrayOfEspExceptionWrapper
wuid
- - ID of target workunitException
- - Caller must handle exceptionsArrayOfEspExceptionWrapper
- the array of esp exception wrapperpublic WorkunitWrapper getWUInfo(String wuid, boolean unarchive) throws Exception, ArrayOfEspExceptionWrapper
wuid
- - ID of target workunitunarchive
- - unarchive archived workunitException
- - Caller must handle exceptionsArrayOfEspExceptionWrapper
- the array of esp exception wrapper@Deprecated public WorkunitWrapper getWUInfo(String wuid, boolean includeResults, boolean includeGraphs, boolean includeSourceFiles, boolean includeApplicationValues, Boolean includeDebugValues, Boolean includeExceptions, Boolean includeVariables, Boolean includeXmlSchemas, Boolean includeTimers) throws Exception, ArrayOfEspExceptionWrapper
wuid
- the wuidincludeResults
- the include resultsincludeGraphs
- the include graphsincludeSourceFiles
- the include source filesincludeApplicationValues
- the include application valuesincludeDebugValues
- the include debug valuesincludeExceptions
- the include exceptionsincludeVariables
- the include variablesincludeXmlSchemas
- the include xml schemasincludeTimers
- the include timersException
- the exceptionArrayOfEspExceptionWrapper
- the array of esp exception wrapper@Deprecated public WorkunitWrapper getWUInfo(String wuid, boolean includeResults, boolean includeGraphs, boolean includeSourceFiles, boolean includeApplicationValues, Boolean includeDebugValues, Boolean includeExceptions, Boolean includeVariables, Boolean includeXmlSchemas, Boolean includeTimers, boolean unarchive) throws Exception, ArrayOfEspExceptionWrapper
wuid
- the wuidincludeResults
- the include resultsincludeGraphs
- the include graphsincludeSourceFiles
- the include source filesincludeApplicationValues
- the include application valuesincludeDebugValues
- the include debug valuesincludeExceptions
- the include exceptionsincludeVariables
- the include variablesincludeXmlSchemas
- the include xml schemasincludeTimers
- the include timersunarchive
- the unarchiveException
- the exceptionArrayOfEspExceptionWrapper
- the array of esp exception wrapperpublic boolean testWUQuery() throws Exception
Exception
- - Caller must handle exceptionspublic List<WorkunitWrapper> workUnitUQuery(String wuid, String jobname, String cluster, Boolean archived, WUQueryWrapper.SortBy sortby, WUState state, Date endDate, Date startDate, Long pageStartFrom, Long pageSize, String owner, List<ApplicationValueWrapper> applicationValues) throws Exception, ArrayOfEspExceptionWrapper
wuid
- the wuidjobname
- the jobnamecluster
- the clusterarchived
- the archivedsortby
- the sortbystate
- the stateendDate
- the end datestartDate
- the start datepageStartFrom
- the page start frompageSize
- the page sizeowner
- the ownerapplicationValues
- the application valuesException
- the exceptionArrayOfEspExceptionWrapper
- the array of esp exception wrapperpublic List<WorkunitWrapper> workUnitUQuery(WUQueryWrapper info) throws Exception, ArrayOfEspExceptionWrapper
info
- the infoException
- the exceptionArrayOfEspExceptionWrapper
- the array of esp exception wrapperpublic boolean doesWUContainErrors(String wuid) throws Exception, ArrayOfEspExceptionWrapper
wuid
- - The ID of the target workunitException
- - Caller must handle exceptionsArrayOfEspExceptionWrapper
- the array of esp exception wrapperpublic WorkunitWrapper createWUFromECL(WorkunitWrapper wu) throws Exception, ArrayOfEspExceptionWrapper
wu
- - The workunit information used to create WU on HPCC clusterException
- the exceptionArrayOfEspExceptionWrapper
- the array of esp exception wrapperpublic WorkunitWrapper createWUFromECL(String archiveOrEcl, int resultLimit, List<ApplicationValueWrapper> appVals, String jobName, boolean compileOnly) throws Exception, ArrayOfEspExceptionWrapper
archiveOrEcl
- the archive or eclresultLimit
- the result limitappVals
- the app valsjobName
- the job namecompileOnly
- the compile onlyException
- the exceptionArrayOfEspExceptionWrapper
- the array of esp exception wrapperpublic List<WorkunitWrapper> getWorkunits(String jobName, String owner, String ecl, Boolean archived, String wuid, String cluster, WUState state) throws Exception, ArrayOfEspExceptionWrapper
jobName
- the pattern to find in the jobname (wildcard * matches multiple jobnames)owner
- - hpcc owner of the jobecl
- - text in the eclarchived
- - if true, search archived workunits. If false or null, search unarchived workunits.wuid
- - wuid to search forcluster
- - cluster to search workunits forstate
- - WUState of workunits to findException
- the exceptionArrayOfEspExceptionWrapper
- the array of esp exception wrapperpublic List<WorkunitWrapper> getWorkunits(WUQueryWrapper params) throws Exception, ArrayOfEspExceptionWrapper
params
- the paramsException
- the exceptionArrayOfEspExceptionWrapper
- the array of esp exception wrapperpublic WorkunitWrapper compileWUFromECL(WorkunitWrapper wu) throws Exception, ArrayOfEspExceptionWrapper, ArrayOfECLExceptionWrapper
wu
- the wuException
- - Caller must handle exceptionsArrayOfEspExceptionWrapper
- the array of esp exception wrapperArrayOfECLExceptionWrapper
- the array of ECL exception wrapperpublic void submitWU(WorkunitWrapper wu) throws Exception, ArrayOfEspExceptionWrapper
wu
- the wuException
- - Caller must handle exceptionsArrayOfEspExceptionWrapper
- the array of esp exception wrapperpublic void submitWU(String wuid, String cluster) throws Exception, ArrayOfEspExceptionWrapper
wuid
- the wuidcluster
- the clusterException
- the exceptionArrayOfEspExceptionWrapper
- the array of esp exception wrapperpublic org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_75.WURunResponse createAndRunWUFromECL(WorkunitWrapper wu) throws Exception, ArrayOfEspExceptionWrapper, ArrayOfECLExceptionWrapper
wu
- the wuException
- - Caller must handle exceptionsArrayOfEspExceptionWrapper
- the array of esp exception wrapperArrayOfECLExceptionWrapper
- the array of ECL exception wrapperpublic String createAndRunWUFromECLAndGetResults(WorkunitWrapper wu) throws Exception, ArrayOfEspExceptionWrapper, ArrayOfECLExceptionWrapper
wu
- the wuException
- - Caller must handle exceptionsArrayOfEspExceptionWrapper
- the array of esp exception wrapperArrayOfECLExceptionWrapper
- the array of ECL exception wrapperpublic String createAndRunWUFromECLAndGetWUID(WorkunitWrapper wu) throws Exception, ArrayOfEspExceptionWrapper, ArrayOfECLExceptionWrapper
wu
- the wuException
- - Caller must handle exceptionsArrayOfEspExceptionWrapper
- the array of esp exception wrapperArrayOfECLExceptionWrapper
- the array of ECL exception wrapperpublic String fetchResultsFromLogicalName(String logicalName, int sequence, String cluster, boolean suppressXMLShema, long resultOffset, int resultCount) throws Exception, ArrayOfEspExceptionWrapper
logicalName
- the logical namesequence
- - Zero based index result sequence (Each result set may contain multiple results)cluster
- - The target clustersuppressXMLShema
- - Results are accompanied by a schema, do you want to suppress it?resultOffset
- - Request results starting at record offsetresultCount
- - Total result record countException
- the exceptionArrayOfEspExceptionWrapper
- the array of esp exception wrapperpublic String fetchResults(String wuid, int sequence, String cluster, boolean suppressXMLShema, long resultOffset, int resultCount) throws Exception, ArrayOfEspExceptionWrapper
wuid
- - The target WUID to fetch results fromsequence
- - Zero based index result sequence (Each result set may contain multiple results)cluster
- - The target clustersuppressXMLShema
- - Results are accompanied by a schema, do you want to suppress it?resultOffset
- - Request results starting at record offsetresultCount
- - Total result record count reException
- the exceptionArrayOfEspExceptionWrapper
- the array of esp exception wrapperpublic org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_75.WUResultResponse fetchRawResults(String wuidorlogicalname, boolean useWuid, int sequence, String cluster, boolean suppressXMLShema, long resultOffset, int resultCount) throws Exception
wuidorlogicalname
- the wuidorlogicalnameuseWuid
- the use wuidsequence
- the sequencecluster
- the clustersuppressXMLShema
- the suppress XML shemaresultOffset
- the result offsetresultCount
- the result countException
- the exceptionpublic static boolean looksLikeAWuid(String wuid)
wuid
- does this string follow the known WU formatpublic org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_75.WUResultResponse fetchRawResults(org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_75.WUResult parameters) throws Exception
parameters
- the parametersException
- the exceptionpublic ArrayOfECLExceptionWrapper syntaxCheckECL(String ecl, String cluster, Integer timeout) throws Exception
ecl
- - The ECL to syntax checkcluster
- - The HPCC target cluster on which to syntax checktimeout
- - Maximum time for this checkException
- the exceptionpublic org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_75.WUQuerySetDetailsResponse getQueriesDetail(String querySetName, String clusterName, String filter) throws Exception
querySetName
- the query set nameclusterName
- the cluster namefilter
- the filterException
- the exceptionpublic void abortWU(String wuid) throws Exception
wuid
- the wuidException
- the exceptionpublic void deleteWU(String wuid) throws Exception, ArrayOfEspExceptionWrapper
wuid
- the wuidException
- the exceptionArrayOfEspExceptionWrapper
- the array of esp exception wrapperpublic void resubmitWU(String wuid, boolean restart, boolean clone) throws Exception
wuid
- the wuidrestart
- the restartclone
- the cloneException
- the exceptionpublic org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_75.QuerySet[] getQuerySets() throws Exception
Exception
- the exceptionpublic org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_75.WUResultResponse getWorkunitResult(org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_75.WUResult wur) throws Exception, ArrayOfEspExceptionWrapper
wur
- the wurException
- the exceptionArrayOfEspExceptionWrapper
- the array of esp exception wrapperpublic String getWorkunitResult(String wuid, String resultname) throws Exception, ArrayOfEspExceptionWrapper
wuid
- - wuid to return result forresultname
- - resultname to return result forException
- the exceptionArrayOfEspExceptionWrapper
- the array of esp exception wrapperpublic org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_75.WUResultResponse getWorkunitResult(org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_75.WUResult wur, boolean unarchive) throws Exception, ArrayOfEspExceptionWrapper
wur
- the wurunarchive
- the unarchiveException
- the exceptionArrayOfEspExceptionWrapper
- the array of esp exception wrapperpublic boolean doWorkunitAction(String wuid, org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_75.ECLWUActions action) throws RemoteException, Exception, ArrayOfEspExceptionWrapper
wuid
- - The target workunitaction
- - The action to be requested see ECLWUActionsRemoteException
- the remote exceptionException
- the exceptionArrayOfEspExceptionWrapper
- the array of esp exception wrapperpublic WorkunitWrapper createWorkunit() throws Exception
Exception
- the exceptionpublic WorkunitWrapper protectWorkunit(String wuid) throws Exception
wuid
- - wuid to protectException
- the exceptionpublic WULogFileWrapper getWorkunitFile(String wuid, String filename, WUFileType filetype, String description, String ipaddr, boolean entirefile) throws Exception
wuid
- the wuidfilename
- the filenamefiletype
- the filetypedescription
- the descriptionipaddr
- the ipaddrentirefile
- the entirefileException
- the exceptionpublic WorkunitWrapper runWorkunit(String wuid, HashMap<String,String> namedvalues, HashMap<String,String> appvalues, Integer timeout, Boolean cloneWorkunit, String appsource) throws Exception
wuid
- - wuid to call WURun fornamedvalues
- - override stored variables with this set of stored variablesappvalues
- - override application values with this set of app valuestimeout
- - if provided, timeout before returningcloneWorkunit
- - if true, clone workunit before rerunningappsource
- - application source for app valuesException
- the exceptionpublic List<QueryResultWrapper> searchQueries(QuerySetFilterType filtertype, String filtervalue, String querySetName, String clustername) throws Exception
filtertype
- the filtertypefiltervalue
- the filtervaluequerySetName
- the query set nameclustername
- the clusternameException
- the exceptionpublic List<QueryResultWrapper> listQueries(String queryid, String queryname, String clustername, String querysetname, Integer pageSize, Integer pageStartFrom, Boolean activated, String filename, Boolean descending) throws Exception
queryid
- - unique ID of the queryqueryname
- - name/alias of the queryclustername
- - name of the cluster the query is onquerysetname
- - name of the queryset the cluster is part ofpageSize
- - number of results to return (if null, 100 results are returned)pageStartFrom
- - which result to start returning on (if null, results start with 1)activated
- - whether to return activated queriesfilename
- - return queries using this filenamedescending
- the descendingException
- the exceptionpublic List<QueryFileWrapper> getQueryFiles(String queryname, String cluster) throws Exception
queryname
- - query to retrieve files forcluster
- - the cluster to search for said queryException
- the exceptionpublic QueryResultWrapper activateQuery(String queryId, String cluster) throws Exception
queryId
- - unique id of query to activatecluster
- - cluster to activate uponException
- the exceptionpublic List<QueryResultWrapper> deleteQueries(Set<String> querynames, String cluster) throws Exception
querynames
- - queries to deletecluster
- - cluster to delete fromException
- the exceptionpublic boolean ping() throws Exception
Exception
- the exceptionpublic org.apache.axis2.client.Stub getDefaultStub() throws org.apache.axis2.AxisFault
BaseHPCCWsClient
getDefaultStub
in class BaseHPCCWsClient
org.apache.axis2.AxisFault
- the axis faultCopyright © 2021. All rights reserved.