public interface Callback
Modifier and Type | Field and Description |
---|---|
static String |
VERSION
The version of the API.
|
Modifier and Type | Method and Description |
---|---|
void |
cbInputFile(String filename,
StatInfo info)
Callback function for when stat information for an input file is
encountered
|
void |
cbInvocationEnd()
Callback signalling that an invocation record has been parsed.
|
void |
cbInvocationStart(String job,
String resource)
Callback for the starting of an invocation record.
|
void |
cbMachine(Machine machine)
Callback to pass the machine information on which the job is executed.
|
void |
cbMetadata(Map metadata)
Callback for the metadata retrieved from the kickstart record.
|
void |
cbOutputFile(String filename,
StatInfo info)
Callback function for when stat information for an output file is
encountered
|
void |
cbStdERR(List jobs,
String data)
Callback function for the data section of stderr.
|
void |
cbStdIN(List jobs,
String data)
Callback function for the data section of stdin.
|
void |
cbStdOut(List jobs,
String data)
Callback function for the data section of stdout.
|
void |
done()
Callback signalling that we are done with the parsing of the files.
|
Object |
getConstructedObject()
Returns the object constructed.
|
void |
initialize(String directory,
boolean useStatInfo)
Initializes the callback.
|
static final String VERSION
void initialize(String directory, boolean useStatInfo)
directory
- the directory where all the files reside.useStatInfo
- boolean indicating whether to use stat info or not.void cbInvocationStart(String job, String resource)
job
- the job/file being parsed.resource
- the site id where the job was executed.void cbStdIN(List jobs, String data)
jobs
- all the jobs specified in the kickstart record.data
- the data contents as String.void cbStdOut(List jobs, String data)
jobs
- all the jobs specified in the kickstart record.data
- the data contents as String.void cbStdERR(List jobs, String data)
jobs
- all the jobs specified in the kickstart record.data
- the data contents as String.void cbInputFile(String filename, StatInfo info)
filename
- the name of the file.info
- the StatInfo
about the file.void cbOutputFile(String filename, StatInfo info)
filename
- the name of the file.info
- the StatInfo
about the file.void cbInvocationEnd()
void done()
Object getConstructedObject()
Object
constructed.void cbMetadata(Map metadata)
metadata
- void cbMachine(Machine machine)
machine
- Copyright © 2011 The University of Southern California. All Rights Reserved.