@Override public void init() throws Exception { txManager.startAndWait(); }
@Override public void init() throws Exception { txManager.startAndWait(); }
public void startUp(File jarPath, String mainClassName, Map<String, String> runtimeArgs) throws Exception { txService.startAndWait(); metricsCollectionService.startAndWait(); addShutDownHook(); controller = deployClient.startFlow(jarPath, mainClassName, jarUnpackDir, runtimeArgs); runLatch.await(); }
@Override protected void doStart() { try { txManager = txManagerProvider.get(); txManager.startAndWait(); doRegister(); LOG.info("Transaction Thrift service started successfully on " + getAddress()); notifyStarted(); } catch (Throwable t) { LOG.info("Transaction Thrift service didn't start on " + getAddress()); notifyFailed(t); } }
@Override protected void doStart() { try { txManager = txManagerProvider.get(); txManager.startAndWait(); doRegister(); LOG.info("Transaction Thrift service started successfully on " + getAddress()); notifyStarted(); } catch (Throwable t) { LOG.info("Transaction Thrift service didn't start on " + getAddress()); notifyFailed(t); } }
@Override protected void configure() { TransactionManager txManager = new TransactionManager(conf); txManager.startAndWait(); bind(TransactionManager.class).toInstance(txManager); bind(TransactionSystemClient.class).to(DummyTxClient.class).in(Singleton.class); } }));
@Override protected void configure() { TransactionManager txManager = new TransactionManager(conf); txManager.startAndWait(); bind(TransactionManager.class).toInstance(txManager); bind(TransactionSystemClient.class).to(DummyTxClient.class).in(Singleton.class); } }));
@Before public void before() { conf.setInt(TxConstants.Manager.CFG_TX_CLEANUP_INTERVAL, 0); // no cleanup thread // todo should create two sets of tests, one with LocalFileTxStateStorage and one with InMemoryTxStateStorage txStateStorage = new InMemoryTransactionStateStorage(); txManager = new TransactionManager (conf, txStateStorage, new TxMetricsCollector()); txManager.startAndWait(); }
@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(); }
@BeforeClass public static void before() { txManager = new TransactionManager(conf, new InMemoryTransactionStateStorage(), new TxMetricsCollector()); txManager.startAndWait(); }
txManager.startAndWait(); txManager2.startAndWait();
TxConstants.Manager.DEFAULT_TX_LONG_TIMEOUT)); TransactionManager txm = new TransactionManager(conf, storage, new TxMetricsCollector()); txm.startAndWait(); try {
TransactionManager txManager = new TransactionManager (conf, storage1, new TxMetricsCollector()); txManager.startAndWait(); txManager.startAndWait();
txManager.startAndWait(); txManager.startAndWait();
txm.startAndWait(); try { Assert.assertEquals(0, txm.getInvalidSize());
txm.startAndWait(); try {
txm1.startAndWait(); txm2.startAndWait(); Assert.assertEquals(ImmutableList.of(tx5.getTransactionId(), tx6.getTransactionId()), txm2.getCurrentState().getInvalid());
txm.startAndWait(); try {
txm.startAndWait(); try {
txm1.startAndWait(); txm2.startAndWait(); Assert.assertEquals(ImmutableList.of(tx2.getTransactionId(), tx5.getTransactionId()), txm2.getCurrentState().getInvalid());