in scala-repl/src/main/scala/spark/ztools.sc [860:872]
override def accept(obj: Any): Boolean = obj.isInstanceOf[SparkContext]
override def handle(scalaInfo: ScalaVariableInfo, loopback: Loopback, depth: Int): mutable.Map[String, Any] = withJsonObject {
json =>
val sc = scalaInfo.value.asInstanceOf[SparkContext]
json += (ResNames.VALUE -> withJsonObject { json =>
json += ("sparkUser" -> wrap(sc.sparkUser, "String"))
json += ("sparkTime" -> wrap(sc.startTime, "Long"))
json += ("applicationId()" -> wrap(sc.applicationId, "String"))
json += ("applicationAttemptId()" -> wrap(sc.applicationAttemptId.toString, "Option[String]"))
json += ("appName()" -> sc.appName)
})
}