org.jboss.jca.adapters.jdbc.spi
Interface URLSelectorStrategy

All Known Implementing Classes:
URLSelector

public interface URLSelectorStrategy

URLSelectorStrategy

Author:
Jesper Pedersen

Method Summary
 String active()
          Get the active URL
 void fail(String url)
          Fail an URL - e.g.
 String getData()
          Get the data for an error presentation
 boolean hasMore()
          Does the plugin has more valid URLs ?
 void init(List<String> urls)
          Init the plugin with the URLs
 void reset()
          Reset the plugin
 

Method Detail

init

void init(List<String> urls)
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

void fail(String url)
Fail an URL - e.g. mark it as bad

Parameters:
url - The URL

reset

void reset()
Reset the plugin


getData

String getData()
Get the data for an error presentation

Returns:
The value


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