-
Notifications
You must be signed in to change notification settings - Fork 200
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changes for SNAP-2603: Display list of Global Temporary Views/Tables …
…with relevant details on Snappy UI. - Adding resource named AllGlobalTemporaryViewsResource.scala for getting global temporary details. - Adding resource path "allglobaltempviews" - Updating Snappy Dashboard HTML page for displaying list of all global temporary views/tables. - Updated getStatsFromAllServers to fetch and return the global temporary views details. - Relevant code changes in TableStatsProviderService, SnappyTableStatsProviderService and SnappyThinConnectorTableStatsProvider.
- Loading branch information
1 parent
5d53b94
commit ff14fe9
Showing
9 changed files
with
195 additions
and
21 deletions.
There are no files selected for viewing
31 changes: 31 additions & 0 deletions
31
cluster/src/main/scala/org/apache/spark/status/api/v1/AllGlobalTemporaryViewsResource.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* | ||
* Changes for SnappyData data platform. | ||
* | ||
* Portions Copyright (c) 2018 SnappyData, Inc. All rights reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); you | ||
* may not use this file except in compliance with the License. You | ||
* may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or | ||
* implied. See the License for the specific language governing | ||
* permissions and limitations under the License. See accompanying | ||
* LICENSE file. | ||
*/ | ||
package org.apache.spark.status.api.v1 | ||
|
||
import javax.ws.rs.{GET, Produces} | ||
import javax.ws.rs.core.MediaType | ||
|
||
@Produces(Array(MediaType.APPLICATION_JSON)) | ||
private[v1] class AllGlobalTemporaryViewsResource { | ||
@GET | ||
def viewsList(): Seq[GlobalTemporaryViewSummary] = { | ||
// get all view stats details | ||
TableDetails.getAllGlobalTempViewsInfo | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.