Class DlmsServer

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    public class DlmsServer
    extends java.lang.Object
    implements java.lang.AutoCloseable
    Class representing a physical device (DLMS/COSEM server).
    • Method Detail

      • close

        public void close()
                   throws java.io.IOException
        Stops the server immediately. Releases all acquired resources.
        Specified by:
        close in interface java.lang.AutoCloseable
        Throws:
        java.io.IOException
      • shutdown

        public void shutdown()
                      throws java.io.IOException
        Sends disconnect messages to all connected clients.
        Throws:
        java.io.IOException - if an exception occurs, while releasing the resources.
      • tcpServerBuilder

        public static DlmsServer.TcpServerBuilder tcpServerBuilder​(int port)
        Create a new TCP server builder.
        Parameters:
        port - the TCP port the server starts listening on.
        Returns:
        a new TcpServerBuilder.
      • tcpServerBuilder

        public static DlmsServer.TcpServerBuilder tcpServerBuilder()
        Create a new TCP server builder. Opening the defaut DLMS port 4059.
        Returns:
        a new TcpServerBuilder.