public interface FlowResource
Modifier and Type | Method and Description |
---|---|
default void |
cleanup(org.apache.hadoop.mapreduce.JobContext context)
Finalizes this resource.
|
default void |
setup(org.apache.hadoop.mapreduce.JobContext context)
Initializes this resource.
|
default void setup(org.apache.hadoop.mapreduce.JobContext context) throws IOException, InterruptedException
context
- the current job contextIOException
- if failed to initialize this resourceInterruptedException
- if interrupted while initializing this resourceIllegalArgumentException
- if configuration is not validIllegalStateException
- if resource lifecycle has something wrongdefault void cleanup(org.apache.hadoop.mapreduce.JobContext context) throws IOException, InterruptedException
context
- the current job contextIOException
- if failed to finalizing this resourceInterruptedException
- if interrupted while finalizing this resourceIllegalArgumentException
- if configuration is not validIllegalStateException
- if resource lifecycle has something wrongCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.