Skip to content

Instantly share code, notes, and snippets.

@ericacm
Last active December 11, 2015 09:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ericacm/4581473 to your computer and use it in GitHub Desktop.
Save ericacm/4581473 to your computer and use it in GitHub Desktop.
Cluster Service
trait ClusterService {
def initialize()
def enabled: Boolean
def clusterStatus: ClusterStatus
def nodeId: String
}
case class ClusterStatus(
current: String,
isLeader: Boolean,
leader: String,
participants: Iterable[String])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment