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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    protected void
    doBind(SocketAddress localAddress)
     
    protected void
     
    protected void
    doConnect(SocketAddress remoteAddress, SocketAddress localAddress)
     
    protected void
     
    protected void
     
    protected boolean
     
    boolean
     
     
     
    protected io.netty.channel.AbstractChannel.AbstractUnsafe
     
     
     
    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

      public JSerialCommChannelConfig config()
    • isOpen

      public boolean isOpen()
    • newUnsafe

      protected io.netty.channel.AbstractChannel.AbstractUnsafe newUnsafe()
      Overrides:
      newUnsafe in class io.netty.channel.oio.AbstractOioChannel
    • doConnect

      protected void doConnect(SocketAddress remoteAddress, SocketAddress localAddress) throws Exception
      Specified by:
      doConnect in class io.netty.channel.oio.AbstractOioChannel
      Throws:
      Exception
    • doInit

      protected void doInit() throws Exception
      Throws:
      Exception
    • localAddress

      public JSerialCommDeviceAddress localAddress()
      Specified by:
      localAddress in interface io.netty.channel.Channel
      Overrides:
      localAddress in class io.netty.channel.AbstractChannel
    • remoteAddress

      public JSerialCommDeviceAddress remoteAddress()
      Specified by:
      remoteAddress in interface io.netty.channel.Channel
      Overrides:
      remoteAddress in class io.netty.channel.AbstractChannel
    • localAddress0

      protected JSerialCommDeviceAddress localAddress0()
      Specified by:
      localAddress0 in class io.netty.channel.AbstractChannel
    • remoteAddress0

      protected JSerialCommDeviceAddress remoteAddress0()
      Specified by:
      remoteAddress0 in class io.netty.channel.AbstractChannel
    • doBind

      protected void doBind(SocketAddress localAddress) throws Exception
      Specified by:
      doBind in class io.netty.channel.AbstractChannel
      Throws:
      Exception
    • doDisconnect

      protected void doDisconnect() throws Exception
      Specified by:
      doDisconnect in class io.netty.channel.AbstractChannel
      Throws:
      Exception
    • doClose

      protected void doClose() throws Exception
      Overrides:
      doClose in class io.netty.channel.oio.OioByteStreamChannel
      Throws:
      Exception
    • isInputShutdown

      protected boolean isInputShutdown()
      Specified by:
      isInputShutdown in class io.netty.channel.oio.AbstractOioByteChannel
    • shutdownInput

      protected io.netty.channel.ChannelFuture shutdownInput()
      Specified by:
      shutdownInput in class io.netty.channel.oio.AbstractOioByteChannel