Skip to content

Commit

Permalink
#30 Rename ElasticSearch status name
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed Nov 20, 2017
1 parent b6c6b5c commit 012bfd4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions app/org/elastic4play/database/DBIndex.scala
Original file line number Diff line number Diff line change
Expand Up @@ -120,18 +120,18 @@ class DBIndex(
.recover { case _ 2 }
}

def clusterStatus = blocking {
def clusterStatus: Int = blocking {
getClusterStatus.await
}

def getClusterStatusName: Future[String] = getClusterStatus.map {
case 0 "green"
case 1 "yellow"
case 2 "red"
case _ "unknown"
case 0 "OK"
case 1 "WARNING"
case 2 "ERROR"
case _ "UNKNOWN"
}

def clusterStatusName = blocking {
def clusterStatusName: String = blocking {
getClusterStatusName.await
}
}

0 comments on commit 012bfd4

Please sign in to comment.