|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.isi.pegasus.planner.visualize.spaceusage.SpaceUsageCallback
edu.isi.pegasus.planner.visualize.spaceusage.TailStatd
public class TailStatd
The callback parses the jobstate.log file to order the events of how the jobs executed.
| Field Summary | |
|---|---|
static String |
GRIDSTART_MAINJOB_STATE
The state in the jobstate that is taken to designate the GRIDSTART_MAINJOB time. |
static String |
GRIDSTART_POSTJOB_STATE
The state in the jobstate that is taken to designate the GRIDSTART_POSTJOB time. |
static String |
GRIDSTART_PREJOB_STATE
The state in the jobstate that is taken to designate the GRIDSTART_PREJOB time. |
static String |
JOBSTATE_LOG
The name of the tailstatd file. |
private String |
mDirectory
The directory where all the files reside. |
private Map |
mJobSpaceStore
A Map store that stores JobSpace objects indexed by the name of the jobs. |
private LogManager |
mLogger
The handle to the logging object |
| Fields inherited from class edu.isi.pegasus.planner.visualize.spaceusage.SpaceUsageCallback |
|---|
MAINJOB_MARKER, mJobInSize, mJobOutSize, mJobSpace, mMainJob, mSite, mSpaceStore, mUseStatInfo, POSTJOB_MARKER, PREJOB_MARKER |
| Fields inherited from interface edu.isi.pegasus.planner.visualize.Callback |
|---|
VERSION |
| Constructor Summary | |
|---|---|
TailStatd()
The default constructor. |
|
| Method Summary | |
|---|---|
void |
cbInvocationStart(String job,
String resource)
Callback for the starting of an invocation record. |
private int |
getEventType(String state)
Returns the event type matching a particular job type |
void |
initialize(String directory,
boolean useStatInfo)
Initializes the callback. |
protected Space |
parseContent(String header,
String content)
Parses the content and stores it in a SpaceUsage object. |
protected boolean |
validState(String state)
Returns a boolean indicating whether the state is valid or not. |
| Methods inherited from class edu.isi.pegasus.planner.visualize.spaceusage.SpaceUsageCallback |
|---|
cbInputFile, cbInvocationEnd, cbMachine, cbMetadata, cbOutputFile, cbStdERR, cbStdIN, cbStdOut, cleanupJob, done, getConstructedObject, getEventTypeForHeader, validHeader |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String JOBSTATE_LOG
public static final String GRIDSTART_PREJOB_STATE
public static final String GRIDSTART_MAINJOB_STATE
public static final String GRIDSTART_POSTJOB_STATE
private String mDirectory
private Map mJobSpaceStore
private LogManager mLogger
| Constructor Detail |
|---|
public TailStatd()
| Method Detail |
|---|
public void initialize(String directory,
boolean useStatInfo)
initialize in interface Callbackinitialize in class SpaceUsageCallbackdirectory - the directory where all the files reside.useStatInfo - boolean indicating whether to use stat info or not.
public void cbInvocationStart(String job,
String resource)
cbInvocationStart in interface CallbackcbInvocationStart in class SpaceUsageCallbackjob - the job/file being parsed.resource - the site id where the job was executed.
protected Space parseContent(String header,
String content)
parseContent in class SpaceUsageCallbackheader - the header from which the content was collected.content - the Content.
protected boolean validState(String state)
state - the state
private int getEventType(String state)
state - the state of the job
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||