Package org.jboss.jca.adapters.jdbc.spi
Interface URLSelectorStrategy
- All Known Implementing Classes:
URLSelector
public interface URLSelectorStrategy
URLSelectorStrategy
- Author:
- Jesper Pedersen
-
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 plugindefault voidURL was accepted - potentially mark it as active
-
Method Details
-
init
Init the plugin with the URLs- Parameters:
urls- The URLs
-
hasMore
boolean hasMore()Does the plugin has more valid URLs ?- Returns:
- True, if more are available, otherwise false
-
active
String active()Get the active URL- Returns:
- The value
-
fail
Fail an URL - e.g. mark it as bad- Parameters:
url- The URL
-
success
URL was accepted - potentially mark it as active- Parameters:
url-
-
reset
void reset()Reset the plugin -
getData
String getData()Get the data for an error presentation- Returns:
- The value
-