public class HostServiceAsyncClient extends HostServiceClient implements HostServiceAsync
credentialsProvider, exceptionUnmarshallers, executorService, signerclient, configuration, endpoint, requestHandlers, timeOffset| Constructor and Description |
|---|
HostServiceAsyncClient()
Constructs a new client to invoke service method on HostService using
the default qTest credentials provider and default client configuration options.
|
HostServiceAsyncClient(ClientConfiguration clientConfiguration)
Constructs a new client to invoke service method on HostService using
the default qTest credentials provider and client configuration options.
|
HostServiceAsyncClient(ClientConfiguration clientConfiguration,
java.util.concurrent.ExecutorService executorService)
Constructs a new client to invoke service method on HostService using
the default qTest credentials provider and client configuration options.
|
HostServiceAsyncClient(java.util.concurrent.ExecutorService executorService)
Constructs a new client to invoke service method on HostService using
the default qTest credentials provider and default client configuration options.
|
HostServiceAsyncClient(QTestCredentials credentials)
Constructs a new client to invoke service method on HostService using
the specified qTest credentials.
|
HostServiceAsyncClient(QTestCredentials credentials,
ClientConfiguration clientConfiguration)
Constructs a new client to invoke service method on HostService using
the specified qTest credentials and client configuration options.
|
HostServiceAsyncClient(QTestCredentials credentials,
ClientConfiguration clientConfiguration,
java.util.concurrent.ExecutorService executorService)
Constructs a new client to invoke service method on HostService using
the specified qTest credentials and client configuration options.
|
HostServiceAsyncClient(QTestCredentials credentials,
java.util.concurrent.ExecutorService executorService)
Constructs a new client to invoke service method on HostService using
the specified qTest credentials.
|
HostServiceAsyncClient(QTestCredentialsProvider credentialsProvider,
ClientConfiguration clientConfiguration)
Constructs a new client to invoke service method on HostService using
the specified qTest credentials provider and client configuration options.
|
HostServiceAsyncClient(QTestCredentialsProvider credentialsProvider,
ClientConfiguration clientConfiguration,
java.util.concurrent.ExecutorService executorService)
Constructs a new client to invoke service method on HostService using
the specified qTest credentials provider and client configuration options.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.concurrent.Future<java.lang.Void> |
activateAutomationAgentAsync(ActivateAutomationAgentRequest activateAgentRequest)
Activate or deactivate the automation agent to qTest service.
|
java.util.concurrent.Future<java.lang.Void> |
activateAutomationAgentAsync(ActivateAutomationAgentRequest activateAgentRequest,
AsyncHandler<ActivateAutomationAgentRequest,java.lang.Void> asyncHandler)
Activate or Deactivate the automation agent to qTest service.
|
java.util.concurrent.Future<java.lang.Void> |
deleteAutomationAgentAsync(DeleteAutomationAgentRequest deleteAutomationAgentRequest)
delete automation agent
|
java.util.concurrent.Future<java.lang.Void> |
deleteAutomationAgentAsync(DeleteAutomationAgentRequest deleteAutomationAgentRequest,
AsyncHandler<DeleteAutomationAgentRequest,java.lang.Void> asyncHandler)
delete automation host
|
java.util.concurrent.Future<java.util.List<Job>> |
listJobsAsync(ListJobRequest request)
Get all runnable jobs from qTest server in a period
|
java.util.concurrent.Future<java.util.List<Job>> |
listJobsAsync(ListJobRequest request,
AsyncHandler<ListJobRequest,java.util.List<Job>> asyncHandler)
Get all jobs to execute.
|
java.util.concurrent.Future<PongMessage> |
pingHostAsync(PingAutomationHostRequest pingHostRequest)
Send ping host to server.
|
java.util.concurrent.Future<PongMessage> |
pingHostAsync(PingAutomationHostRequest pingHostRequest,
AsyncHandler<PingAutomationHostRequest,PongMessage> asyncHandler)
Send ping host to server.
|
java.util.concurrent.Future<AutomationAgent> |
registerAutomationAgentAsync(CreateAutomationAgentRequest automationAgentRequest)
Register the automation agent to qTest service.
|
java.util.concurrent.Future<AutomationAgent> |
registerAutomationAgentAsync(CreateAutomationAgentRequest automationAgentRequest,
AsyncHandler<CreateAutomationAgentRequest,AutomationAgent> asyncHandler)
Register the automation agent to qTest service.
|
java.util.concurrent.Future<AutomationHost> |
registerAutomationHostAsync(CreateAutomationHostRequest automationHostRequest)
Register the automation host to qTest service.
|
java.util.concurrent.Future<AutomationHost> |
registerAutomationHostAsync(CreateAutomationHostRequest automationHostRequest,
AsyncHandler<CreateAutomationHostRequest,AutomationHost> asyncHandler)
Register the automation host to qTest service.
|
void |
shutdown()
Shutdown this client object, release any resources that might be held
open.
|
java.util.concurrent.Future<AutomationAgent> |
updateAutomationAgentAsync(UpdateAutomationAgentRequest automationAgentRequest)
Update the automation agent to qTest service.
|
java.util.concurrent.Future<AutomationAgent> |
updateAutomationAgentAsync(UpdateAutomationAgentRequest automationAgentRequest,
AsyncHandler<UpdateAutomationAgentRequest,AutomationAgent> asyncHandler)
Update the automation agent to qTest service.
|
java.util.concurrent.Future<java.lang.Void> |
updateJobStatusAsync(UpdateJobStatusRequest updateJobStatusRequest)
Update job instance status
|
java.util.concurrent.Future<java.lang.Void> |
updateJobStatusAsync(UpdateJobStatusRequest updateJobStatusRequest,
AsyncHandler<UpdateJobStatusRequest,java.lang.Void> asyncHandler)
Update job instance status
|
activateAutomationAgent, deleteAutomationAgent, listJobs, pingHost, registerAutomationAgent, registerAutomationHost, updateAutomationAgent, updateAutomationHost, updateJobStatusinit, invoke, withEndpointaddRequestHandler, createExecutionContext, createHttpAuthClient, getTimeOffset, removeRequestHandler, setConfiguration, setEndpoint, setTimeOffset, withConfiguration, withRequestHandler, withTimeOffsetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitactivateAutomationAgent, deleteAutomationAgent, listJobs, pingHost, registerAutomationAgent, registerAutomationHost, updateAutomationAgent, updateAutomationHost, updateJobStatussetEndpointpublic HostServiceAsyncClient()
public HostServiceAsyncClient(java.util.concurrent.ExecutorService executorService)
executorService - the executor service for executing asynchronous request.public HostServiceAsyncClient(ClientConfiguration clientConfiguration)
clientConfiguration - The client configuration options controlling how this
client connects to HostServicepublic HostServiceAsyncClient(ClientConfiguration clientConfiguration, java.util.concurrent.ExecutorService executorService)
clientConfiguration - The client configuration options controlling how this
client connects to HostService.executorService - the executor service for executing asynchronous request.public HostServiceAsyncClient(QTestCredentials credentials)
credentials - The qTest credentials which will provide
credentials to authenticate request with qTest services.public HostServiceAsyncClient(QTestCredentials credentials, java.util.concurrent.ExecutorService executorService)
credentials - The qTest credentials which will provide
credentials to authenticate request with qTest services.executorService - the executor service for executing asynchronous request.public HostServiceAsyncClient(QTestCredentials credentials, ClientConfiguration clientConfiguration)
credentials - The qTest credentials which will provide
credentials to authenticate request with qTest services.clientConfiguration - The client configuration options controlling how this
client connects to HostServicepublic HostServiceAsyncClient(QTestCredentials credentials, ClientConfiguration clientConfiguration, java.util.concurrent.ExecutorService executorService)
credentials - The qTest credentials which will provide
credentials to authenticate request with qTest services.clientConfiguration - The client configuration options controlling how this
client connects to HostServiceexecutorService - the executor service for executing asynchronous request.public HostServiceAsyncClient(QTestCredentialsProvider credentialsProvider, ClientConfiguration clientConfiguration)
credentialsProvider - The qTest credentials provider which will provide
credentials to authenticate request with qTest services.clientConfiguration - The client configuration options controlling how this
client connects to HostServicepublic HostServiceAsyncClient(QTestCredentialsProvider credentialsProvider, ClientConfiguration clientConfiguration, java.util.concurrent.ExecutorService executorService)
credentialsProvider - The qTest credentials provider which will provide
credentials to authenticate request with qTest services.clientConfiguration - The client configuration options controlling how this
client connects to HostServiceexecutorService - the executor service for executing asynchronous request.public java.util.concurrent.Future<AutomationAgent> registerAutomationAgentAsync(CreateAutomationAgentRequest automationAgentRequest) throws AuthClientException
HostServiceAsyncregisterAutomationAgentAsync in interface HostServiceAsyncautomationAgentRequest - the given register agent request to send to qTest.AuthClientException - if an error occurs during registering automation agent.public java.util.concurrent.Future<AutomationAgent> registerAutomationAgentAsync(CreateAutomationAgentRequest automationAgentRequest, AsyncHandler<CreateAutomationAgentRequest,AutomationAgent> asyncHandler) throws AuthClientException
HostServiceAsyncregisterAutomationAgentAsync in interface HostServiceAsyncautomationAgentRequest - the given register agent request to send to qTest.asyncHandler - callback handler for events in the life-cycle of the request.
Users could provide the implementation of the for callback
methods in this interface to process the operation result or
handle the exception.AuthClientException - if an error occurs during registering automation agent.public java.util.concurrent.Future<AutomationHost> registerAutomationHostAsync(CreateAutomationHostRequest automationHostRequest) throws AuthClientException
HostServiceAsyncregisterAutomationHostAsync in interface HostServiceAsyncautomationHostRequest - the given register automation host request.AuthClientException - if an error occurs during registering automation host.public java.util.concurrent.Future<AutomationHost> registerAutomationHostAsync(CreateAutomationHostRequest automationHostRequest, AsyncHandler<CreateAutomationHostRequest,AutomationHost> asyncHandler) throws AuthClientException
HostServiceAsyncregisterAutomationHostAsync in interface HostServiceAsyncautomationHostRequest - the given register automation host request.asyncHandler - callback handler for events in the life-cycle of the request.
Users could provide the implementation of the for callback
methods in this interface to process the operation result or
handle the exception.AuthClientException - if an error occurs during registering automation host.public java.util.concurrent.Future<java.util.List<Job>> listJobsAsync(ListJobRequest request) throws AuthClientException
HostServiceAsynclistJobsAsync in interface HostServiceAsyncrequest - the given get list jobs request to sent to server.AuthClientException - if an error occurs during list job.public java.util.concurrent.Future<java.util.List<Job>> listJobsAsync(ListJobRequest request, AsyncHandler<ListJobRequest,java.util.List<Job>> asyncHandler) throws AuthClientException
HostServiceAsynclistJobsAsync in interface HostServiceAsyncrequest - the given list job request to send to qTest.asyncHandler - callback handler for events in the life-cycle of the request.
Users could provide the implementation of the for callback
methods in this interface to process the operation result or
handle the exception.AuthClientException - if an error occurs during requesting.public java.util.concurrent.Future<PongMessage> pingHostAsync(PingAutomationHostRequest pingHostRequest) throws AuthClientException
HostServiceAsyncpingHostAsync in interface HostServiceAsyncpingHostRequest - the given ping host request to send to server.AuthClientException - if an error occurs during send ping request to server.public java.util.concurrent.Future<PongMessage> pingHostAsync(PingAutomationHostRequest pingHostRequest, AsyncHandler<PingAutomationHostRequest,PongMessage> asyncHandler) throws AuthClientException
HostServiceAsyncpingHostAsync in interface HostServiceAsyncpingHostRequest - the given ping host request to send to server.asyncHandler - callback handler for events in the life-cycle of the request.
Users could provide the implementation of the for callback
methods in this interface to process the operation result or
handle the exception.AuthClientException - if an error occurs during send ping request to server.public java.util.concurrent.Future<AutomationAgent> updateAutomationAgentAsync(UpdateAutomationAgentRequest automationAgentRequest) throws AuthClientException
HostServiceAsyncupdateAutomationAgentAsync in interface HostServiceAsyncautomationAgentRequest - the given update agent request to send to qTest.AuthClientException - if an error occurs during updating automation agent.public java.util.concurrent.Future<AutomationAgent> updateAutomationAgentAsync(UpdateAutomationAgentRequest automationAgentRequest, AsyncHandler<UpdateAutomationAgentRequest,AutomationAgent> asyncHandler) throws AuthClientException
HostServiceAsyncupdateAutomationAgentAsync in interface HostServiceAsyncautomationAgentRequest - the given update agent request to send to qTest.asyncHandler - callback handler for events in the life-cycle of the request.
Users could provide the implementation of the for callback
methods in this interface to process the operation result or
handle the exception.AuthClientException - if an error occurs during updating automation agent.public java.util.concurrent.Future<java.lang.Void> activateAutomationAgentAsync(ActivateAutomationAgentRequest activateAgentRequest) throws AuthClientException
HostServiceAsyncactivateAutomationAgentAsync in interface HostServiceAsyncactivateAgentRequest - the given activate agent request to send to qTest.AuthClientException - if an error occurs during activating automation agent.public java.util.concurrent.Future<java.lang.Void> activateAutomationAgentAsync(ActivateAutomationAgentRequest activateAgentRequest, AsyncHandler<ActivateAutomationAgentRequest,java.lang.Void> asyncHandler) throws AuthClientException
HostServiceAsyncactivateAutomationAgentAsync in interface HostServiceAsyncactivateAgentRequest - the given activate agent request to send to qTest.asyncHandler - callback handler for events in the life-cycle of the request.
Users could provide the implementation of the for callback
methods in this interface to process the operation result or
handle the exception.AuthClientException - if an error occurs during activating automation agent.public java.util.concurrent.Future<java.lang.Void> updateJobStatusAsync(UpdateJobStatusRequest updateJobStatusRequest) throws AuthServiceException
HostServiceAsyncupdateJobStatusAsync in interface HostServiceAsyncupdateJobStatusRequest - the given update job request.AuthServiceException - if an error occurs during updating job status.public java.util.concurrent.Future<java.lang.Void> updateJobStatusAsync(UpdateJobStatusRequest updateJobStatusRequest, AsyncHandler<UpdateJobStatusRequest,java.lang.Void> asyncHandler) throws AuthServiceException
HostServiceAsyncupdateJobStatusAsync in interface HostServiceAsyncupdateJobStatusRequest - the given update job request.asyncHandler - callback handler for events in the life-cycle of the request.
Users could provide the implementation of the for callback
methods in this interface to process the operation result or
handle the exception.AuthServiceException - if an error occurs during updating job status.public java.util.concurrent.Future<java.lang.Void> deleteAutomationAgentAsync(DeleteAutomationAgentRequest deleteAutomationAgentRequest) throws AuthServiceException
HostServiceAsyncdeleteAutomationAgentAsync in interface HostServiceAsyncdeleteAutomationAgentRequest - deleteAutomationAgentRequestAuthServiceExceptionpublic java.util.concurrent.Future<java.lang.Void> deleteAutomationAgentAsync(DeleteAutomationAgentRequest deleteAutomationAgentRequest, AsyncHandler<DeleteAutomationAgentRequest,java.lang.Void> asyncHandler) throws AuthServiceException
HostServiceAsyncdeleteAutomationAgentAsync in interface HostServiceAsyncdeleteAutomationAgentRequest - deleteAutomationAgentRequestasyncHandler - callback handler for events in the life-cycle of the request.
Users could provide the implementation of the for callback
methods in this interface to process the operation result or
handle the exception.AuthServiceExceptionpublic void shutdown()
ApiWebServiceClientshutdown in interface QTestServiceshutdown in class QTestApiWebServiceClient<HostServiceClient>