System.exit(0);
}
}
}
TransactionFactoryImple factory = OTSImpleManager.factory();
Control control = null;
// Run ten interations first.
for (int i = 0; i < 10; i++)
{
control = factory.create(0);
if (doCommit)
control.get_terminator().commit(true);
else
control.get_terminator().rollback();
}
// Record the start time.
Date startTime = new Date();
// Run 1000 interations.
for (int i = 0; i < iters; i++)
{
control = factory.create(0);
if (doCommit)
control.get_terminator().commit(true);
else
control.get_terminator().rollback();