| java.lang.Object org.griphyn.cPlanner.visualize.nodeusage.NodeUsageCallback
NodeUsageCallback | public class NodeUsageCallback implements Callback(Code) | | Implements callback interface to calculate node usage or number of jobs
over time.
author: Karan Vahi version: $Revision: 50 $ |
GRIDSTART_MAINJOB_STATE | final public static String GRIDSTART_MAINJOB_STATE(Code) | | The state in the jobstate that is taken to designate the GRIDSTART_MAINJOB
time.
|
GRIDSTART_POSTJOB_STATE | final public static String GRIDSTART_POSTJOB_STATE(Code) | | The state in the jobstate that is taken to designate the GRIDSTART_POSTJOB
time.
|
GRIDSTART_PREJOB_STATE | final public static String GRIDSTART_PREJOB_STATE(Code) | | The state in the jobstate that is taken to designate the GRIDSTART_PREJOB
time.
|
JOBSTATE_LOG | final public static String JOBSTATE_LOG(Code) | | The name of the tailstatd file.
|
mJobMeasurements | protected JobMeasurements mJobMeasurements(Code) | | Stores all the space readings for the current invocation record.
|
mMainJob | protected String mMainJob(Code) | | The main job whose record is being parsed.
|
mSite | protected String mSite(Code) | | The logical site where the job was run.
|
mWFMeasurements | protected WorkflowMeasurements mWFMeasurements(Code) | | The WorkflowMeasurements object created during the callback construction.
|
NodeUsageCallback | public NodeUsageCallback()(Code) | | The default constructor.
|
cbInputFile | public void cbInputFile(String filename, StatInfo info)(Code) | | Callback function for when stat information for an input file is
encountered. Empty for time being.
Parameters: filename - the name of the file. Parameters: info - the StatInfo about the file. |
cbInvocationEnd | public void cbInvocationEnd()(Code) | | Callback signalling that an invocation record has been parsed.
Stores the total compute size, somewhere in the space structure
for the jobs.
|
cbOutputFile | public void cbOutputFile(String filename, StatInfo info)(Code) | | Callback function for when stat information for an output file is
encountered. The size of the file is computed and stored.
Parameters: filename - the name of the file. Parameters: info - the StatInfo about the file. |
cleanupJob | public boolean cleanupJob(String name)(Code) | | Returns boolean indicating whether the job is a cleanup job or not.
Does it on the basis of the name of the job.
Parameters: name - the name of the job. boolean |
done | public void done()(Code) | | Callback signalling that we are done with the parsing of the files.
|
getConstructedObject | public Object getConstructedObject()(Code) | | Returns the SpaceUsage store built.
SpaceUsage |
initialize | public void initialize(String directory, boolean useStatInfo)(Code) | | Initializes the callback.
Parameters: directory - the directory where all the files reside. Parameters: useStatInfo - boolean indicating whether to use stat info or not. |
validState | protected boolean validState(String state)(Code) | | Returns a boolean indicating whether the state is valid or not.
Parameters: state - the state boolean |
|
|