frysk.proc.dummy
Class DummyHost
java.lang.Object
frysk.proc.Host
frysk.proc.dummy.DummyHost
- All Implemented Interfaces:
- Comparable
public class DummyHost
- 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 stdin,
String stdout,
String stderr,
String[] args,
String libs,
TaskAttachedObserverXXX attached)
Tell the host to create a running child process. |
void |
requestProc(int pid,
FindProc finder)
Find a specifc process from its Id. |
void |
requestRefresh(Collection processes,
HostRefreshBuilder results)
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). |
name
private final String name
DummyHost
public DummyHost(String name)
DummyHost
public DummyHost()
requestCreateAttachedProc
public void requestCreateAttachedProc(File exe,
String stdin,
String stdout,
String stderr,
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
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 pid,
FindProc finder)
- Description copied from class:
Host
- Find a specifc process from its Id.
- Specified by:
requestProc
in class Host
requestRefresh
public void requestRefresh(Collection processes,
HostRefreshBuilder results)
- 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
getName
public String getName()
- Description copied from class:
Host
- Returns the name of the host
- Specified by:
getName
in class Host