Class SampleContext
-
- All Implemented Interfaces:
public class SampleContext
Defines the context in which SampleConsumer, SampleProducer will operate
- Since:
3.0
-
-
Constructor Summary
Constructors Constructor Description SampleContext()
-
Method Summary
Modifier and Type Method Description final File
getWorkingDirectory()
Return the root directory that consumers are authorized to use for intermediate work. final void
setWorkingDirectory(File workingDirectory)
Sets the work directory. final Map<String, Object>
getData()
Gets the data storage. -
-
Method Detail
-
getWorkingDirectory
final File getWorkingDirectory()
Return the root directory that consumers are authorized to use for intermediate work. SampleConsumers are encourage to create their own work directories beneath this root work directory
- Returns:
A file pointing to an existing directory
-
setWorkingDirectory
final void setWorkingDirectory(File workingDirectory)
Sets the work directory.
- Parameters:
workingDirectory
- the new working directory
-
-
-
-