Class JSerialCommChannel
java.lang.Object
io.netty.util.DefaultAttributeMap
io.netty.channel.AbstractChannel
io.netty.channel.oio.AbstractOioChannel
io.netty.channel.oio.AbstractOioByteChannel
io.netty.channel.oio.OioByteStreamChannel
org.openremote.agent.protocol.serial.JSerialCommChannel
- All Implemented Interfaces:
io.netty.channel.Channel
,io.netty.channel.ChannelOutboundInvoker
,io.netty.util.AttributeMap
,Comparable<io.netty.channel.Channel>
public class JSerialCommChannel
extends io.netty.channel.oio.OioByteStreamChannel
A channel to a serial device using the jSerialComm library.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.netty.channel.AbstractChannel
io.netty.channel.AbstractChannel.AbstractUnsafe
Nested classes/interfaces inherited from interface io.netty.channel.Channel
io.netty.channel.Channel.Unsafe
-
Field Summary
Fields inherited from class io.netty.channel.oio.AbstractOioChannel
SO_TIMEOUT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconfig()
protected void
doBind
(SocketAddress localAddress) protected void
doClose()
protected void
doConnect
(SocketAddress remoteAddress, SocketAddress localAddress) protected void
protected void
doInit()
protected boolean
boolean
isOpen()
protected JSerialCommDeviceAddress
protected io.netty.channel.AbstractChannel.AbstractUnsafe
protected JSerialCommDeviceAddress
protected io.netty.channel.ChannelFuture
Methods inherited from class io.netty.channel.oio.OioByteStreamChannel
activate, available, doReadBytes, doWriteBytes, doWriteFileRegion, isActive
Methods inherited from class io.netty.channel.oio.AbstractOioByteChannel
doRead, doWrite, filterOutboundMessage, metadata
Methods inherited from class io.netty.channel.oio.AbstractOioChannel
clearReadPending, doBeginRead, isCompatible, isReadPending, setReadPending
Methods inherited from class io.netty.channel.AbstractChannel
alloc, bind, bind, bytesBeforeUnwritable, bytesBeforeWritable, close, close, closeFuture, compareTo, connect, connect, connect, connect, deregister, deregister, disconnect, disconnect, doDeregister, doRegister, doShutdownOutput, equals, eventLoop, flush, hashCode, id, invalidateLocalAddress, invalidateRemoteAddress, isRegistered, isWritable, maxMessagesPerWrite, newChannelPipeline, newFailedFuture, newId, newProgressivePromise, newPromise, newSucceededFuture, parent, pipeline, read, toString, unsafe, validateFileRegion, voidPromise, write, write, writeAndFlush, writeAndFlush
Methods inherited from class io.netty.util.DefaultAttributeMap
attr, hasAttr
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.netty.util.AttributeMap
attr, hasAttr
-
Constructor Details
-
JSerialCommChannel
public JSerialCommChannel()
-
-
Method Details
-
config
-
isOpen
public boolean isOpen() -
newUnsafe
protected io.netty.channel.AbstractChannel.AbstractUnsafe newUnsafe()- Overrides:
newUnsafe
in classio.netty.channel.oio.AbstractOioChannel
-
doConnect
- Specified by:
doConnect
in classio.netty.channel.oio.AbstractOioChannel
- Throws:
Exception
-
doInit
- Throws:
Exception
-
localAddress
- Specified by:
localAddress
in interfaceio.netty.channel.Channel
- Overrides:
localAddress
in classio.netty.channel.AbstractChannel
-
remoteAddress
- Specified by:
remoteAddress
in interfaceio.netty.channel.Channel
- Overrides:
remoteAddress
in classio.netty.channel.AbstractChannel
-
localAddress0
- Specified by:
localAddress0
in classio.netty.channel.AbstractChannel
-
remoteAddress0
- Specified by:
remoteAddress0
in classio.netty.channel.AbstractChannel
-
doBind
- Specified by:
doBind
in classio.netty.channel.AbstractChannel
- Throws:
Exception
-
doDisconnect
- Specified by:
doDisconnect
in classio.netty.channel.AbstractChannel
- Throws:
Exception
-
doClose
- Overrides:
doClose
in classio.netty.channel.oio.OioByteStreamChannel
- Throws:
Exception
-
isInputShutdown
protected boolean isInputShutdown()- Specified by:
isInputShutdown
in classio.netty.channel.oio.AbstractOioByteChannel
-
shutdownInput
protected io.netty.channel.ChannelFuture shutdownInput()- Specified by:
shutdownInput
in classio.netty.channel.oio.AbstractOioByteChannel
-