frysk.proc.dead
Class LinuxCoreHost

java.lang.Object
  extended by frysk.proc.Host
      extended by frysk.proc.dead.LinuxCoreHost
All Implemented Interfaces:
Comparable

public class LinuxCoreHost
extends Host


Method Summary
 String getName()
          Returns the name of the host
 Proc getSelf()
          Return the process corresponding to this running frysk instance found on this host.
 void requestCreateAttachedProc(File exe, String in, String out, String err, String[] args, String libs, TaskAttachedObserverXXX attached)
          Tell the host to create a running child process.
 void requestProc(int thePid, FindProc theFinder)
          Find a specifc process from its Id.
 void requestRefresh(Collection theKnownProcesses, HostRefreshBuilder theBuilder)
          Given a set of knownProcesses and knownDaemons (children of init) scan the system passing back the set of newProcesses (not in knownProcesses), deadProcesses (were in knownProcesses but exited), newDaemons (processes that re-parented to init).
 
Methods inherited from class frysk.proc.Host
compareTo, requestCreateAttachedProc, requestCreateAttachedProc, requestCreateAttachedProc, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getName

public String getName()
Description copied from class: Host
Returns the name of the host

Specified by:
getName in class Host

requestCreateAttachedProc

public void requestCreateAttachedProc(File exe,
                                      String in,
                                      String out,
                                      String err,
                                      String[] args,
                                      String libs,
                                      TaskAttachedObserverXXX attached)
Description copied from class: Host
Tell the host to create a running child process. Unlike other requests, this operation is bound to an explicit call-back. Doing this means that the requester has a robust way of receiving an acknowledge of the operation. Without this there would be no reliable way to bind to the newly created process - frysk's state machine could easily detach before the requester had an opportunity to add an attached observer.

Specified by:
requestCreateAttachedProc in class Host

requestRefresh

public void requestRefresh(Collection theKnownProcesses,
                           HostRefreshBuilder theBuilder)
Description copied from class: Host
Given a set of knownProcesses and knownDaemons (children of init) scan the system passing back the set of newProcesses (not in knownProcesses), deadProcesses (were in knownProcesses but exited), newDaemons (processes that re-parented to init).

Specified by:
requestRefresh in class Host

getSelf

public Proc getSelf()
Description copied from class: Host
Return the process corresponding to this running frysk instance found on this host.

Specified by:
getSelf in class Host

requestProc

public void requestProc(int thePid,
                        FindProc theFinder)
Description copied from class: Host
Find a specifc process from its Id.

Specified by:
requestProc in class Host