frysk.testbed
Class CoredumpAction

java.lang.Object
  extended by frysk.testbed.CoredumpAction
All Implemented Interfaces:
Observer, ProcBlockObserver

public class CoredumpAction
extends Object
implements ProcBlockObserver

CoredumpAction Utility class to take a pid. Derive from that a Proc that is modelled in the core, stop all the tasks, get the main tasks's maps, and each threads register/status. Finally, Construct an elf core-file.


Constructor Summary
CoredumpAction(Proc proc, Event theEvent, boolean writeAllMaps)
          CoredumpAction - Generate a core file
 
Method Summary
 void addedTo(Object observable)
          Acknowledge the request to add this Observer from Object's set of observers was successful.
 void addFailed(Object observable, Throwable w)
          Notify that the attempt to add to the specified observer failed.
 void allExistingTasksCompleted()
          Called when all the tasks have been handled.
 void deletedFrom(Object observable)
          Acknowledge the request to delete this Observer from Object's set of observers was successful (or that the Observer was spontaneously deleted, e.g., due to a task exit).
 void existingTask(Task task)
          Called to deliver a list of existing tasks to the client.
 String getConstructedFileName()
          getConstructedFileName() return the constructed filename of the corefile.
 void taskAddFailed(Object task, Throwable w)
          Called when attempting to bind to a specific task fails.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CoredumpAction

public CoredumpAction(Proc proc,
                      Event theEvent,
                      boolean writeAllMaps)
CoredumpAction - Generate a core file

Parameters:
proc - - Process extract and dump core
theEvent - - Event
writeAllMaps - - Should all maps be written.
Method Detail

existingTask

public void existingTask(Task task)
Description copied from interface: ProcBlockObserver
Called to deliver a list of existing tasks to the client.

Specified by:
existingTask in interface ProcBlockObserver

addFailed

public void addFailed(Object observable,
                      Throwable w)
Description copied from interface: Observer
Notify that the attempt to add to the specified observer failed.

Specified by:
addFailed in interface Observer

allExistingTasksCompleted

public void allExistingTasksCompleted()
Description copied from interface: ProcBlockObserver
Called when all the tasks have been handled.

Specified by:
allExistingTasksCompleted in interface ProcBlockObserver

addedTo

public void addedTo(Object observable)
Description copied from interface: Observer
Acknowledge the request to add this Observer from Object's set of observers was successful.

Specified by:
addedTo in interface Observer

taskAddFailed

public void taskAddFailed(Object task,
                          Throwable w)
Description copied from interface: ProcBlockObserver
Called when attempting to bind to a specific task fails.

Specified by:
taskAddFailed in interface ProcBlockObserver

deletedFrom

public void deletedFrom(Object observable)
Description copied from interface: Observer
Acknowledge the request to delete this Observer from Object's set of observers was successful (or that the Observer was spontaneously deleted, e.g., due to a task exit).

Specified by:
deletedFrom in interface Observer

getConstructedFileName

public String getConstructedFileName()
getConstructedFileName() return the constructed filename of the corefile.

Returns:
String - name of corefile