Package org.jppf.node.connection
Interface DriverConnectionInfo
- All Known Implementing Classes:
JPPFDriverConnectionInfo
public interface DriverConnectionInfo
This interface provides the required information for connecting to a remote JPPF driver.
- Since:
- 4.1
- Author:
- Laurent Cohen
-
Method Summary
Modifier and TypeMethodDescriptiongetHost()Get the driver host name or IP address.intgetPort()Get the driver port to connect to.intDeprecated.as of JPPF 6.0, the recovery mechanism uses the same port number as the main server port.default booleanDetermine whether the recovery mechanism (exchange of heartbeat messages) is enabled.booleanDeprecated.useisHeartbeatEnabled()instead.booleanisSecure()Determine whether secure (with SSL/TLS) connections should be established.
-
Method Details
-
isSecure
boolean isSecure()Determine whether secure (with SSL/TLS) connections should be established.- Returns:
truefor secure connections,falseotherwise.
-
getHost
String getHost()Get the driver host name or IP address.- Returns:
- the host as a string.
-
getPort
int getPort()Get the driver port to connect to.- Returns:
- the driver port as an int value.
-
getRecoveryPort
int getRecoveryPort()Deprecated.as of JPPF 6.0, the recovery mechanism uses the same port number as the main server port. This method will return-1if recovery is disabled, or the value ofgetPort()if it is enabled.Get the recovery port for the heartbeat mechanism.- Returns:
- the recovery port a an int; a negative value indicates that recovery is disabled for the node.
-
isRecoveryEnabled
boolean isRecoveryEnabled()Deprecated.useisHeartbeatEnabled()instead.Determine whether the recovery mechanism (exchange of heartbeat messages) is enabled.- Returns:
trueif recovery is enabled,falseotherwise.
-
isHeartbeatEnabled
default boolean isHeartbeatEnabled()Determine whether the recovery mechanism (exchange of heartbeat messages) is enabled.- Returns:
trueif the heartbeat mechanism is enabled,falseotherwise.
-