long-runner
Toggle table of contents
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
long-runner
tasks-client
/
org.artofdev.tasks.client.rest
/
TasksRestClient
Tasks
Rest
Client
class
TasksRestClient
(
val
url
:
String
=
"http://localhost:8080"
,
val
headersFactory
:
HttpHeadersFactory
?
=
null
)
Members
Constructors
Tasks
Rest
Client
Link copied to clipboard
constructor
(
url
:
String
=
"http://localhost:8080"
,
headersFactory
:
HttpHeadersFactory
?
=
null
)
Properties
headers
Factory
Link copied to clipboard
val
headersFactory
:
HttpHeadersFactory
?
url
Link copied to clipboard
val
url
:
String
Functions
create
Task
Link copied to clipboard
fun
createTask
(
request
:
TaskRequest
)
:
Task
end
Task
Link copied to clipboard
fun
endTask
(
taskId
:
Long
,
request
:
EndTaskRequest
)
:
Task
get
Input
Link copied to clipboard
fun
getInput
(
taskId
:
Long
)
:
TaskData
?
get
Progress
Link copied to clipboard
fun
getProgress
(
taskId
:
Long
)
:
TaskProgress
?
get
Result
Link copied to clipboard
fun
getResult
(
taskId
:
Long
)
:
TaskResult
get
Task
Link copied to clipboard
fun
getTask
(
taskId
:
Long
)
:
Task
get
Task
By
Hid
Link copied to clipboard
fun
getTaskByHid
(
hid
:
String
)
:
Task
start
Task
Link copied to clipboard
fun
startTask
(
taskId
:
Long
)
:
Task
take
Task
For
Execution
Link copied to clipboard
fun
takeTaskForExecution
(
execTypeHid
:
String
,
executorHid
:
String
)
:
TaskExecDataResponse