Package org.jboss.jca.adapters.jdbc.xa
Class URLXASelector
- java.lang.Object
-
- 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
Constructors Constructor Description URLXASelector()Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XADataactive()Get the active XAData entryvoidfail(XAData xd)Fail a XAData entry - e.g.StringgetData()Get the data for an error presentationbooleanhasMore()Does the plugin has more valid XAData entries ?voidinit(List<XAData> data)Init the plugin with the XAData entriesvoidreset()Reset the pluginStringtoString()
-
-
-
Method Detail
-
init
public void init(List<XAData> data)
Init the plugin with the XAData entries- Specified by:
initin interfaceURLXASelectorStrategy- Parameters:
data- The value
-
hasMore
public boolean hasMore()
Does the plugin has more valid XAData entries ?- Specified by:
hasMorein interfaceURLXASelectorStrategy- Returns:
- True, if more are available, otherwise false
-
active
public XAData active()
Get the active XAData entry- Specified by:
activein interfaceURLXASelectorStrategy- Returns:
- The value
-
fail
public void fail(XAData xd)
Fail a XAData entry - e.g. mark it as bad- Specified by:
failin interfaceURLXASelectorStrategy- Parameters:
xd- The value
-
reset
public void reset()
Reset the plugin- Specified by:
resetin interfaceURLXASelectorStrategy
-
getData
public String getData()
Get the data for an error presentation- Specified by:
getDatain interfaceURLXASelectorStrategy- Returns:
- The value
-
-