Package eu.ill.webx

Class WebXHostConfiguration

java.lang.Object
eu.ill.webx.WebXHostConfiguration

public class WebXHostConfiguration extends Object
Provides host configuration parameters
  • Constructor Details

    • WebXHostConfiguration

      public WebXHostConfiguration(String hostname, Integer port)
      Standard host connection parameters with hostname and port
      Parameters:
      hostname - the name of the host
      port - the port to connect to
    • WebXHostConfiguration

      public WebXHostConfiguration(String hostname, Integer port, boolean isStandalone)
      Connection parameters including the standalone flag: Standalone server is not running with a router so connection is direct to a running WebX-Engine
      Parameters:
      hostname - the name of the host
      port - the port to connect to
      isStandalone - True if the host is running a standalone WebX Engine
    • WebXHostConfiguration

      public WebXHostConfiguration(String hostname, Integer port, Integer socketTimeoutMs)
      Connection parameters including override for the default socket timeout running WebX-Engine
      Parameters:
      hostname - the name of the host
      port - the port to connect to
      socketTimeoutMs - The timeout in milliseconds for a timeout exception to be thrown when doing blocking ZMQ requests
  • Method Details

    • getHostname

      public String getHostname()
      Returns the hostname
      Returns:
      the hostname
    • getPort

      public Integer getPort()
      Returns the connector port
      Returns:
      The connector port
    • getSocketTimeoutMs

      public Integer getSocketTimeoutMs()
      Returns the socket timeout in milliseconds
      Returns:
      The socket timeout in milliseconds
    • isStandalone

      public boolean isStandalone()
      Returns true if the relay is running in standalone mode
      Returns:
      true if the relay is running in standalone mode