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 Type
    Method
    Description
    Get the driver host name or IP address.
    int
    Get the driver port to connect to.
    int
    Deprecated.
    as of JPPF 6.0, the recovery mechanism uses the same port number as the main server port.
    default boolean
    Determine whether the recovery mechanism (exchange of heartbeat messages) is enabled.
    boolean
    Deprecated.
    boolean
    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:
      true for secure connections, false otherwise.
    • 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 -1 if recovery is disabled, or the value of getPort() 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.
      Determine whether the recovery mechanism (exchange of heartbeat messages) is enabled.
      Returns:
      true if recovery is enabled, false otherwise.
    • isHeartbeatEnabled

      default boolean isHeartbeatEnabled()
      Determine whether the recovery mechanism (exchange of heartbeat messages) is enabled.
      Returns:
      true if the heartbeat mechanism is enabled, false otherwise.