Skip to content
Snippets Groups Projects
Commit 93838e6c authored by Leonardo Menezes's avatar Leonardo Menezes
Browse files

removed unnecessary call from overview data service

parent 282ac1f4
No related branches found
No related tags found
No related merge requests found
......@@ -20,8 +20,7 @@ class OverviewDataService @Inject()(client: ElasticClient) {
"_cluster/settings",
"_aliases",
"_cluster/health",
s"_nodes/_all/os,jvm?human=true",
""
s"_nodes/_all/os,jvm?human=true"
)
val start = System.currentTimeMillis()
......@@ -39,8 +38,7 @@ class OverviewDataService @Inject()(client: ElasticClient) {
responses(3).body,
responses(4).body,
responses(5).body,
responses(6).body,
responses(7).body
responses(6).body
)
println(s"Requesting took [${end - start}]")
overview
......
......@@ -4,7 +4,7 @@ import play.api.libs.json.Json
object ClusterInitializingShards {
def apply() = ClusterOverview(clusterState, nodesStats, indicesStats, clusterSettings, aliases, clusterHealth, nodes, main)
def apply() = ClusterOverview(clusterState, nodesStats, indicesStats, clusterSettings, aliases, clusterHealth, nodes)
val clusterState = Json.parse(
"""
......@@ -701,21 +701,4 @@ object ClusterInitializingShards {
""".stripMargin
)
val main = Json.parse(
"""
|{
| "name" : "Cecilia Reyes",
| "cluster_name" : "elasticsearch",
| "version" : {
| "number" : "2.1.0",
| "build_hash" : "72cd1f1a3eee09505e036106146dc1949dc5dc87",
| "build_timestamp" : "2015-11-18T22:40:03Z",
| "build_snapshot" : false,
| "lucene_version" : "5.3.1"
| },
| "tagline" : "You Know, for Search"
|}
""".stripMargin
)
}
......@@ -4,7 +4,7 @@ import play.api.libs.json.JsValue
trait ClusterStub {
def apply() = ClusterOverview(clusterState, nodesStats, indicesStats, clusterSettings, aliases, clusterHealth, nodes, main)
def apply() = ClusterOverview(clusterState, nodesStats, indicesStats, clusterSettings, aliases, clusterHealth, nodes)
val clusterState: JsValue
......@@ -20,6 +20,4 @@ trait ClusterStub {
val nodes: JsValue
val main: JsValue
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment