Package com.sun.sgs.impl.service.transaction

Examples of com.sun.sgs.impl.service.transaction.TransactionCoordinatorImpl


            IdentityCoordinator identityCoordinator =
                new IdentityCoordinatorImpl(authenticators);

            // initialize the transaction coordinator
            TransactionCoordinator transactionCoordinator =
                new TransactionCoordinatorImpl(appProperties,
                                               profileCollectorHandle);

      // possibly upgrade loggers to be transactional
      LogManager logManager = LogManager.getLogManager();
View Full Code Here


            IdentityCoordinator identityCoordinator =
                    createIdentityCoordinator();

            // initialize the transaction coordinator
            TransactionCoordinator transactionCoordinator =
                new TransactionCoordinatorImpl(appProperties,
                                               profileCollectorHandle);

      // possibly upgrade loggers to be transactional
      LogManager logManager = LogManager.getLogManager();
View Full Code Here

    /* -- Test TransactionCoordinatorImpl constructor -- */

    @Test
    public void testConstructorNullProperties() {
  try {
      new TransactionCoordinatorImpl(null, null);
      fail("Expected NullPointerException");
  } catch (NullPointerException e) {
      System.err.println(e);
  }
    }
View Full Code Here

    }
   
    @Test
    public void testConstructorNullCollector() {
  try {
      new TransactionCoordinatorImpl(coordinatorProps, null);
      fail("Expected NullPointerException");
  } catch (NullPointerException e) {
      System.err.println(e);
  }
    }
View Full Code Here

      createProperties(
    TransactionCoordinator.TXN_UNBOUNDED_TIMEOUT_PROPERTY, "-200")
  };
  for (Properties props : allProperties) {
      try {
    new TransactionCoordinatorImpl(props, collectorHandle);
    fail("Expected IllegalArgumentException");
      } catch (IllegalArgumentException e) {
    System.err.println(props + ": " + e);
      }
  }
View Full Code Here

  Properties p = new Properties();
  p.setProperty(TransactionCoordinator.TXN_TIMEOUT_PROPERTY, "5000");
  p.setProperty(TransactionCoordinator.TXN_UNBOUNDED_TIMEOUT_PROPERTY,
          "100000");
  TransactionCoordinator coordinator =
      new TransactionCoordinatorImpl(p, collectorHandle);
  Transaction txn = coordinator.createTransaction(
                coordinator.getDefaultTimeout()).getTransaction();
  assertTrue("Incorrect bounded Transaction timeout: " +
       txn.getTimeout(),
       txn.getTimeout() == 5000);
  txn = coordinator.createTransaction(
                ScheduledTask.UNBOUNDED).getTransaction();
  assertTrue("Incorrect unbounded Transaction timeout: " +
       txn.getTimeout(),
       txn.getTimeout() == 100000);
    }
View Full Code Here

            IdentityCoordinator identityCoordinator =
                    createIdentityCoordinator();

            // initialize the transaction coordinator
            TransactionCoordinator transactionCoordinator =
                new TransactionCoordinatorImpl(appProperties,
                                               profileCollectorHandle);

      // possibly upgrade loggers to be transactional
      LogManager logManager = LogManager.getLogManager();
View Full Code Here

            IdentityCoordinator identityCoordinator =
                    createIdentityCoordinator();

            // initialize the transaction coordinator
            TransactionCoordinator transactionCoordinator =
                new TransactionCoordinatorImpl(appProperties,
                                               profileCollectorHandle);

      // possibly upgrade loggers to be transactional
      LogManager logManager = LogManager.getLogManager();
View Full Code Here

TOP

Related Classes of com.sun.sgs.impl.service.transaction.TransactionCoordinatorImpl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.