Examples of OutputObjectState


Examples of com.arjuna.ats.arjuna.state.OutputObjectState

            assertNotNull(prs.getStoreName());

            // write a log record to the object store
            // create a record that by default the tooling does not expose
            byte[] data = new byte[10240];
            OutputObjectState state = new OutputObjectState();
            Uid uid = new Uid();
            state.packBytes(data);
            assertTrue(prs.write_committed(uid, FOO_TYPE, state));

            // probe the log store
            cli.sendLine("/subsystem=transactions/log-store=log-store:write-attribute(name=expose-all-logs,value=false)");
            cli.sendLine("/subsystem=transactions/log-store=log-store:probe()");
View Full Code Here

Examples of com.arjuna.ats.arjuna.state.OutputObjectState

     * recovery is managed by an XTS recovery module
     * @return
     * @throws Exception
     */
    public byte[] getRecoveryState() throws Exception {
        OutputObjectState oos = new OutputObjectState();
        oos.packString(this.getClass().getName());
        this.saveState(oos);
        return oos.buffer();
    }
View Full Code Here

Examples of com.arjuna.ats.arjuna.state.OutputObjectState

     *
     * @param participantRecoveryRecord
     */
    public boolean writeParticipantRecoveryRecord(ATParticipantRecoveryRecord participantRecoveryRecord)
    {
        OutputObjectState oos = new OutputObjectState();
        // we need to be able to retrieve the class of the participant record so we can
        // create an instancde to load the rest of the participant specific data
        try {
            oos.packString(participantRecoveryRecord.getClass().getCanonicalName());
        } catch (IOException ioe) {
            if (XTSLogger.arjLoggerI18N.isWarnEnabled())
            {
                XTSLogger.arjLoggerI18N.warn("org.jboss.transactions.xts.recovery.participant.at.XTSATRecoveryModule_1",
                        new Object[] {participantRecoveryRecord.getId()}, ioe);
View Full Code Here

Examples of com.arjuna.ats.arjuna.state.OutputObjectState

     * recovery is managed by an XTS recovery module
     * @return
     * @throws Exception
     */
    public byte[] getRecoveryState() throws Exception {
        OutputObjectState oos = new OutputObjectState();
        oos.packString(this.getClass().getName());
        this.saveState(oos);
        return oos.buffer();
    }
View Full Code Here

Examples of com.arjuna.ats.arjuna.state.OutputObjectState

     * allObjUids - Given a type name, return an ObjectState that contains all
   * of the uids of objects of that type.
   */
    public boolean allObjUids(String typeName, InputObjectState buff, int m) throws ObjectStoreException
    {
        OutputObjectState store = new OutputObjectState();

        if (typeName.endsWith(TX_TYPE_WS) || typeName.endsWith(TX_TYPE))
        {
            try
            {
//                Set<Uid> uids = TransactionImple.getTransactions().keySet();
                Set<Uid> uids = transactionLister.getTransactions().keySet();

                for (Uid uid : uids)
                    uid.pack(store);
            }
            catch (IOException e)
            {
                return false;
            }
        }

        try
        {
            Uid.nullUid().pack(store);
        }
        catch (IOException e)
        {
            throw new ObjectStoreException("allObjUids - could not pack end of list Uid.");
        }

        buff.setBuffer(store.buffer());

        return true;
    }
View Full Code Here

Examples of com.arjuna.ats.arjuna.state.OutputObjectState

    public boolean allTypes(InputObjectState buff) throws ObjectStoreException
    {
        try
        {
            OutputObjectState store = new OutputObjectState();
            store.packString("Transaction");
            store.packString("");

            buff.setBuffer(store.buffer());

            return true;
        }
        catch (IOException e)
        {
View Full Code Here

Examples of com.arjuna.ats.arjuna.state.OutputObjectState

public class LogMoveTest
{
    public static void main (String[] args)
    {
        ObjectStore os = TxControl.getStore();
        OutputObjectState fluff = new OutputObjectState();
        Uid kungfuTx = new Uid();
        boolean outcome = false;
        final String tn = new AtomicAction().type();

        try
View Full Code Here

Examples of com.arjuna.ats.arjuna.state.OutputObjectState

    {
  boolean ret_status = false ;
 
  try
      {
    OutputObjectState objstate = new OutputObjectState();
   
    if ( save_state(objstate) )
        {
      ret_status = getStore().write_committed ( _pidUid,
                  _typeName,
View Full Code Here

Examples of com.arjuna.ats.arjuna.state.OutputObjectState

                            // kicked-in
                  {
                    boolean moved = _objectStore
                        .write_committed(newUid,
                            _movedTypeName,
                            new OutputObjectState(
                                state));

                    if (!moved)
                    {
                      tsLogger.arjLoggerI18N
View Full Code Here

Examples of com.arjuna.ats.arjuna.state.OutputObjectState

     * recovery is managed by an XTS recovery module
     * @return
     * @throws Exception
     */
    public byte[] getRecoveryState() throws Exception {
        OutputObjectState oos = new OutputObjectState();
        oos.packString(this.getClass().getName());
        this.saveState(oos);
        return oos.buffer();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.