public interface JobClient
Modifier and Type | Method and Description |
---|---|
JobStatus |
getStatus(JobId id)
Obtains and returns the job information.
|
JobId |
register(JobScript script)
Creates a new job.
|
void |
submit(JobId id)
Request to execute the registered job.
|
JobId register(JobScript script) throws IOException, InterruptedException
script
- the job scriptIOException
- if failed to create a new jobInterruptedException
- if interruptedIllegalArgumentException
- if some parameters were null
void submit(JobId id) throws IOException, InterruptedException
id
- the target job IDIOException
- if failed to request the jobInterruptedException
- if interruptedIllegalArgumentException
- if some parameters were null
JobStatus getStatus(JobId id) throws IOException, InterruptedException
id
- the target job IDIOException
- if failed to obtain the informationInterruptedException
- if interruptedIllegalArgumentException
- if some parameters were null
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.