Package com.arjuna.ats.arjuna.recovery

Examples of com.arjuna.ats.arjuna.recovery.RecoveryManager


   * routine will fail, but on the next scan it should work.
   */

  private final XAResource getNewXAResource()
  {
    RecoveryManager recMan = RecoveryManager.manager();
    Vector recoveryModules = recMan.getModules();

    System.err.println("**recoveryModules "+recoveryModules);

    if (recoveryModules != null)
    {
View Full Code Here


   * routine will fail, but on the next scan it should work.
   */

  private final XAResource getNewXAResource()
  {
    RecoveryManager recMan = RecoveryManager.manager();
    Vector recoveryModules = recMan.getModules();

    if (recoveryModules != null)
    {
      Enumeration modules = recoveryModules.elements();

View Full Code Here

        return this;
    }

    private void addDeserializerAndOrphanFilter() {
        final RecoveryManager recoveryManager = RecoveryManager.manager();

        for (RecoveryModule recoveryModule : recoveryManager.getModules()) {
            if (recoveryModule instanceof XARecoveryModule) {
                orphanFilter = new InboundBridgeOrphanFilter();
                ((XARecoveryModule) recoveryModule).addXAResourceOrphanFilter(orphanFilter);
                ((XARecoveryModule) recoveryModule).addSerializableXAResourceDeserializer(new InboundBridge());
            }
View Full Code Here

    private void removeOrphanFilter() {
        if (orphanFilter == null) {
            return;
        }

        final RecoveryManager recoveryManager = RecoveryManager.manager();

        for (RecoveryModule recoveryModule : recoveryManager.getModules()) {
            if (recoveryModule instanceof XARecoveryModule) {
                ((XARecoveryModule) recoveryModule).removeXAResourceOrphanFilter(orphanFilter);
            }
        }
    }
View Full Code Here

            }
        }
    }

    private void addRecoveryModule() {
        final RecoveryManager recoveryManager = RecoveryManager.manager();

        recoveryModule = new InboundBridgeRecoveryModule();
        recoveryManager.addModule(recoveryModule);
    }
View Full Code Here

    private void removeRecoveryModule() {
        if (recoveryModule == null) {
            return;
        }

        final RecoveryManager recoveryManager = RecoveryManager.manager();

        recoveryManager.removeModule(recoveryModule, false);
    }
View Full Code Here

    public static void main (String[] args)
    {
  System.setProperty("com.arjuna.ats.jta.xaRecoveryNode", "1");
  System.setProperty("XAResourceRecovery1", "com.hp.mwtests.ts.jta.recovery.DummyXARecoveryResource");

  RecoveryManager manager = RecoveryManager.manager(RecoveryManager.DIRECT_MANAGEMENT);

  manager.scan();
  manager.scan();
    }
View Full Code Here

   * routine will fail, but on the next scan it should work.
   */

  private final XAResource getNewXAResource()
  {
    RecoveryManager recMan = RecoveryManager.manager();
    Vector recoveryModules = recMan.getModules();

    if (recoveryModules != null)
    {
      Enumeration modules = recoveryModules.elements();

View Full Code Here

    /*
     * Now have a log that hasn't been deleted. Run recovery and see
     * what happens!
     */
   
    RecoveryManager manager = RecoveryManager.manager(RecoveryManager.DIRECT_MANAGEMENT);
   
    manager.scan();
  }
View Full Code Here

                System.err.println("Wrote dummy transaction "+kungfuTx);

                System.setProperty(RecoveryEnvironment.EXPIRY_SCAN_INTERVAL, "1");
                System.setProperty(Environment.PERIODIC_RECOVERY_PERIOD, "8000000");
               
                RecoveryManager manager = RecoveryManager
                        .manager(RecoveryManager.DIRECT_MANAGEMENT);

                manager.scan();
               
                try
                {
                   Thread.sleep(3600000);
                }
                catch (final Exception ex)
                {                 
                }
               
                manager.scan();
               
                if (os.currentState(kungfuTx, tn) == ObjectStore.OS_COMMITTED)
                    System.err.println("Transaction log not moved!");
                else
                {
View Full Code Here

TOP

Related Classes of com.arjuna.ats.arjuna.recovery.RecoveryManager

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.