Package eu.ill.webx
Class WebXHostConfiguration
java.lang.Object
eu.ill.webx.WebXHostConfiguration
Provides host configuration parameters
-
Constructor Summary
ConstructorsConstructorDescriptionWebXHostConfiguration(String hostname, Integer port) Standard host connection parameters with hostname and portWebXHostConfiguration(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-EngineWebXHostConfiguration(String hostname, Integer port, Integer socketTimeoutMs) Connection parameters including override for the default socket timeout running WebX-Engine -
Method Summary
Modifier and TypeMethodDescriptionReturns the hostnamegetPort()Returns the connector portReturns the socket timeout in millisecondsbooleanReturns true if the relay is running in standalone mode
-
Constructor Details
-
WebXHostConfiguration
Standard host connection parameters with hostname and port- Parameters:
hostname- the name of the hostport- the port to connect to
-
WebXHostConfiguration
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 hostport- the port to connect toisStandalone- True if the host is running a standalone WebX Engine
-
WebXHostConfiguration
Connection parameters including override for the default socket timeout running WebX-Engine- Parameters:
hostname- the name of the hostport- the port to connect tosocketTimeoutMs- The timeout in milliseconds for a timeout exception to be thrown when doing blocking ZMQ requests
-
-
Method Details
-
getHostname
Returns the hostname- Returns:
- the hostname
-
getPort
Returns the connector port- Returns:
- The connector port
-
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
-