Package net.jini.core.transaction.server

Examples of net.jini.core.transaction.server.TransactionManager$Created


  if (numRegs < 2) {
      throw new TestException( "Must have at least two registrations "
           + "to run this test");
  }

        TransactionManager mb = getTransactionManager();

  long[] durations = new long[numRegs];
  int i = 0;
  for (i = 0; i < numRegs; i++) {
      durations[i] = DURATION;
View Full Code Here


    protected TransactionManager getTransactionManager()
  throws java.io.IOException, TestException
    {
  specifyServices(new Class[]{TransactionManager.class});
  TransactionManager mb = (TransactionManager)services[0];

        if (mb == null)
            throw new TestException ("No TransactionManager service");
        logger.log(Level.INFO, "Got reference to TransactionManager: " + mb);
View Full Code Here

         *   to occur before initialization has completed.
         */
  logger.log(Level.INFO, "run()");
  final String serviceName = "net.jini.core.transaction.server.TransactionManageR";

        TransactionManager tm = getTransactionManager();
       
        // Kill transaction manager service.
        shutdown(0);
       
  try { Thread.sleep(10000); } catch (Exception e) {;}
View Full Code Here

    private final long DURATION = 1*MINUTES;

    public void run() throws Exception {
  logger.log(Level.INFO, "Starting up " + this.getClass().toString());

        TransactionManager mb = getTransactionManager();

  logger.log(Level.INFO, "Generating a transaction");
  Created txn = getCreated(mb, DURATION);

  logger.log(Level.INFO, "Checking lease");
View Full Code Here

     * @exception TestException
     *          If an exception has been thrown during TransactionManager
     *          creation or created TransactionManager is null.
     */
    public TransactionManager getTxnManager() throws TestException {
        TransactionManager mgr = null;

        try {
            String txnMgrName = getConfig().getStringConfigVal(pkgName + ".txnManager",
                    TransactionManager.class.getName());
            printTxnMgrInfo(txnMgrName);
View Full Code Here

TOP

Related Classes of net.jini.core.transaction.server.TransactionManager$Created

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.