All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jboss.jbossts.xts.initialisation.XTS10Initialisation Maven / Gradle / Ivy

There is a newer version: 4.17.43.Final
Show newest version
package org.jboss.jbossts.xts.initialisation;

import com.arjuna.services.framework.startup.Sequencer;
import org.jboss.jbossts.xts.recovery.coordinator.CoordinatorRecoveryInitialisation;
import org.jboss.jbossts.xts.recovery.participant.ParticipantRecoveryInitialisation;

/**
 * A class used to perform all 1.0 initialisation
 */
public class XTS10Initialisation implements XTSInitialisation
{
    public void startup() throws Exception
    {
        // the XTS 1.0 code still uses listeners so we have to alow the sequence of callbacks to execute by
        // opening the latch.

        Sequencer.unlatch();

        // we also need to ensure that recovery modules are started

        CoordinatorRecoveryInitialisation.startup();

        ParticipantRecoveryInitialisation.startup();
    }

    public void shutdown() throws Exception
    {
        // we just need to ensure that recovery modules are shut down

        ParticipantRecoveryInitialisation.startup();

        CoordinatorRecoveryInitialisation.startup();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy