Last active
December 11, 2015 10:38
-
-
Save ericacm/4588071 to your computer and use it in GitHub Desktop.
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
class ZookeeperService(hostInfo: HostInfo) | |
extends ClusterService with EmbeddedZookeeper { | |
def nodeId: String = hostInfo.hostname + ":" + hostInfo.basePort + 1 | |
@Value("${zookeeperService.client.enabled:false}") | |
var enabled: Boolean = _ | |
@Value("${zookeeperService.leaderPath:/ls}") | |
var leaderPath: String = _ | |
@Value("${zookeeperService.sessionTimeoutSec:30}") | |
var sessionTimeoutSec: Int = _ | |
@Value("${zookeeperService.connectionTimeoutSec:5}") | |
var connectionTimeoutSec: Int = _ | |
var curatorFramework: CuratorFramework = _ | |
var leaderLatch: LeaderLatch = _ | |
// ClusterService implementation | |
// ... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment