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

  • Running tasks concurrently on multiple threads
  • getSystemService (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • notifyDataSetChanged (ArrayAdapter)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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