org.jboss.jca.adapters.jdbc.xa
Class URLXASelector

java.lang.Object
  extended by org.jboss.jca.adapters.jdbc.xa.URLXASelector
All Implemented Interfaces:
URLXASelectorStrategy

public class URLXASelector
extends Object
implements URLXASelectorStrategy

Default URL XA selector implementation

Author:
Jesper Pedersen

Constructor Summary
URLXASelector()
          Constructor
 
Method Summary
 XAData active()
          Get the active XAData entry
 void fail(XAData xd)
          Fail a XAData entry - e.g.
 String getData()
          Get the data for an error presentation
 boolean hasMore()
          Does the plugin has more valid XAData entries ?
 void init(List<XAData> data)
          Init the plugin with the XAData entries
 void reset()
          Reset the plugin
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

URLXASelector

public URLXASelector()
Constructor

Method Detail

init

public void init(List<XAData> data)
Init the plugin with the XAData entries

Specified by:
init in interface URLXASelectorStrategy
Parameters:
data - The value

hasMore

public boolean hasMore()
Does the plugin has more valid XAData entries ?

Specified by:
hasMore in interface URLXASelectorStrategy
Returns:
True, if more are available, otherwise false

active

public XAData active()
Get the active XAData entry

Specified by:
active in interface URLXASelectorStrategy
Returns:
The value

fail

public void fail(XAData xd)
Fail a XAData entry - e.g. mark it as bad

Specified by:
fail in interface URLXASelectorStrategy
Parameters:
xd - The value

reset

public void reset()
Reset the plugin

Specified by:
reset in interface URLXASelectorStrategy

getData

public String getData()
Get the data for an error presentation

Specified by:
getData in interface URLXASelectorStrategy
Returns:
The value

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2012 JBoss, by Red Hat (http://www.jboss.org/ironjacamar)