org.mbari.siam.operations.utils
Class MonitorStreams

java.lang.Object
  extended by org.mbari.siam.operations.utils.NodeUtility
      extended by org.mbari.siam.operations.utils.MonitorStreams

public class MonitorStreams
extends NodeUtility

Monitor one or more Instrument data streams. Based on GetLastSample

Author:
Bob Herlien

Nested Class Summary
protected  class MonitorStreams.InstrumentParms
           
 
Nested classes/interfaces inherited from class org.mbari.siam.operations.utils.NodeUtility
NodeUtility.InvalidOption
 
Field Summary
protected  java.text.SimpleDateFormat _dateFormatter
           
protected  int _delayMs
           
protected  java.util.Vector _instruments
           
protected  boolean _keepGoing
           
 
Fields inherited from class org.mbari.siam.operations.utils.NodeUtility
_node, _nodeHost, _nodeURL
 
Constructor Summary
MonitorStreams()
           
 
Method Summary
 void getNode(java.lang.String[] args)
          Get node proxy
static void main(java.lang.String[] args)
           
 void printUsage()
          Print usage message.
 void processArguments(java.lang.String[] args)
          Process command line options.
 void processNode()
          Run forever, displaying data from specified port(s)
 void processNode(Node node)
          Do application-specific processing of node.
 
Methods inherited from class org.mbari.siam.operations.utils.NodeUtility
getHostName, getNodeURL, processArguments, processCustomOption, run
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_delayMs

protected int _delayMs

_instruments

protected java.util.Vector _instruments

_dateFormatter

protected java.text.SimpleDateFormat _dateFormatter

_keepGoing

protected boolean _keepGoing
Constructor Detail

MonitorStreams

public MonitorStreams()
Method Detail

main

public static void main(java.lang.String[] args)

getNode

public void getNode(java.lang.String[] args)
Get node proxy


processArguments

public void processArguments(java.lang.String[] args)
Process command line options. The first command line argument is always the node server's URL or hostname.

Overrides:
processArguments in class NodeUtility

printUsage

public void printUsage()
Print usage message.

Specified by:
printUsage in class NodeUtility

processNode

public void processNode()
                 throws java.lang.Exception
Run forever, displaying data from specified port(s)

Throws:
java.lang.Exception

processNode

public void processNode(Node node)
                 throws java.lang.Exception
Description copied from class: NodeUtility
Do application-specific processing of node.

Specified by:
processNode in class NodeUtility
Throws:
java.lang.Exception


Copyright © 2003 MBARI.

The Monterey Bay Aquarium Research Institute (MBARI) provides this documentation and code "as is", with no warranty, express or implied, of its quality or consistency. It is provided without support and without obligation on the part of MBARI to assist in its use, correction, modification, or enhancement.