class ArtifactManager extends AnyRef
The Artifact Manager is responsible for handling and transferring artifacts from the local client to the server (local/remote).
- Alphabetic
- By Inheritance
- ArtifactManager
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new ArtifactManager(clientConfig: Configuration, sessionId: String, bstub: CustomSparkConnectBlockingStub, stub: CustomSparkConnectStub)
- clientConfig
The configuration of the client that the artifact manager operates in.
- sessionId
An unique identifier of the session which the artifact manager belongs to.
- bstub
A blocking stub to the server.
- stub
An async stub to the server.
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def addArtifact(source: String, target: String): Unit
Add a single artifact to the session while preserving the directory structure specified by
target
under the session's working directory of that particular file extension.Add a single artifact to the session while preserving the directory structure specified by
target
under the session's working directory of that particular file extension.Supported target file extensions are .jar and .class.
Example
addArtifact("/Users/dummyUser/files/foo/bar.class", "foo/bar.class") addArtifact("/Users/dummyUser/files/flat.class", "flat.class") // Directory structure of the session's working directory for class files would look like: // ${WORKING_DIR_FOR_CLASS_FILES}/flat.class // ${WORKING_DIR_FOR_CLASS_FILES}/foo/bar.class
- def addArtifact(bytes: Array[Byte], target: String): Unit
Add a single in-memory artifact to the session while preserving the directory structure specified by
target
under the session's working directory of that particular file extension.Add a single in-memory artifact to the session while preserving the directory structure specified by
target
under the session's working directory of that particular file extension.Supported target file extensions are .jar and .class.
Example
addArtifact(bytesBar, "foo/bar.class") addArtifact(bytesFlat, "flat.class") // Directory structure of the session's working directory for class files would look like: // ${WORKING_DIR_FOR_CLASS_FILES}/flat.class // ${WORKING_DIR_FOR_CLASS_FILES}/foo/bar.class
- def addArtifact(uri: URI): Unit
Add a single artifact to the session.
Add a single artifact to the session.
Currently it supports local files with extensions .jar and .class and Apache Ivy URIs
- def addArtifact(path: String): Unit
Add a single artifact to the session.
Add a single artifact to the session.
Currently only local files with extensions .jar and .class are supported.
- def addArtifacts(uris: Seq[URI]): Unit
Add multiple artifacts to the session.
Add multiple artifacts to the session.
Currently it supports local files with extensions .jar and .class and Apache Ivy URIs
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def cacheArtifact(blob: Array[Byte]): String
Cache the give blob at the session.
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- def registerClassFinder(finder: ClassFinder): Unit
Register a ClassFinder for dynamically generated classes.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)