Class URLSelector
java.lang.Object
org.jboss.jca.adapters.jdbc.local.URLSelector
- All Implemented Interfaces:
URLSelectorStrategy
Default URL selector implementation
- Author:
- Jesper Pedersen
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactive()Get the active URLvoidFail an URL - e.g.getData()Get the data for an error presentationbooleanhasMore()Does the plugin has more valid URLs ?voidInit the plugin with the URLsvoidreset()Reset the pluginvoidURL was accepted - potentially mark it as activetoString()
-
Constructor Details
-
URLSelector
public URLSelector()Constructor
-
-
Method Details
-
init
Init the plugin with the URLs- Specified by:
initin interfaceURLSelectorStrategy- Parameters:
urls- The URLs
-
hasMore
public boolean hasMore()Does the plugin has more valid URLs ?- Specified by:
hasMorein interfaceURLSelectorStrategy- Returns:
- True, if more are available, otherwise false
-
active
Get the active URL- Specified by:
activein interfaceURLSelectorStrategy- Returns:
- The value
-
fail
Fail an URL - e.g. mark it as bad- Specified by:
failin interfaceURLSelectorStrategy- Parameters:
url- The URL
-
success
URL was accepted - potentially mark it as active- Specified by:
successin interfaceURLSelectorStrategy
-
reset
public void reset()Reset the plugin- Specified by:
resetin interfaceURLSelectorStrategy
-
getData
Get the data for an error presentation- Specified by:
getDatain interfaceURLSelectorStrategy- Returns:
- The value
-
toString
-