java.lang.Object
org.refcodes.serial.alt.tty.TtyPortHub
- All Implemented Interfaces:
org.refcodes.serial.PortHub<TtyPort,
TtyPortMetrics>
- Direct Known Subclasses:
TtyPortHubSingleton
public class TtyPortHub
extends Object
implements org.refcodes.serial.PortHub<TtyPort,TtyPortMetrics>
The
TtyPortHub
implements the PortHub
for TTY-/COM-Port
hardware.-
Constructor Summary
ConstructorDescriptionCreates aTtyPortHub
.TtyPortHub
(ExecutorService aExecutorService) Creates aTtyPortHub
with the givenExecutorService
to be used by asynchronous functionality. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.refcodes.serial.PortHub
ports
-
Constructor Details
-
TtyPortHub
public TtyPortHub()Creates aTtyPortHub
. -
TtyPortHub
Creates aTtyPortHub
with the givenExecutorService
to be used by asynchronous functionality.- Parameters:
aExecutorService
- TheExecutorService
to be used when invoking asynchronously working methods.
-
-
Method Details
-
ports
- Specified by:
ports
in interfaceorg.refcodes.serial.PortHub<TtyPort,
TtyPortMetrics> - Throws:
IOException
-
toPort
- Specified by:
toPort
in interfaceorg.refcodes.serial.PortHub<TtyPort,
TtyPortMetrics> - Throws:
org.refcodes.serial.NoSuchPortExcpetion
IOException
-