|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opends.admin.ads.TopologyCache
public class TopologyCache
This class allows to read the configuration of the different servers that are registered in a given ADS server. It provides a read only view of the configuration of the servers and of the replication topologies that might be configured between them.
| Constructor Summary | |
|---|---|
TopologyCache(ADSContext adsContext,
ApplicationTrustManager trustManager)
Constructor of the TopologyCache. |
|
| Method Summary | |
|---|---|
ADSContext |
getAdsContext()
Returns the adsContext used by this TopologyCache. |
TopologyCacheFilter |
getFilter()
Returns the filter to be used when retrieving information. |
java.util.LinkedHashSet<PreferredConnection> |
getPreferredConnections()
Returns the list of LDAP URLs and connection type that are preferred to be used to connect to the servers. |
java.util.Set<ServerDescriptor> |
getServers()
Returns a Set containing all the servers that are registered in the ADS. |
java.util.Set<SuffixDescriptor> |
getSuffixes()
Returns a Set containing the suffixes (replication topologies) that could be retrieved after the last call to reloadTopology. |
void |
reloadTopology()
Reads the configuration of the registered servers. |
void |
setPreferredConnections(java.util.LinkedHashSet<PreferredConnection> cnx)
Sets the list of LDAP URLs and connection type that are preferred to be used to connect to the servers. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TopologyCache(ADSContext adsContext,
ApplicationTrustManager trustManager)
adsContext - the adsContext to the ADS registry.trustManager - the ApplicationTrustManager that must be used to trust
certificates when we create connections to the registered servers to read
their configuration.| Method Detail |
|---|
public void reloadTopology()
throws TopologyCacheException
TopologyCacheException - if there is an issue reading the
configuration of the registered servers.public void setPreferredConnections(java.util.LinkedHashSet<PreferredConnection> cnx)
cnx - the list of preferred connections.public java.util.LinkedHashSet<PreferredConnection> getPreferredConnections()
public java.util.Set<ServerDescriptor> getServers()
public java.util.Set<SuffixDescriptor> getSuffixes()
public TopologyCacheFilter getFilter()
public ADSContext getAdsContext()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||