use of com.spotify.helios.servicescommon.coordination.DefaultZooKeeperClient in project helios by spotify.
the class TaskHistoryWriterTest method setUp.
@Before
public void setUp() throws Exception {
zk = new ZooKeeperTestingServerManager();
agentStateDirs = Files.createTempDirectory("helios-agents");
client = new DefaultZooKeeperClient(zk.curatorWithSuperAuth());
makeWriter(client);
final ZooKeeperClientProvider zkProvider = new ZooKeeperClientProvider(client, ZooKeeperModelReporter.noop());
final List<EventSender> eventSenders = Collections.emptyList();
masterModel = new ZooKeeperMasterModel(zkProvider, "test", eventSenders, TaskStatusEvent.TASK_STATUS_EVENT_TOPIC);
client.ensurePath(Paths.configJobs());
client.ensurePath(Paths.configJobRefs());
client.ensurePath(Paths.historyJobHostEvents(JOB_ID, HOSTNAME));
masterModel.registerHost(HOSTNAME, "foo");
masterModel.addJob(JOB);
}
use of com.spotify.helios.servicescommon.coordination.DefaultZooKeeperClient in project helios by spotify.
the class ZooKeeperRegistrarServiceUtilTest method setUp.
@Before
public void setUp() throws Exception {
testingServerManager = new ZooKeeperTestingServerManager();
testingServerManager.awaitUp(5, TimeUnit.SECONDS);
zkClient = new DefaultZooKeeperClient(testingServerManager.curatorWithSuperAuth());
}
Aggregations