use of org.neo4j.kernel.ha.MasterImpl in project graphdb by neo4j-attic.
the class SingleJvmTest method startUpMaster.
@Override
protected void startUpMaster(Map<String, String> extraConfig) throws Exception {
int masterId = 0;
Map<String, String> config = MapUtil.stringMap(extraConfig, HighlyAvailableGraphDatabase.CONFIG_KEY_HA_MACHINE_ID, String.valueOf(masterId));
String path = dbPath(0).getAbsolutePath();
PlaceHolderGraphDatabaseService placeHolderDb = new PlaceHolderGraphDatabaseService(path);
Broker broker = makeMasterBroker(master, masterId, placeHolderDb);
HighlyAvailableGraphDatabase db = new HighlyAvailableGraphDatabase(path, config, wrapBrokerAndSetPlaceHolderDb(placeHolderDb, broker));
placeHolderDb.setDb(db);
// db.newMaster( null, new Exception() );
master = new MasterImpl(db);
}
Aggregations