File tree 3 files changed +50
-10
lines changed
streaming/src/main/scala/org/apache/spark/streaming/ui
3 files changed +50
-10
lines changed Original file line number Diff line number Diff line change @@ -23,10 +23,10 @@ import javax.servlet.http.HttpServletRequest
23
23
import scala .xml .Node
24
24
25
25
import org .apache .spark .Logging
26
- import org .apache .spark .streaming .StreamingContext
27
26
import org .apache .spark .ui ._
28
27
import org .apache .spark .util .Distribution
29
28
29
+ /** Page for Spark Web UI that shows statistics of a streaming job */
30
30
private [ui] class StreamingPage (parent : StreamingTab )
31
31
extends UIPage (" " ) with Logging {
32
32
@@ -287,12 +287,3 @@ private[ui] class StreamingPage(parent: StreamingTab)
287
287
}
288
288
}
289
289
290
- private [spark] class StreamingTab (val ssc : StreamingContext )
291
- extends UITab (" streaming" ) with Logging {
292
-
293
- val streamingPage = new StreamingPage (this )
294
- ssc.sc.ui.attachTab(this )
295
-
296
- /** Initialize listener and attach pages. */
297
- def start () { }
298
- }
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Licensed to the Apache Software Foundation (ASF) under one or more
3
+ * contributor license agreements. See the NOTICE file distributed with
4
+ * this work for additional information regarding copyright ownership.
5
+ * The ASF licenses this file to You under the Apache License, Version 2.0
6
+ * (the "License"); you may not use this file except in compliance with
7
+ * the License. You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+
1
18
package org .apache .spark .streaming .ui
2
19
3
20
import org .apache .spark .streaming .{Time , StreamingContext }
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Licensed to the Apache Software Foundation (ASF) under one or more
3
+ * contributor license agreements. See the NOTICE file distributed with
4
+ * this work for additional information regarding copyright ownership.
5
+ * The ASF licenses this file to You under the Apache License, Version 2.0
6
+ * (the "License"); you may not use this file except in compliance with
7
+ * the License. You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+
18
+ package org .apache .spark .streaming .ui
19
+
20
+ import org .apache .spark .streaming .StreamingContext
21
+ import org .apache .spark .ui .UITab
22
+ import org .apache .spark .Logging
23
+
24
+ /** Spark Web UI tab that shows statistics of a streaming job */
25
+ private [spark] class StreamingTab (val ssc : StreamingContext )
26
+ extends UITab (" streaming" ) with Logging {
27
+
28
+ val streamingPage = new StreamingPage (this )
29
+ ssc.sc.ui.attachTab(this )
30
+
31
+ def start () { }
32
+ }
You can’t perform that action at this time.
0 commit comments