/** * Invoked by jsvc to initialize the program. */ public void init(String[] args) { if (conf == null) { conf = new ConfigurationFactory().get(); } }
/** * Invoked by jsvc to initialize the program. */ public void init(String[] args) { if (conf == null) { conf = new ConfigurationFactory().get(); } }
public BalanceBooks(int totalClients, int iterations) { this(totalClients, iterations, new ConfigurationFactory().get()); }
public BalanceBooks(int totalClients, int iterations) { this(totalClients, iterations, new ConfigurationFactory().get()); }
/** * Utility to be used for basic verification of transaction system availability and functioning * @param args arguments list, accepts single option "-v" that makes it to print out more details about started tx * @throws Exception */ public static void main(String[] args) throws Exception { if (args.length > 1 || (args.length == 1 && !"-v".equals(args[0]))) { System.out.println("USAGE: TransactionServiceClient [-v]"); } boolean verbose = false; if (args.length == 1 && "-v".equals(args[0])) { verbose = true; } doMain(verbose, new ConfigurationFactory().get()); }
/** * Utility to be used for basic verification of transaction system availability and functioning * @param args arguments list, accepts single option "-v" that makes it to print out more details about started tx * @throws Exception */ public static void main(String[] args) throws Exception { if (args.length > 1 || (args.length == 1 && !"-v".equals(args[0]))) { System.out.println("USAGE: TransactionServiceClient [-v]"); } boolean verbose = false; if (args.length == 1 && "-v".equals(args[0])) { verbose = true; } doMain(verbose, new ConfigurationFactory().get()); }
protected Configuration getSnapshotConfiguration() throws IOException { Configuration conf = new ConfigurationFactory().get(hConf); conf.unset(TxConstants.Persist.CFG_TX_SNAPHOT_CODEC_CLASSES); return conf; }
protected Configuration getSnapshotConfiguration() throws IOException { Configuration conf = new ConfigurationFactory().get(hConf); conf.unset(TxConstants.Persist.CFG_TX_SNAPHOT_CODEC_CLASSES); return conf; }
@Test public void testConfigurationProvider() { Configuration conf = new Configuration(); conf.set("foo", "bar"); Configuration newConf = new ConfigurationFactory().get(conf); assertNotNull(newConf); assertEquals("bar", newConf.get("foo")); } }
Configuration config = new ConfigurationFactory().get();
Configuration config = new ConfigurationFactory().get();
@Before public void setup() throws Exception { Configuration conf = new ConfigurationFactory().get(); conf.unset(TxConstants.Persist.CFG_TX_SNAPHOT_CODEC_CLASSES); txManager = new TransactionManager(conf); txManager.startAndWait(); }