Class SparkConnection


  • @Generated(value="OracleSDKGenerator",
               comments="API Version: 20200407")
    public final class SparkConnection
    extends Connection
    Represents the metadata of a Spark Connection.
    Note: Objects should always be created or deserialized using the SparkConnection.Builder. This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of the SparkConnection.Builder, which maintain a set of all explicitly set fields called SparkConnection.Builder.__explicitlySet__. The hashCode() and equals(Object) methods are implemented to take the explicitly set fields into account. The constructor, on the other hand, does not take the explicitly set fields into account (since the constructor cannot distinguish explicit null from unset null).
    • Method Detail

      • getSubmitMode

        public SparkConnection.SubmitMode getSubmitMode()
        Submission channel used to connect to Spark.
        Returns:
        the value
      • getClusterEndpoint

        public String getClusterEndpoint()
        Spark master URL used for job submission.

        Required for both submitMode SUBMIT and REST. e.g.: ‘spark://spark-master.example.com:7077’ High availability can be configured with a comma-separated list, for example: ‘spark://h1.example.com:7077,h2.example.com:7077’

        Returns:
        the value
      • getRestEndpoint

        public String getRestEndpoint()
        Spark standalone REST submission base URL.

        e.g.: ‘https://spark-master.example.com:6066’ Applicable only and required when submitMode is REST.

        Returns:
        the value
      • getAuthSecretSecretId

        public String getAuthSecretSecretId()
        The OCID of the Secret that stores the Spark authentication shared secret.

        Applicable when authenticationType is SHARED_SECRET. Note: When provided, ‘authSecret’ field must not be provided.

        Returns:
        the value
      • getRpcCipher

        public SparkConnection.RpcCipher getRpcCipher()
        Cipher transform used for Spark RPC encryption.

        Applicable when securityProtocol is AES_RPC.

        Returns:
        the value
      • getRestAuthSecretKeySecretId

        public String getRestAuthSecretKeySecretId()
        The OCID of the Secret that stores the REST submission signing key.

        Applicable only when submitMode is REST and the cluster enforces REST request signing. This setting is independent of authenticationType. Note: When provided, ‘restAuthSecretKey’ field must not be provided.

        Returns:
        the value
      • getTrustStoreSecretId

        public String getTrustStoreSecretId()
        The OCID of the Secret that stores the trust store content.

        Applicable when securityProtocol is TLS. Provide this when the server certificate is not already trusted by the JVM. Note: When provided, ‘trustStore’ field must not be provided.

        Returns:
        the value
      • getTrustStorePasswordSecretId

        public String getTrustStorePasswordSecretId()
        The OCID of the Secret that stores the trust store password.

        Applicable when securityProtocol is TLS and a trust store is provided. Required when ‘trustStoreSecretId’ is provided. Note: When provided, ‘trustStorePassword’ field must not be provided.

        Returns:
        the value
      • getKeyStoreSecretId

        public String getKeyStoreSecretId()
        The OCID of the Secret that stores the client key store content.

        Applicable when securityProtocol is TLS. Note: When provided, ‘keyStore’ field must not be provided.

        Returns:
        the value
      • getKeyStorePasswordSecretId

        public String getKeyStorePasswordSecretId()
        The OCID of the Secret that stores the client key store password.

        Applicable when securityProtocol is TLS and a client key store is provided. Required when ‘keyStoreSecretId’ is provided. Note: When provided, ‘keyStorePassword’ field must not be provided.

        Returns:
        the value
      • getSslKeyPasswordSecretId

        public String getSslKeyPasswordSecretId()
        The OCID of the Secret that stores the private key password.

        Applicable when securityProtocol is TLS and a client key store is provided. Note: When provided, ‘sslKeyPassword’ field must not be provided.

        Returns:
        the value
      • toString

        public String toString​(boolean includeByteArrayContents)
        Return a string representation of the object.
        Overrides:
        toString in class Connection
        Parameters:
        includeByteArrayContents - true to include the full contents of byte arrays
        Returns:
        string representation