org.mbari.siam.foce.utils
Class FOCEElmoUtil
java.lang.Object
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
FOCEElmoUtil
public FOCEElmoUtil()
FOCEElmoUtil
public FOCEElmoUtil(java.lang.String host,
java.lang.String port)
throws java.lang.Exception
- Throws:
java.lang.Exception
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.