@@ -148,6 +148,9 @@ class JavaStreamingContext(val ssc: StreamingContext) extends Closeable {
148
148
/** The underlying SparkContext */
149
149
val sparkContext = new JavaSparkContext (ssc.sc)
150
150
151
+ /**
152
+ * @deprecated As of 0.9.0, replaced by `sparkContext`
153
+ */
151
154
@ deprecated(" use sparkContext" , " 0.9.0" )
152
155
val sc : JavaSparkContext = sparkContext
153
156
@@ -619,6 +622,7 @@ class JavaStreamingContext(val ssc: StreamingContext) extends Closeable {
619
622
* Wait for the execution to stop. Any exceptions that occurs during the execution
620
623
* will be thrown in this thread.
621
624
* @param timeout time to wait in milliseconds
625
+ * @deprecated As of 1.3.0, replaced by `awaitTerminationOrTimeout(Long)`.
622
626
*/
623
627
@ deprecated(" Use awaitTerminationOrTimeout(Long) instead" , " 1.3.0" )
624
628
def awaitTermination (timeout : Long ): Unit = {
@@ -677,6 +681,7 @@ object JavaStreamingContext {
677
681
*
678
682
* @param checkpointPath Checkpoint directory used in an earlier JavaStreamingContext program
679
683
* @param factory JavaStreamingContextFactory object to create a new JavaStreamingContext
684
+ * @deprecated As of 1.4.0, replaced by `getOrCreate` without JavaStreamingContextFactor.
680
685
*/
681
686
@ deprecated(" use getOrCreate without JavaStreamingContextFactor" , " 1.4.0" )
682
687
def getOrCreate (
@@ -699,6 +704,7 @@ object JavaStreamingContext {
699
704
* @param factory JavaStreamingContextFactory object to create a new JavaStreamingContext
700
705
* @param hadoopConf Hadoop configuration if necessary for reading from any HDFS compatible
701
706
* file system
707
+ * @deprecated As of 1.4.0, replaced by `getOrCreate` without JavaStreamingContextFactor.
702
708
*/
703
709
@ deprecated(" use getOrCreate without JavaStreamingContextFactory" , " 1.4.0" )
704
710
def getOrCreate (
@@ -724,6 +730,7 @@ object JavaStreamingContext {
724
730
* file system
725
731
* @param createOnError Whether to create a new JavaStreamingContext if there is an
726
732
* error in reading checkpoint data.
733
+ * @deprecated As of 1.4.0, replaced by `getOrCreate` without JavaStreamingContextFactor.
727
734
*/
728
735
@ deprecated(" use getOrCreate without JavaStreamingContextFactory" , " 1.4.0" )
729
736
def getOrCreate (
0 commit comments