All Packages This Package Class Hierarchy Class Search Index
java.lang.Object | +----edu.utah.janos.nodeos.FlowRun | +----edu.utah.janos.antsr.core.NodeConfigure
Summary |
public class NodeConfigure extends edu.utah.janos.nodeos.FlowRun { // Fields 1 private static boolean beenHere; // Constructors 1 public NodeConfigure(); // Methods 6 private static String[] grokArgFile(String) throws FileNotFoundException, IOException, LineListException; public static void main(String[]) throws Exception;protected BufferHandle newBufferHandle(); private void parseCommandLine(String[]) throws FileNotFoundException, IOException, InvalidKeyArgsException, AddressFormatException, NoSuchNodeAddress, InterruptedException, LineListException;protected void recycleBufferHandle(BufferHandle); protected void run(Flow, String[], CommSpaceHandle); }
Performs one-time configuration of a Node to get it on its feet.
An alternative to the MIT ANTS ConfigurationManager.
Usage:
NodeConfigure
Fields |
· beenHere | Summary | Top |
private static boolean beenHere
XXX A hack. Move into PrimordialNode so that ConfigurationManager and NodeConfigure will be mutually exclusive.
Constructors |
· NodeConfigure | Summary | Top |
public NodeConfigure()
Default constructor
Methods |
· run | Summary | Top |
protected void run(Flow flow, String[] args, CommSpaceHandle commSpaceHandle)
Configure this Node. Prints a usage message if insufficient arguments are given.
The flow that starts this ball rolling will become the basic flow in the system.
XXX flow argument isn't used anymore?
Parameter Description args the node configuration. See the class documentation.
- Overrides:
- run in class FlowRun
· parseCommandLine | Summary | Top |
private void parseCommandLine(String[] args) throws FileNotFoundException, IOException, InvalidKeyArgsException, AddressFormatException, NoSuchNodeAddress, InterruptedException, LineListException
Parse the command line arguments to NodeConfigure. Most arguments are passed into PrimordialNode in some fashion. However, -application and -extension arguments have their files parsed and put into the
apps
andexts
return parameters.
· grokArgFile | Summary | Top |
private static String[] grokArgFile(String filename) throws FileNotFoundException, IOException, LineListException
Grok an arg file (for a weak definition of grok). Just turns the contents of the file into an array of Strings, one for each token.
· newBufferHandle | Summary | Top |
protected BufferHandle newBufferHandle()
Note: newBufferHandle() is deprecated Just use BufferHandle.create()
Part of the FlowRun interface
See Also: core.FlowRun
· recycleBufferHandle | Summary | Top |
protected void recycleBufferHandle(BufferHandle bh)
Note: recycleBufferHandle() is deprecated Just use BufferHandle.reset()
Part of the FlowRun interface
See Also: core.FlowRun
· main | Summary | Top |
public static void main(String[] args) throws Exception
This doesn't work. Its just here to prevent folks from getting really confused.
See Also: run
All Packages This Package Class Hierarchy Class Search IndexFreshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7