Packages

c

org.apache.spark.repl

ExecutorClassLoader

class ExecutorClassLoader extends ClassLoader with Logging

A ClassLoader that reads classes from a Hadoop FileSystem or Spark RPC endpoint, used to load classes defined by the interpreter when the REPL is used. Allows the user to specify if user class path should be first. This class loader delegates getting/finding resources to parent loader, which makes sense because the REPL never produce resources dynamically. One exception is when getting a Class file as resource stream, in which case we will try to fetch the Class file in the same way as loading the class, so that dynamically generated Classes from the REPL can be picked up.

Note: ClassLoader will preferentially load class from parent. Only when parent is null or the load failed, that it will call the overridden findClass function. To avoid the potential issue caused by loading class using inappropriate class loader, we should set the parent of ClassLoader to null, so that we can fully control which class loader is used. For detailed discussion, see SPARK-18646.

Linear Supertypes
Logging, ClassLoader, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ExecutorClassLoader
  2. Logging
  3. ClassLoader
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ExecutorClassLoader(conf: SparkConf, env: SparkEnv, classUri: String, parent: ClassLoader, userClassPathFirst: Boolean)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clearAssertionStatus(): Unit
    Definition Classes
    ClassLoader
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  7. final def defineClass(arg0: String, arg1: ByteBuffer, arg2: ProtectionDomain): Class[_]
    Attributes
    protected[lang]
    Definition Classes
    ClassLoader
    Annotations
    @throws( classOf[java.lang.ClassFormatError] )
  8. final def defineClass(arg0: String, arg1: Array[Byte], arg2: Int, arg3: Int, arg4: ProtectionDomain): Class[_]
    Attributes
    protected[lang]
    Definition Classes
    ClassLoader
    Annotations
    @throws( classOf[java.lang.ClassFormatError] )
  9. final def defineClass(arg0: String, arg1: Array[Byte], arg2: Int, arg3: Int): Class[_]
    Attributes
    protected[lang]
    Definition Classes
    ClassLoader
    Annotations
    @throws( classOf[java.lang.ClassFormatError] )
  10. def definePackage(arg0: String, arg1: String, arg2: String, arg3: String, arg4: String, arg5: String, arg6: String, arg7: URL): Package
    Attributes
    protected[lang]
    Definition Classes
    ClassLoader
  11. val directory: String
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  14. def findClass(name: String): Class[_]
    Definition Classes
    ExecutorClassLoader → ClassLoader
  15. def findClass(arg0: String, arg1: String): Class[_]
    Attributes
    protected[lang]
    Definition Classes
    ClassLoader
  16. def findClassLocally(name: String): Option[Class[_]]
  17. def findLibrary(arg0: String): String
    Attributes
    protected[lang]
    Definition Classes
    ClassLoader
  18. final def findLoadedClass(arg0: String): Class[_]
    Attributes
    protected[lang]
    Definition Classes
    ClassLoader
  19. def findResource(arg0: String): URL
    Attributes
    protected[lang]
    Definition Classes
    ClassLoader
  20. def findResource(arg0: String, arg1: String): URL
    Attributes
    protected[lang]
    Definition Classes
    ClassLoader
    Annotations
    @throws( classOf[java.io.IOException] )
  21. def findResources(arg0: String): Enumeration[URL]
    Attributes
    protected[lang]
    Definition Classes
    ClassLoader
    Annotations
    @throws( classOf[java.io.IOException] )
  22. final def findSystemClass(arg0: String): Class[_]
    Attributes
    protected[lang]
    Definition Classes
    ClassLoader
    Annotations
    @throws( ... )
  23. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  24. def getClassLoadingLock(arg0: String): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    ClassLoader
  25. final def getDefinedPackage(arg0: String): Package
    Definition Classes
    ClassLoader
  26. final def getDefinedPackages(): Array[Package]
    Definition Classes
    ClassLoader
  27. def getName(): String
    Definition Classes
    ClassLoader
  28. def getPackages(): Array[Package]
    Attributes
    protected[lang]
    Definition Classes
    ClassLoader
  29. final def getParent(): ClassLoader
    Definition Classes
    ClassLoader
    Annotations
    @CallerSensitive()
  30. def getResource(name: String): URL
    Definition Classes
    ExecutorClassLoader → ClassLoader
  31. def getResourceAsStream(name: String): InputStream
    Definition Classes
    ExecutorClassLoader → ClassLoader
  32. def getResources(name: String): Enumeration[URL]
    Definition Classes
    ExecutorClassLoader → ClassLoader
  33. final def getUnnamedModule(): Module
    Definition Classes
    ClassLoader
  34. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  35. def initializeLogIfNecessary(isInterpreter: Boolean, silent: Boolean): Boolean
    Attributes
    protected
    Definition Classes
    Logging
  36. def initializeLogIfNecessary(isInterpreter: Boolean): Unit
    Attributes
    protected
    Definition Classes
    Logging
  37. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  38. final def isRegisteredAsParallelCapable(): Boolean
    Definition Classes
    ClassLoader
  39. def isTraceEnabled(): Boolean
    Attributes
    protected
    Definition Classes
    Logging
  40. def loadClass(arg0: String, arg1: Boolean): Class[_]
    Attributes
    protected[lang]
    Definition Classes
    ClassLoader
    Annotations
    @throws( ... )
  41. def loadClass(arg0: String): Class[_]
    Definition Classes
    ClassLoader
    Annotations
    @throws( ... )
  42. def log: Logger
    Attributes
    protected
    Definition Classes
    Logging
  43. def logDebug(msg: ⇒ String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  44. def logDebug(msg: ⇒ String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  45. def logError(msg: ⇒ String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  46. def logError(msg: ⇒ String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  47. def logInfo(msg: ⇒ String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  48. def logInfo(msg: ⇒ String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  49. def logName: String
    Attributes
    protected
    Definition Classes
    Logging
  50. def logTrace(msg: ⇒ String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  51. def logTrace(msg: ⇒ String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  52. def logWarning(msg: ⇒ String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  53. def logWarning(msg: ⇒ String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  54. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  55. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  56. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  57. val parentLoader: ParentClassLoader
  58. def readAndTransformClass(name: String, in: InputStream): Array[Byte]
  59. final def resolveClass(arg0: Class[_]): Unit
    Attributes
    protected[lang]
    Definition Classes
    ClassLoader
  60. def resources(arg0: String): Stream[URL]
    Definition Classes
    ClassLoader
  61. def setClassAssertionStatus(arg0: String, arg1: Boolean): Unit
    Definition Classes
    ClassLoader
  62. def setDefaultAssertionStatus(arg0: Boolean): Unit
    Definition Classes
    ClassLoader
  63. def setPackageAssertionStatus(arg0: String, arg1: Boolean): Unit
    Definition Classes
    ClassLoader
  64. final def setSigners(arg0: Class[_], arg1: Array[AnyRef]): Unit
    Attributes
    protected[lang]
    Definition Classes
    ClassLoader
  65. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  66. def toString(): String
    Definition Classes
    AnyRef → Any
  67. val uri: URI
  68. def urlEncode(str: String): String

    URL-encode a string, preserving only slashes

  69. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  70. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  71. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. final def defineClass(arg0: Array[Byte], arg1: Int, arg2: Int): Class[_]
    Attributes
    protected[lang]
    Definition Classes
    ClassLoader
    Annotations
    @throws( classOf[java.lang.ClassFormatError] ) @Deprecated
    Deprecated
  2. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated
  3. def getPackage(arg0: String): Package
    Attributes
    protected[lang]
    Definition Classes
    ClassLoader
    Annotations
    @Deprecated
    Deprecated

Inherited from Logging

Inherited from ClassLoader

Inherited from AnyRef

Inherited from Any

Ungrouped