Class RpcSocketHelper


  • public class RpcSocketHelper
    extends java.lang.Object
    Helper class for creating and configuring sockets.
    • Constructor Summary

      Constructors 
      Constructor Description
      RpcSocketHelper()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void configureSocket​(java.net.Socket socket, java.util.Properties properties)
      Configure a socket with specified properties.
      static java.net.Socket createSocket​(java.lang.String host, int port, java.util.Properties properties, boolean secure)
      Create a socket with the specified properties and connect to the specified host and port.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RpcSocketHelper

        public RpcSocketHelper()
    • Method Detail

      • configureSocket

        public static void configureSocket​(java.net.Socket socket,
                                           java.util.Properties properties)
        Configure a socket with specified properties.
        Parameters:
        socket - socket
        properties - properties
      • createSocket

        public static java.net.Socket createSocket​(java.lang.String host,
                                                   int port,
                                                   java.util.Properties properties,
                                                   boolean secure)
                                            throws java.io.IOException
        Create a socket with the specified properties and connect to the specified host and port.
        Parameters:
        host - host
        port - port
        properties - properties
        secure - secure
        Returns:
        Socket
        Throws:
        java.io.IOException - on error