JNodeOS v1.2.0 API

edu.utah.janos.nodeos
Class FlowRun

java.lang.Object
  |
  +--edu.utah.janos.nodeos.FlowRun
Direct Known Subclasses:
CPUHogs, Flood, FloodSink, FlowBase, FlowTest.FlowStartup, ICMPFlow, MemoryChewer, MemoryHog, PassThru, PingFlow, WorkerBee

public abstract class FlowRun
extends java.lang.Object

A protocol should override FlowRun so that a flow can be created for it. When the flow is created, the overridden run() method is called.

Author:
Janos Ministry of Development
See Also:
FlowStartSpec, Flow.newFlow(Credentials,ThreadPoolSpec,MemSpec,FlowStartSpec,Runnable)

Constructor Summary
FlowRun()
           
 
Method Summary
protected abstract  void run(Flow flow, java.lang.String[] args, edu.utah.janosvm.kit.comm.commspace.CommSpaceHandle csh)
          Invoked as the initial entrypoint in a new flow.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlowRun

public FlowRun()
Method Detail

run

protected abstract void run(Flow flow,
                            java.lang.String[] args,
                            edu.utah.janosvm.kit.comm.commspace.CommSpaceHandle csh)
Invoked as the initial entrypoint in a new flow. The flow parameter is a parameter is the new flow object, the args array contains "command line" arguments to the new flow. The CommSpaceHandle provides a communication link with the parent flow (if the parent flow provided one).
Parameters:
flow - the new flow and the current flow
args - whatever "command line" arguments the creator passed.
csh - handle on a parent's CommSpace

JNodeOS v1.2.0 API

This documentation is Copyright (C) 1998-2002 The University of Utah. All Rights Reserved. See the file LICENSE for distribution terms.
Documentation, software, and mailing list archives for Janos can be found at the Janos Project web site: http://www.cs.utah.edu/flux/janos/
Generated on Mar 17, 2002