Package org.jboss.jbossts.qa.ArjunaCore.AbstractRecord.impl

Examples of org.jboss.jbossts.qa.ArjunaCore.AbstractRecord.impl.Service01


    {
      setNumberOfCalls(3);
      setNumberOfResources(2);
      getClientThreshold(1);

      Service01 mService = new Service01(mNumberOfResources);
      startTx();
      mService.setupOper(true);
      mService.doWork(mMaxIteration);
      commit();

      //lets go to sleep to see if this helps the vm clean itself up
      qautil.sleep();

      //get first memory reading.
      getFirstReading();

      mService = new Service01(mNumberOfResources);
      startTx();
      mService.setupOper(true);
      mService.doWork(mMaxIteration);
      abort();

      //lets go to sleep to see if this helps the vm clean itself up
      qautil.sleep();
View Full Code Here


    try
    {
      setNumberOfCalls(2);
      setNumberOfResources(1);

      Service01 mService = new Service01(mNumberOfResources);
      startTx();
      mService.setupOper(true);
      mService.doWork(mMaxIteration);
      commit();
      mCorrect = mService.checkCommitOper();

      mService = new Service01(mNumberOfResources);
      startTx();
      mService.setupOper(true);
      mService.doWork(mMaxIteration);
      abort();

      //check final values
      mCorrect = mCorrect && mService.checkAbortOper();

      qaAssert(mCorrect);
    }
    catch (Exception e)
    {
View Full Code Here

  public Worker002(int iterations, int resources, int id)
  {
    mMaxIteration = iterations;
    mNumberOfResources = resources;

    mService = new Service01(mNumberOfResources);
    mId = id;
  }
View Full Code Here

      a.begin();
      mService.setupOper(true);
      mService.doWork(mMaxIteration);
      a.commit();

      mService = new Service01(mNumberOfResources);
      //start new AtomicAction
      AtomicAction b = new AtomicAction();
      b.begin();
      mService.setupOper(true);
      mService.doWork(mMaxIteration);
View Full Code Here

      {
        mAbstractRecordList[i] = new BasicAbstractRecord();
      }

      //create container
      Service01 mService = new Service01(mNumberOfResources);

      startTx();
      mService.setupOper();
      mService.doWork(mMaxIteration);
      //comit transaction
      commit();

      //lets go to sleep to see if this helps the vm clean itself up
      qautil.sleep();

      //get first memory reading.
      getFirstReading();

      mService = new Service01(mNumberOfResources);

      //start new AtomicAction
      startTx();
      mService.setupOper();
      mService.doWork(mMaxIteration);
      //abort transaction
      abort();

      //lets go to sleep to see if this helps the vm clean itself up
      qautil.sleep();
View Full Code Here

  public Worker001(int iterations, int resources, int id)
  {
    mMaxIteration = iterations;
    mNumberOfResources = resources;

    mService = new Service01(mNumberOfResources);
    mId = id;
  }
View Full Code Here

      mService.setupOper();
      mService.doWork(mMaxIteration);
      //comit transaction
      a.commit();

      mService = new Service01(mNumberOfResources);
      //start new AtomicAction
      AtomicAction b = new AtomicAction();
      b.begin();
      mService.setupOper();
      mService.doWork(mMaxIteration);
View Full Code Here

    {
      setNumberOfCalls(2);
      setNumberOfResources(1);

      //create container
      Service01 mService = new Service01(mNumberOfResources);

      startTx();
      mService.setupOper();
      mService.doWork(mMaxIteration);
      //comit transaction
      commit();
      mCorrect = mService.checkCommitOper();

      mService = new Service01(mNumberOfResources);

      //start new AtomicAction
      startTx();
      mService.setupOper();
      mService.doWork(mMaxIteration);
      //abort transaction
      abort();
      //check final values
      mCorrect = mCorrect && mService.checkAbortOper();

      qaAssert(mCorrect);
    }
    catch (Exception e)
    {
View Full Code Here

    {
      setNumberOfCalls(3);
      setNumberOfResources(2);
      setUniquePrefix(1);

      Service01 mService = new Service01(mNumberOfResources);

      startTx();
      mService.setupOper();
      mService.doWork(mMaxIteration);
      //comit transaction
      commit();

      mService.storeUIDs(getUniquePrefix());

      qaAssert(mCorrect);
    }
    catch (Exception e)
    {
View Full Code Here

    {
      setNumberOfCalls(3);
      setNumberOfResources(2);
      setUniquePrefix(1);

      Service01 mService = new Service01(mNumberOfResources);
      //restore objects from uid's
      mService.restoreUIDs(getUniquePrefix());
      //check if objects and final values have been restored.
      mCorrect = mService.checkRestore();

      mService.clearUIDs(getUniquePrefix());

      qaAssert(mCorrect);
    }
    catch (Exception e)
    {
View Full Code Here

TOP

Related Classes of org.jboss.jbossts.qa.ArjunaCore.AbstractRecord.impl.Service01

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.