this.pluginRegistry = pluginRegistry;
}
@PostConstruct
public void start() throws LeaderElectionSetupException, IOException, InterruptedException, KeeperException {
leaderElection = new LeaderElection(zk, "Repository Master", "/lily/repositorymodel/masters",
new MyLeaderElectionCallback());
if (pluginRegistry != null) {
pluginRegistry.setPluginUser(RepositoryMasterHook.class, this);
}