org.mbari.siam.foce.deployed
Class IOMapper
java.lang.Object
org.mbari.siam.foce.deployed.IOMapper
public class IOMapper
- extends java.lang.Object
IOMapper opens a socket to a native daemon, written in 'C', that
does port-level I/O on behalf of the Java applications.
- Author:
- Bob Herlien
|
Method Summary |
void |
close()
|
static IOMapper |
getInstance()
Method to get singleton instance. |
java.lang.String |
transact(java.lang.String cmd)
Perform one I/O transaction with the I/O server, return String result. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IOPORT_EXEC
protected static final java.lang.String IOPORT_EXEC
- See Also:
- Constant Field Values
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
_theIOMapper
protected static IOMapper _theIOMapper
_out
protected java.io.OutputStream _out
getInstance
public static IOMapper getInstance()
throws java.io.IOException,
java.net.UnknownHostException
- Method to get singleton instance.
- Throws:
java.io.IOException
java.net.UnknownHostException
transact
public java.lang.String transact(java.lang.String cmd)
throws java.io.IOException
- Perform one I/O transaction with the I/O server, return String result.
Check to make sure return string starts with "OK". If so, return remainder
of string. Else, throw IOException with return string as message.
- Throws:
java.io.IOException
close
public void close()
throws java.io.IOException
- Throws:
java.io.IOException
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.