{
broker = new FakeMasterBroker( machineId, placeHolderGraphDb );
}
else
{
broker = new FakeSlaveBroker( new MasterClient( "localhost",
Protocol.PORT, placeHolderGraphDb ), masterId, machineId, placeHolderGraphDb );
}
HighlyAvailableGraphDatabase db = new HighlyAvailableGraphDatabase( storeDir, config,
AbstractHaTest.wrapBrokerAndSetPlaceHolderDb( placeHolderGraphDb, broker ) );
placeHolderGraphDb.setDb( db );