Class portio.EtherLiteDriver
All Packages Class Hierarchy This Package Previous Next Index
Class portio.EtherLiteDriver
java.lang.Object
|
+----portio.PortDriver
|
+----portio.EtherLiteDriver
- public class EtherLiteDriver
- extends PortDriver
- implements Runnable
This implements a serial/parallel driver for Central Data's EtherLite(R)
devices. This class must be instantiated before any EtherLite
Port objects can be created.
- Version:
- $Revision: 2.1 $ ($Date: 1997/02/19 18:00:00 $)
-
EtherLiteDriver(String)
- This creates a new instance of a port driver with default options (no messages).
-
EtherLiteDriver(String, int)
- This creates a new instance of a PortDriver with specified options.
-
run()
- The receive thread; manages all response processing from the EtherLite device.
EtherLiteDriver
public EtherLiteDriver(String hostName,
int options) throws PortIOException
- This creates a new instance of a PortDriver with specified options.
Any given copy of Java(TM)
should have only one instance of a port driver per physical EtherLite device,
so this class refuses to instantiate duplicate copies for a given device. Also,
since EtherLite devices are not generally designed to be talked to by a large
number of entities (typically just one or two hosts), multiple copies of
Java running multiple copies of the EtherLiteDriver talking to a particular
EtherLite device may run into a limitation at that device as to how many sockets
it can have open. Currently, there is a 6 socket/device limit for most devices.
Thus, if you want to talk to larger numbers of ports, it would be a good idea
to do so from a common Java process if possible.
- Parameters:
- hostName - host name for device
- options - lowest three bits set messageLevel defined in PortDriver
- Throws: PortIOException
- if communication with device not possible
EtherLiteDriver
public EtherLiteDriver(String hostName) throws PortIOException
- This creates a new instance of a port driver with default options (no messages).
- Parameters:
- hostName - host name for device
- Throws: PortIOException
- if communication with device not possible
run
public void run()
- The receive thread; manages all response processing from the EtherLite device.
All Packages Class Hierarchy This Package Previous Next Index