congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
InstanceIdentifier.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
com.arjuna.webservices11.wsarj.InstanceIdentifier
constructor

Best Java code snippets using com.arjuna.webservices11.wsarj.InstanceIdentifier.<init> (Showing top 20 results out of 315)

origin: org.jboss.jbossts/jbossxts

/**
 * Construct the engine for the coordinator in a specified state and register it.
 * @param id The coordinator id.
 * @param participant The participant endpoint reference.
 * @param state The initial state.
 */
public ParticipantCompletionCoordinatorEngine(final String id, final W3CEndpointReference participant,
  final State state, final boolean recovered)
{
  this.id = id ;
  this.instanceIdentifier = new InstanceIdentifier(id) ;
  this.participant = participant ;
  this.state = state ;
  this.failureState = null;
  this.recovered = recovered;
  // unrecovered participants are always activated
  // we only need to reactivate recovered participants which were successfully COMPLETED or which began
  // CLOSING. any others will only have been saved because of a heuristic outcome. we can safely drop
  // them since we implement presumed abort.
  if (!recovered || state == State.STATE_COMPLETED || state == State.STATE_CLOSING) {
    ParticipantCompletionCoordinatorProcessor.getProcessor().activateCoordinator(this, id) ;
  }
}
origin: org.jboss.jbossts/jbossxts

/**
 * Construct the engine for the coordinator in a specified state.
 * @param id The coordinator id.
 * @param durable true if the participant is durable, false if volatile.
 * @param participant The participant endpoint reference.
 * @param state The initial state.
 */
public CoordinatorEngine(final String id, final boolean durable, final W3CEndpointReference participant, boolean recovered, final State state)
{
  this.id = id ;
  this.instanceIdentifier = new InstanceIdentifier(id) ;
  this.durable = durable ;
  this.participant = participant ;
  this.state = state ;
  this.recovered = recovered;
  // unrecovered participants are always activated
  // we only need to reactivate recovered participants which were successfully prepared
  // any others will only have been saved because of a heuristic outcome e.g. a comms
  // timeout at prepare will write a heuristic record for an ABORTED TX including a
  // participant in state PREPARING. we can safely drop it since we implement presumed abort.
  if (!recovered || state == State.STATE_PREPARED_SUCCESS) {
    CoordinatorProcessor.getProcessor().activateCoordinator(this, id) ;
  }
}
origin: org.jboss.jbossts.xts/jbossxts

/**
 * Construct the engine for the coordinator in a specified state and register it.
 * @param id The coordinator id.
 * @param participant The participant endpoint reference.
 * @param state The initial state.
 */
public ParticipantCompletionCoordinatorEngine(final String id, final W3CEndpointReference participant,
  final State state, final boolean recovered)
{
  this.id = id ;
  this.instanceIdentifier = new InstanceIdentifier(id) ;
  this.participant = participant ;
  this.state = state ;
  this.failureState = null;
  this.recovered = recovered;
  // unrecovered participants are always activated
  // we only need to reactivate recovered participants which were successfully COMPLETED or which began
  // CLOSING. any others will only have been saved because of a heuristic outcome. we can safely drop
  // them since we implement presumed abort.
  if (!recovered || state == State.STATE_COMPLETED || state == State.STATE_CLOSING) {
    ParticipantCompletionCoordinatorProcessor.getProcessor().activateCoordinator(this, id) ;
  }
}
origin: org.jboss.jbossts.xts/jbossxts

/**
 * Construct the engine for the coordinator in a specified state and register it.
 * @param id The coordinator id.
 * @param participant The participant endpoint reference.
 * @param state The initial state.
 */
public CoordinatorCompletionCoordinatorEngine(final String id, final W3CEndpointReference participant,
  final State state, final boolean recovered)
{
  this.id = id ;
  this.instanceIdentifier = new InstanceIdentifier(id) ;
  this.participant = participant ;
  this.state = state ;
  this.failureState = null;
  this.recovered = recovered;
  // unrecovered participants are always activated
  // we only need to reactivate recovered participants which were successfully COMPLETED or which began
  // CLOSING. any others will only have been saved because of a heuristic outcome. we can safely drop
  // them since we implement presumed abort.
  if (!recovered || state == State.STATE_COMPLETED || state == State.STATE_CLOSING) {
    CoordinatorCompletionCoordinatorProcessor.getProcessor().activateCoordinator(this, id) ;
  }
}
origin: org.jboss.jbossts.xts/ws-t11

/**
 * Construct the engine for the coordinator in a specified state and register it.
 * @param id The coordinator id.
 * @param participant The participant endpoint reference.
 * @param state The initial state.
 */
public ParticipantCompletionCoordinatorEngine(final String id, final W3CEndpointReference participant,
  final State state, final boolean recovered)
{
  this.id = id ;
  this.instanceIdentifier = new InstanceIdentifier(id) ;
  this.participant = participant ;
  this.state = state ;
  this.failureState = null;
  this.recovered = recovered;
  // unrecovered participants are always activated
  // we only need to reactivate recovered participants which were successfully COMPLETED or which began
  // CLOSING. any others will only have been saved because of a heuristic outcome. we can safely drop
  // them since we implement presumed abort.
  if (!recovered || state == State.STATE_COMPLETED || state == State.STATE_CLOSING) {
    ParticipantCompletionCoordinatorProcessor.getProcessor().activateCoordinator(this, id) ;
  }
}
origin: org.jboss.jbossts.xts/ws-t11

/**
 * Construct the engine for the coordinator in a specified state and register it.
 * @param id The coordinator id.
 * @param participant The participant endpoint reference.
 * @param state The initial state.
 */
public CoordinatorCompletionCoordinatorEngine(final String id, final W3CEndpointReference participant,
  final State state, final boolean recovered)
{
  this.id = id ;
  this.instanceIdentifier = new InstanceIdentifier(id) ;
  this.participant = participant ;
  this.state = state ;
  this.failureState = null;
  this.recovered = recovered;
  // unrecovered participants are always activated
  // we only need to reactivate recovered participants which were successfully COMPLETED or which began
  // CLOSING. any others will only have been saved because of a heuristic outcome. we can safely drop
  // them since we implement presumed abort.
  if (!recovered || state == State.STATE_COMPLETED || state == State.STATE_CLOSING) {
    CoordinatorCompletionCoordinatorProcessor.getProcessor().activateCoordinator(this, id) ;
  }
}
origin: org.jboss.jbossts/jbossxts

/**
 * Construct the engine for the coordinator in a specified state and register it.
 * @param id The coordinator id.
 * @param participant The participant endpoint reference.
 * @param state The initial state.
 */
public CoordinatorCompletionCoordinatorEngine(final String id, final W3CEndpointReference participant,
  final State state, final boolean recovered)
{
  this.id = id ;
  this.instanceIdentifier = new InstanceIdentifier(id) ;
  this.participant = participant ;
  this.state = state ;
  this.failureState = null;
  this.recovered = recovered;
  // unrecovered participants are always activated
  // we only need to reactivate recovered participants which were successfully COMPLETED or which began
  // CLOSING. any others will only have been saved because of a heuristic outcome. we can safely drop
  // them since we implement presumed abort.
  if (!recovered || state == State.STATE_COMPLETED || state == State.STATE_CLOSING) {
    CoordinatorCompletionCoordinatorProcessor.getProcessor().activateCoordinator(this, id) ;
  }
}
origin: org.jboss.jbossts.xts/jbossxts

/**
 * Send the read only message.
 *
 */
private void sendReadOnly()
{
  final MAP responseAddressingContext = createContext() ;
  final InstanceIdentifier instanceIdentifier = new InstanceIdentifier(id) ;
  try
  {
    CoordinatorClient.getClient().sendReadOnly(coordinator, responseAddressingContext, instanceIdentifier) ;
  }
  catch (final Throwable th)
  {
    if (WSTLogger.logger.isTraceEnabled())
    {
      WSTLogger.logger.tracev("Unexpected exception while sending ReadOnly", th) ;
    }
  }
}
origin: org.jboss.jbossts.xts/ws-t11

/**
 * Send the aborted message.
 *
 */
private void sendAborted()
{
  final MAP responseAddressingContext = createContext() ;
  final InstanceIdentifier instanceIdentifier = new InstanceIdentifier(id) ;
  try
  {
    CoordinatorClient.getClient().sendAborted(coordinator, responseAddressingContext, instanceIdentifier) ;
  }
  catch (final Throwable th)
  {
    if (WSTLogger.logger.isTraceEnabled())
    {
      WSTLogger.logger.tracev("Unexpected exception while sending Aborted", th) ;
    }
  }
}
origin: org.jboss.jbossts/jbossxts

/**
 * Send the read only message.
 *
 */
private void sendReadOnly()
{
  final MAP responseAddressingContext = createContext() ;
  final InstanceIdentifier instanceIdentifier = new InstanceIdentifier(id) ;
  try
  {
    CoordinatorClient.getClient().sendReadOnly(coordinator, responseAddressingContext, instanceIdentifier) ;
  }
  catch (final Throwable th)
  {
    if (WSTLogger.logger.isTraceEnabled())
    {
      WSTLogger.logger.tracev("Unexpected exception while sending ReadOnly", th) ;
    }
  }
}
origin: org.jboss.jbossts.xts/ws-t11

/**
 * Send the read only message.
 *
 */
private void sendReadOnly()
{
  final MAP responseAddressingContext = createContext() ;
  final InstanceIdentifier instanceIdentifier = new InstanceIdentifier(id) ;
  try
  {
    CoordinatorClient.getClient().sendReadOnly(coordinator, responseAddressingContext, instanceIdentifier) ;
  }
  catch (final Throwable th)
  {
    if (WSTLogger.logger.isTraceEnabled())
    {
      WSTLogger.logger.tracev("Unexpected exception while sending ReadOnly", th) ;
    }
  }
}
origin: org.jboss.jbossts/jbossxts

/**
 * Send the committed message.
 *
 */
private void sendCommitted()
{
  final MAP responseAddressingContext = createContext() ;
  final InstanceIdentifier instanceIdentifier = new InstanceIdentifier(id) ;
  try
  {
    CoordinatorClient.getClient().sendCommitted(coordinator, responseAddressingContext, instanceIdentifier) ;
  }
  catch (final Throwable th)
  {
    if (WSTLogger.logger.isTraceEnabled())
    {
      WSTLogger.logger.tracev("Unexpected exception while sending Committed", th) ;
    }
  }
}
origin: org.jboss.jbossts/jbossxts

/**
 * Send the aborted message.
 *
 */
private void sendAborted()
{
  final MAP responseAddressingContext = createContext() ;
  final InstanceIdentifier instanceIdentifier = new InstanceIdentifier(id) ;
  try
  {
    CoordinatorClient.getClient().sendAborted(coordinator, responseAddressingContext, instanceIdentifier) ;
  }
  catch (final Throwable th)
  {
    if (WSTLogger.logger.isTraceEnabled())
    {
      WSTLogger.logger.tracev("Unexpected exception while sending Aborted", th) ;
    }
  }
}
origin: org.jboss.jbossts.xts/jbossxts

/**
 * Send the aborted message.
 *
 */
private void sendAborted()
{
  final MAP responseAddressingContext = createContext() ;
  final InstanceIdentifier instanceIdentifier = new InstanceIdentifier(id) ;
  try
  {
    CoordinatorClient.getClient().sendAborted(coordinator, responseAddressingContext, instanceIdentifier) ;
  }
  catch (final Throwable th)
  {
    if (WSTLogger.logger.isTraceEnabled())
    {
      WSTLogger.logger.tracev("Unexpected exception while sending Aborted", th) ;
    }
  }
}
origin: org.jboss.jbossts.xts/ws-t11

/**
 * Send the committed message.
 *
 */
private void sendCommitted()
{
  final MAP responseAddressingContext = createContext() ;
  final InstanceIdentifier instanceIdentifier = new InstanceIdentifier(id) ;
  try
  {
    CoordinatorClient.getClient().sendCommitted(coordinator, responseAddressingContext, instanceIdentifier) ;
  }
  catch (final Throwable th)
  {
    if (WSTLogger.logger.isTraceEnabled())
    {
      WSTLogger.logger.tracev("Unexpected exception while sending Committed", th) ;
    }
  }
}
origin: org.jboss.jbossts.xts/jbossxts

/**
 * Send the committed message.
 *
 */
private void sendCommitted()
{
  final MAP responseAddressingContext = createContext() ;
  final InstanceIdentifier instanceIdentifier = new InstanceIdentifier(id) ;
  try
  {
    CoordinatorClient.getClient().sendCommitted(coordinator, responseAddressingContext, instanceIdentifier) ;
  }
  catch (final Throwable th)
  {
    if (WSTLogger.logger.isTraceEnabled())
    {
      WSTLogger.logger.tracev("Unexpected exception while sending Committed", th) ;
    }
  }
}
origin: org.jboss.jbossts.xts/jbossxts

/**
 * Send the prepared message.
 *
 * @param timedOut true if this is in response to a comms timeout
 */
private void sendPrepared(boolean timedOut)
{
  final MAP responseAddressingContext = createContext() ;
  final InstanceIdentifier instanceIdentifier = new InstanceIdentifier(id) ;
  try
  {
    CoordinatorClient.getClient().sendPrepared(coordinator, responseAddressingContext, instanceIdentifier) ;
  }
  catch (final Throwable th)
  {
    if (WSTLogger.logger.isTraceEnabled())
    {
      WSTLogger.logger.tracev("Unexpected exception while sending Prepared", th) ;
    }
  }
  updateResendPeriod(timedOut);
  initiateTimer() ;
}
origin: org.jboss.jbossts/jbossxts

/**
 * Send the prepared message.
 *
 * @param timedOut true if this is in response to a comms timeout
 */
private void sendPrepared(boolean timedOut)
{
  final MAP responseAddressingContext = createContext() ;
  final InstanceIdentifier instanceIdentifier = new InstanceIdentifier(id) ;
  try
  {
    CoordinatorClient.getClient().sendPrepared(coordinator, responseAddressingContext, instanceIdentifier) ;
  }
  catch (final Throwable th)
  {
    if (WSTLogger.logger.isTraceEnabled())
    {
      WSTLogger.logger.tracev("Unexpected exception while sending Prepared", th) ;
    }
  }
  updateResendPeriod(timedOut);
  initiateTimer() ;
}
origin: org.jboss.jbossts.xts/ws-t11

/**
 * Send the prepared message.
 *
 * @param timedOut true if this is in response to a comms timeout
 */
private void sendPrepared(boolean timedOut)
{
  final MAP responseAddressingContext = createContext() ;
  final InstanceIdentifier instanceIdentifier = new InstanceIdentifier(id) ;
  try
  {
    CoordinatorClient.getClient().sendPrepared(coordinator, responseAddressingContext, instanceIdentifier) ;
  }
  catch (final Throwable th)
  {
    if (WSTLogger.logger.isTraceEnabled())
    {
      WSTLogger.logger.tracev("Unexpected exception while sending Prepared", th) ;
    }
  }
  updateResendPeriod(timedOut);
  initiateTimer() ;
}
origin: org.jboss.jbossts.xts/jbossxts

public void close ()
  throws TransactionRolledBackException, UnknownTransactionException, SystemException
{
  final MAP map = AddressingHelper.createNotificationContext(MessageId.getMessageId()) ;
  try
  {
    TerminationCoordinatorRPCClient.getClient().sendClose(_terminationCoordinator, map, new InstanceIdentifier(_id)) ;
  }
  catch (SoapFault11 soapFault)
  {
    if ((ArjunaTXConstants.TRANSACTIONROLLEDBACK_ERROR_CODE_QNAME.equals(soapFault.getSubcode()))) {
      throw new TransactionRolledBackException(soapFault.getMessage());
    }
    else if (ArjunaTXConstants.UNKNOWNTRANSACTION_ERROR_CODE_QNAME.equals(soapFault.getSubcode()))
    {
      throw new UnknownTransactionException(soapFault.getMessage()) ;
    }
    throw new SystemException(soapFault.getMessage()) ;
  }
  catch (Exception e)
  {
    throw new SystemException();
  }
}
com.arjuna.webservices11.wsarjInstanceIdentifier<init>

Javadoc

Default constructor.

Popular methods of InstanceIdentifier

  • getInstanceIdentifier
    Get the instance identifier of this element.
  • createInstanceIdentifierElement
    Create a SOAPElement representing an InstanceIdentifier
  • setEndpointInstanceIdentifier
    Set the identifier on a WS Addressing endpoint reference under construction.
  • isValid
    Is the configuration of this element valid?
  • toString
    Get a string representation of this instance identifier.

Popular in Java

  • Making http post requests using okhttp
  • onRequestPermissionsResult (Fragment)
  • addToBackStack (FragmentTransaction)
  • setRequestProperty (URLConnection)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Collectors (java.util.stream)
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • JCheckBox (javax.swing)
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now