Package com.arjuna.ats.arjuna.state

Examples of com.arjuna.ats.arjuna.state.InputObjectState


        Xid[] indoubt = null;

        try
        {
            ObjectStore objStore = TxControl.getStore();
            InputObjectState states = new InputObjectState();

            // only look in the JCA section of the object store

            if (objStore.allObjUids(ServerTransaction.getType(), states)
                    && (states.notempty()))
            {
                Stack values = new Stack();
                boolean finished = false;

                do
View Full Code Here


      }

  try
  {

      InputObjectState uids = new InputObjectState();
     
      // find the uids of all the contact items
      if (_objectStore.allObjUids(_typeName, uids))
      {
    Uid theUid = null;
View Full Code Here

      initialScan = true;
    }

    try
    {
      InputObjectState uids = new InputObjectState();

      // take a snapshot of the log

      if (_objectStore.allObjUids(_typeName, uids))
      {
        Uid theUid = new Uid(Uid.nullUid());

        boolean endOfUids = false;

        while (!endOfUids)
        {
          // extract a uid
          theUid.unpack(uids);

          if (theUid.equals(Uid.nullUid()))
            endOfUids = true;
          else
          {
            Uid newUid = new Uid(theUid);

            if (initialScan)
              _scanM.put(newUid, newUid);
            else
            {
              if (!_scanM.contains(newUid))
              {
                if (_scanN == null)
                  _scanN = new Hashtable();

                _scanN.put(newUid, newUid);
              }
              else
              // log is present in this iteration, so move it
              {
                if (tsLogger.arjLoggerI18N.isInfoEnabled())
                  tsLogger.arjLoggerI18N
                      .info(
                          "com.arjuna.ats.internal.arjuna.recovery.ExpiredTransactionScanner_4",
                          new Object[]
                          { newUid });

                try
                {
                  InputObjectState state = _objectStore
                      .read_committed(newUid, _typeName);

                  if (state != null) // just in case recovery
                            // kicked-in
                  {
View Full Code Here

      Vector matchingUidVector = new Vector();
      Vector matchingUidTypeVector = new Vector();

      try
      {
         InputObjectState types = new InputObjectState();

         // find all types
         if ( _objectStore.allTypes(types) )
         {
            String theTypeName = null;

            try
            {
               boolean endOfList = false;

               while ( !endOfList )
               {
                  // extract a type
                  theTypeName = types.unpackString();

                  if ( theTypeName.compareTo("") == 0 )
                  {
                     endOfList = true;
                  }
                  else
                  {
                     InputObjectState uids = new InputObjectState();

                     try
                     {
                        boolean endOfUids = false;
View Full Code Here

    public void updateTSMI()
    {
  boolean tsmis = false ;

  InputObjectState uids = new InputObjectState() ;
  Vector tsmiVector = new Vector() ;

  try
  {
      tsmis = _objStore.allObjUids( _typeName, uids ) ;
View Full Code Here

        Xid[] indoubt = null;

        try
        {
            ObjectStore objStore = TxControl.getStore();
            InputObjectState states = new InputObjectState();

            // only look in the JCA section of the object store

            if (objStore.allObjUids(SubordinateAtomicAction.getType(), states)
                    && (states.notempty()))
            {
                Stack values = new Stack();
                boolean finished = false;

                do
View Full Code Here

      initialScan = true;
    }

    try
    {
      InputObjectState uids = new InputObjectState();

      // take a snapshot of the log

      if (_objectStore.allObjUids(_typeName, uids))
      {
View Full Code Here

    return true;
  }

  public boolean moveEntry (Uid newUid) throws ObjectStoreException
  {
      InputObjectState state = _objectStore.read_committed(newUid, _typeName);
      boolean res = false;
     
      if (state != null) // just in case recovery
          // kicked-in
      {
View Full Code Here

   {
      // Transaction type
      boolean AtomicActions = false ;

      // uids per transaction type
      InputObjectState aa_uids = new InputObjectState() ;

      try
      {
    if (tsLogger.arjLoggerI18N.isDebugEnabled())
    {
View Full Code Here

          new Object[]{_timeFormat.format(oldestSurviving)});
      }

      try
      {
         InputObjectState uids = new InputObjectState() ;

         // find the uids of all the transaction status manager items
         if ( _objectStore.allObjUids(_itemTypeName, uids) )
         {
            Uid theUid = null;
View Full Code Here

TOP

Related Classes of com.arjuna.ats.arjuna.state.InputObjectState

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.