Class IpcServerTcpEndpoint

    • Field Detail

      • DFLT_IPC_PORT

        public static final int DFLT_IPC_PORT
        Default endpoint port number.
        See Also:
        Constant Field Values
    • Constructor Detail

      • IpcServerTcpEndpoint

        public IpcServerTcpEndpoint()
    • Method Detail

      • accept

        public IpcEndpoint accept()
                           throws IgniteCheckedException
        Accepts client IPC connection. After client connection is accepted, it can be used for IPC. This method will block until client connects to IPC server endpoint.
        Specified by:
        accept in interface IpcServerEndpoint
        Returns:
        Accepted client connection.
        Throws:
        IgniteCheckedException - If accept failed and the endpoint is not usable anymore.
      • close

        public void close()
        Closes server IPC. After IPC is closed, no further operations can be performed on this object.
        Specified by:
        close in interface AutoCloseable
        Specified by:
        close in interface Closeable
        Specified by:
        close in interface IpcServerEndpoint
      • getPort

        public int getPort()
        Gets port endpoint is bound to. Endpoints who does not bind to any port should return -1.
        Specified by:
        getPort in interface IpcServerEndpoint
        Returns:
        Port number.
      • setPort

        public void setPort​(int port)
        Sets port endpoint will be bound to.
        Parameters:
        port - Port number.
      • getHost

        public String getHost()
        Gets host endpoint is bound to. Endpoints who does not bind to any port should return null.
        Specified by:
        getHost in interface IpcServerEndpoint
        Returns:
        Host.
      • setHost

        public void setHost​(String host)
        Sets host endpoint will be bound to.
        Parameters:
        host - Host.
      • isManagement

        public boolean isManagement()
        Indicates if this endpoint is a management endpoint.
        Specified by:
        isManagement in interface IpcServerEndpoint
        Returns:
        true if it's a management endpoint.
      • setManagement

        public void setManagement​(boolean mgmt)
        Sets management property.
        Parameters:
        mgmt - flag.