public class DeadlockTracker extends Object implements ActivityListeners.ActivityListener
DeadlockTracker class.
Constructor and Description |
---|
DeadlockTracker() |
Modifier and Type | Method and Description |
---|---|
<T> void |
onActivityDependenciesReady(HabaneroActivity activity,
List<HjFuture<T>> dependencies)
Callback for the event when all the activities dependencies are ready.
|
void |
onActivityEnd(HabaneroActivity activity,
FinishState finishState,
Throwable throwable)
Callback for when the event ends execution.
|
void |
onActivityResume(HabaneroActivity activity)
Callback for when the event execution is resumed.
|
void |
onActivitySpawn(HabaneroActivity parentActivity,
HabaneroActivity childActivity)
Callback for when the event ends execution.
|
void |
onActivityStart(HabaneroActivity activity)
Callback for when the event starts execution.
|
void |
onActivitySuspend(HabaneroActivity activity)
Callback for when the event execution is suspended.
|
void |
onFinishScopeStart(HabaneroActivity activity,
FinishState finishState) |
void |
onPhaserReady(HabaneroActivity activity,
List<HjPhaserPair> phaserPairList)
Callback for the event when phasers are created
|
void |
onPostFinishScopeEnd(HabaneroActivity activity,
FinishState finishState) |
void |
onPreFinishScopeEnd(HabaneroActivity activity,
FinishState finishState) |
String |
toString() |
void |
updateActivityFromCompanion(HabaneroActivity activity,
CompanionMetrics companionMetrics) |
void |
updateCompanionFromActivity(HabaneroActivity activity,
CompanionMetrics companionMetrics) |
public void onActivitySpawn(HabaneroActivity parentActivity, HabaneroActivity childActivity)
onActivitySpawn
in interface ActivityListeners.ActivityListener
parentActivity
- The parent activity.childActivity
- The child activity that was spawned.public <T> void onActivityDependenciesReady(HabaneroActivity activity, List<HjFuture<T>> dependencies)
onActivityDependenciesReady
in interface ActivityListeners.ActivityListener
activity
- The activity that is ready to execute.dependencies
- The dependencies of the activitypublic void onActivityStart(HabaneroActivity activity)
onActivityStart
in interface ActivityListeners.ActivityListener
activity
- The activity being started.public void onActivitySuspend(HabaneroActivity activity)
onActivitySuspend
in interface ActivityListeners.ActivityListener
activity
- The activity being suspended.public void onActivityResume(HabaneroActivity activity)
onActivityResume
in interface ActivityListeners.ActivityListener
activity
- The activity being resumed.public void onActivityEnd(HabaneroActivity activity, FinishState finishState, Throwable throwable)
onActivityEnd
in interface ActivityListeners.ActivityListener
activity
- The activity that is ending.finishState
- The root finish state associated with the activitypublic void onPhaserReady(HabaneroActivity activity, List<HjPhaserPair> phaserPairList)
ActivityListeners.ActivityListener
onPhaserReady
in interface ActivityListeners.ActivityListener
activity
- The activity that is ready to execute.phaserPairList
- The a list of phasers of HjPhaserPair typepublic void onFinishScopeStart(HabaneroActivity activity, FinishState finishState)
onFinishScopeStart
in interface ActivityListeners.ActivityListener
activity
- The activity running the finish scopefinishState
- The finish state associated with the activitypublic void onPreFinishScopeEnd(HabaneroActivity activity, FinishState finishState)
onPreFinishScopeEnd
in interface ActivityListeners.ActivityListener
activity
- The activity that ran the finish scopefinishState
- The finish state associated with the activitypublic void onPostFinishScopeEnd(HabaneroActivity activity, FinishState finishState)
onPostFinishScopeEnd
in interface ActivityListeners.ActivityListener
activity
- The activity that ran the finish scopefinishState
- The finish state associated with the activitypublic void updateCompanionFromActivity(HabaneroActivity activity, CompanionMetrics companionMetrics)
updateCompanionFromActivity
in interface ActivityListeners.ActivityListener
public void updateActivityFromCompanion(HabaneroActivity activity, CompanionMetrics companionMetrics)
updateActivityFromCompanion
in interface ActivityListeners.ActivityListener
Copyright © 2015 Rice University - Department of Computer Science. All rights reserved.