com.continuent.tungsten.replicator.thl
Class ConnectUriManager

java.lang.Object
  extended by com.continuent.tungsten.replicator.thl.ConnectUriManager

public class ConnectUriManager
extends java.lang.Object

Implements a simple strategy class that hands out connection URIs and allows the caller to cycle through a list of them.

Version:
1.0
Author:
Robert Hodges

Constructor Summary
ConnectUriManager(java.util.List<java.lang.String> connectUri)
          Creates a new instance with a list of URIs.
 
Method Summary
 long getIterations()
          Returns the number of full iterations over the list of URIs.
 java.lang.String next()
          Returns the next THL URI in the list.
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConnectUriManager

public ConnectUriManager(java.util.List<java.lang.String> connectUri)
                  throws THLException
Creates a new instance with a list of URIs.

Parameters:
connectUri - List of one or more URIs
Throws:
THLException - Thrown if array is 0 length
Method Detail

next

public java.lang.String next()
Returns the next THL URI in the list.


getIterations

public long getIterations()
Returns the number of full iterations over the list of URIs.


toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object
See Also:
Object.toString()