Class NativeComm


  • public final class NativeComm
    extends Object
    Since:
    Mar 8, 2006
    • Method Detail

      • serviceBuilder

        public static IServiceBuilder serviceBuilder​(String id)
        Parameters:
        id - unique service id
        Returns:
        IServiceBuilder object
      • service

        public static INativeService service​(String id,
                                             int port)
        HACKY WHACKY - quick way to connect a running service on a port
        Parameters:
        id - - arbitrary id
        port - - TCP port to connect
        Returns:
        INativeService instance
      • getDefaultCommand

        public static String getDefaultCommand()
        Returns the configured default executable
        Returns:
        the configured default executable
      • getDefaultTmpDir

        public static File getDefaultTmpDir()
        Returns the configured default temp directory
        Returns:
        the configured default temp directory
      • getDefaultLogDir

        public static File getDefaultLogDir()
        Returns the configured default log directory
        Returns:
        the configured default log directory
      • getDefaultMaxConnections

        public static int getDefaultMaxConnections()
        Returns the default maximum connection pool size
        Returns:
        the default maximum connection pool size
      • getDefaultMaxRequests

        public static int getDefaultMaxRequests()
        Returns the default maximum number of requests per process.
        Returns:
        the default maximum number of requests per process (0 == unlimited)
      • getDefaultRequestTimeout

        public static int getDefaultRequestTimeout()
        Returns the default request timeout in milliseconds.
        Returns:
        the default request timeout in milliseconds
      • getDefaultRequestRetries

        public static int getDefaultRequestRetries()
        Returns:
        default maximum number of request retries; 0 == do not retry
      • getDefaultLaunchTimeout

        public static int getDefaultLaunchTimeout()
        Returns:
        the default maximum time to wait for a spawned child process' connection.
      • setDefaultCommand

        public static void setDefaultCommand​(String command)
        Sets the default executable
        Parameters:
        command - default executable
      • setDefaultTmpDir

        public static void setDefaultTmpDir​(File tmpDir)
        Sets the default temp directory
        Parameters:
        tmpDir - default temp directory
      • setDefaultLogDir

        public static void setDefaultLogDir​(File logDir)
        Sets the default log directory
        Parameters:
        logDir - default log directory
      • setDefaultMaxConnections

        public static void setDefaultMaxConnections​(int maxConnections)
        Sets the default maximum connection pool size
        Parameters:
        maxConnections - default maximum connection pool size
      • setDefaultMaxRequests

        public static void setDefaultMaxRequests​(int maxRequests)
        Sets the default maximum number of requests per process.
        Parameters:
        maxRequests - default maximum number of requests per process (0 == unlimited)
      • setDefaultRequestTimeout

        public static void setDefaultRequestTimeout​(int timeout)
        Sets the default request timeout in milliseconds
        Parameters:
        timeout - default request timeout in milliseconds; 0 == no timeout
      • setDefaultRequestRetries

        public static void setDefaultRequestRetries​(int retries)
        Sets the default maximum number of request retries
        Parameters:
        retries - default maximum number of request retries; 0 == do not retry
      • setDefaultLaunchTimeout

        public static void setDefaultLaunchTimeout​(int timeout)
        Sets the default maximum time to wait for a spawned child process' connection.
        Parameters:
        timeout - default maximum time to wait for a spawned child process' connection.