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()
  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
    Annotations
    @throws( ... )
  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 finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. def findClass(name: String): Class[_]
    Definition Classes
    ExecutorClassLoader → 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 findResources(arg0: String): Enumeration[URL]
    Attributes
    protected[lang]
    Definition Classes
    ClassLoader
    Annotations
    @throws( classOf[java.io.IOException] )
  21. final def findSystemClass(arg0: String): Class[_]
    Attributes
    protected[lang]
    Definition Classes
    ClassLoader
    Annotations
    @throws( ... )
  22. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  23. def getClassLoadingLock(arg0: String): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    ClassLoader
  24. def getPackage(arg0: String): Package
    Attributes
    protected[lang]
    Definition Classes
    ClassLoader
  25. def getPackages(): Array[Package]
    Attributes
    protected[lang]
    Definition Classes
    ClassLoader
  26. final def getParent(): ClassLoader
    Definition Classes
    ClassLoader
    Annotations
    @CallerSensitive()
  27. def getResource(name: String): URL
    Definition Classes
    ExecutorClassLoader → ClassLoader
  28. def getResourceAsStream(name: String): InputStream
    Definition Classes
    ExecutorClassLoader → ClassLoader
  29. def getResources(name: String): Enumeration[URL]
    Definition Classes
    ExecutorClassLoader → ClassLoader
  30. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  31. def initializeLogIfNecessary(isInterpreter: Boolean, silent: Boolean): Boolean
    Attributes
    protected
    Definition Classes
    Logging
  32. def initializeLogIfNecessary(isInterpreter: Boolean): Unit
    Attributes
    protected
    Definition Classes
    Logging
  33. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  34. def isTraceEnabled(): Boolean
    Attributes
    protected
    Definition Classes
    Logging
  35. def loadClass(arg0: String, arg1: Boolean): Class[_]
    Attributes
    protected[lang]
    Definition Classes
    ClassLoader
    Annotations
    @throws( ... )
  36. def loadClass(arg0: String): Class[_]
    Definition Classes
    ClassLoader
    Annotations
    @throws( ... )
  37. def log: Logger
    Attributes
    protected
    Definition Classes
    Logging
  38. def logDebug(msg: ⇒ String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  39. def logDebug(msg: ⇒ String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  40. def logError(msg: ⇒ String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  41. def logError(msg: ⇒ String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  42. def logInfo(msg: ⇒ String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  43. def logInfo(msg: ⇒ String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  44. def logName: String
    Attributes
    protected
    Definition Classes
    Logging
  45. def logTrace(msg: ⇒ String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  46. def logTrace(msg: ⇒ String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  47. def logWarning(msg: ⇒ String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  48. def logWarning(msg: ⇒ String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  49. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  50. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  51. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  52. val parentLoader: ParentClassLoader
  53. def readAndTransformClass(name: String, in: InputStream): Array[Byte]
  54. final def resolveClass(arg0: Class[_]): Unit
    Attributes
    protected[lang]
    Definition Classes
    ClassLoader
  55. def setClassAssertionStatus(arg0: String, arg1: Boolean): Unit
    Definition Classes
    ClassLoader
  56. def setDefaultAssertionStatus(arg0: Boolean): Unit
    Definition Classes
    ClassLoader
  57. def setPackageAssertionStatus(arg0: String, arg1: Boolean): Unit
    Definition Classes
    ClassLoader
  58. final def setSigners(arg0: Class[_], arg1: Array[AnyRef]): Unit
    Attributes
    protected[lang]
    Definition Classes
    ClassLoader
  59. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  60. def toString(): String
    Definition Classes
    AnyRef → Any
  61. val uri: URI
  62. def urlEncode(str: String): String

    URL-encode a string, preserving only slashes

  63. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  64. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  65. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

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
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from Logging

Inherited from ClassLoader

Inherited from AnyRef

Inherited from Any

Ungrouped