public class ReplicaCatalog extends AbstractSiteData
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Set<java.lang.String> |
mAliases
Set of alias names to be used for lookup.
|
protected java.util.Collection<Connection> |
mConnectionParams
Collection of connection parameters to use for connecting to that replica
catalog.
|
protected java.lang.String |
mType
The type of the replica catalog implementation to use.
|
protected java.lang.String |
mURL
The url for the catalog.
|
| Constructor and Description |
|---|
ReplicaCatalog()
The default constrcutor.
|
ReplicaCatalog(java.lang.String url,
java.lang.String type)
The overloaded constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(SiteDataVisitor visitor)
Accept the visitor
|
void |
addAlias(java.lang.String name)
Adds an alias site handle.
|
void |
addConnection(Connection connection)
Adds a connection parameter
|
void |
clearAliases()
Clears the aliases associates with the replica catalog.
|
java.lang.Object |
clone()
Returns the clone of the object.
|
java.util.Iterator<java.lang.String> |
getAliasIterator()
Returns an iterator to aliases associated with the site.
|
java.util.Iterator<Connection> |
getConnectionIterator()
Returns an iterator to connection params associated with the replica
catalog.
|
java.lang.String |
getType()
Returns the type of replica catalog.
|
java.lang.String |
getURL()
Returns the url for the replica catalog.
|
void |
initialize(java.lang.String url,
java.lang.String type)
Initialize the class.
|
void |
setType(java.lang.String type)
Sets the type of replica catalog.
|
void |
setURL(java.lang.String url)
Sets the url for the replica catalog.
|
void |
toXML(java.io.Writer writer,
java.lang.String indent)
Writes out the xml description of the object.
|
protected void |
writeAlias(java.io.Writer writer,
java.lang.String indent,
java.lang.String value)
Renders alias as xml
|
toString, toXML, writeAttributeprotected java.lang.String mURL
protected java.lang.String mType
protected java.util.Collection<Connection> mConnectionParams
protected java.util.Set<java.lang.String> mAliases
public ReplicaCatalog()
public ReplicaCatalog(java.lang.String url,
java.lang.String type)
url - the url for the replica catalog.type - the type of replica catalog.public void initialize(java.lang.String url,
java.lang.String type)
url - the url for the replica catalog.type - the type of replica catalog.public void setURL(java.lang.String url)
url - the urlpublic java.lang.String getURL()
public void setType(java.lang.String type)
type - the type of replica catalog.public java.lang.String getType()
public void addAlias(java.lang.String name)
name - the site handle to alias to.public void addConnection(Connection connection)
connection - the connection parameter.public void clearAliases()
public java.util.Iterator<java.lang.String> getAliasIterator()
public java.util.Iterator<Connection> getConnectionIterator()
public void toXML(java.io.Writer writer,
java.lang.String indent)
throws java.io.IOException
toXML in class AbstractSiteDatawriter - is a Writer opened and ready for writing. This can also
be a StringWriter for efficient output.indent - the indent to be used.java.io.IOException - if something fishy happens to the stream.public java.lang.Object clone()
clone in class AbstractSiteDataprotected void writeAlias(java.io.Writer writer,
java.lang.String indent,
java.lang.String value)
throws java.io.IOException
writer - is a Writer opened and ready for writing. This can also
be a StringWriter for efficient output.indent - the indent to be used.value - the value to use.java.io.IOException - if something fishy happens to the stream.public void accept(SiteDataVisitor visitor) throws java.io.IOException
accept in class AbstractSiteDatavisitor - java.io.IOException - if something fishy happens to the stream.