org.mbari.siam.foce.utils
Class FOCEElmoUtil

java.lang.Object
  extended by org.mbari.siam.foce.utils.FOCEElmoUtil

public class FOCEElmoUtil
extends java.lang.Object

FOCEElmoUtil - command line utilty to switch power (via foceio daemon) to Elmo controllers.


Field Summary
protected  java.lang.String _host
           
protected  java.io.OutputStream _out
           
protected  int _port
           
protected  java.net.Socket _sock
           
protected static int EXEC_TMOUT
           
protected static int IOPORT_PORT
           
 
Constructor Summary
FOCEElmoUtil()
           
FOCEElmoUtil(java.lang.String host, java.lang.String port)
           
 
Method Summary
 void close()
           
static void errorOut(java.lang.String msg)
           
static void main(java.lang.String[] args)
           
 void printUsage()
           
 java.lang.String writeRead(java.lang.String cmd)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EXEC_TMOUT

protected static final int EXEC_TMOUT
See Also:
Constant Field Values

IOPORT_PORT

protected static final int IOPORT_PORT
See Also:
Constant Field Values

_sock

protected java.net.Socket _sock

_host

protected java.lang.String _host

_port

protected int _port

_out

protected java.io.OutputStream _out
Constructor Detail

FOCEElmoUtil

public FOCEElmoUtil()

FOCEElmoUtil

public FOCEElmoUtil(java.lang.String host,
                    java.lang.String port)
             throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

writeRead

public java.lang.String writeRead(java.lang.String cmd)
                           throws java.io.IOException
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Throws:
java.io.IOException

printUsage

public void printUsage()

errorOut

public static void errorOut(java.lang.String msg)

main

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


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.