6d37152cf82dafc52122a8dbeb31bdd30e0cc993 9599 |
|
25-Sep-2013 |
JnRouvignac |
OPENDJ-1134 (CR-2355) Introduce a class in replication for encapsulating host+port combinations
Now the replication code uses HostPort class for comparisons instead of "host:port" Strings.
Changed all the HostPort variable/parameter names to *Address instead of *URL. Left all the relevant String variable/parameter names to *URL.
HostPort.java:
Removed LocalAddress(String), not used anymore.
Moved getLocalAddress() here from ReplicationServer.
Created localAddress() static method.
Extracted method toInetSocketAddress() and moved it here.
ReplicationServer.java:
Created converting method toHostPorts() + used it everywhere replicationServerUrls was accessed.
Replaced getNormalizedLocalURL() and normalizeServerURL() with simply calling HostPort.localAddress() and HostPort.valueOf().
In getConnectedRSUrls(), changed return type from Set<String> to Set<HostPort>.
In connect() and disconnectRemovedReplicationServers(), used HostPort as a parameter instead of String.
ReplicationServerDomain.java:
In stopReplicationServers(), used HostPort as a parameter instead of String.
ReplicationServerHandler.java:
Extracted method toServerAddressURL().
ReplicationBroker.java:
Consequence of the change to HostPort.
ReplSessionSecurity.java:
In isSslEncryption() removed unused parameter.
Used StaticUtils.close().
ReplicationServerConfiguration.xml, ReplicationServerCfgDefn.properties:
Added precisions on how to specify the "replication-server" property.
ReplicationServerDynamicConfTest.java, ReplServerFakeConfiguration.java:
Updated because this test was failing. |
408b8eb145348cb8f251a8abfec96e7e4e80f630 2093 |
|
14-Jun-2007 |
matthew_swift |
Add support for tagging managed object definitions so that similar types of managed object can be grouped together. Tagging will enable us to automatically generate more user-friendly documentation and administration tools as a result of them being easier to navigate and search. For example, an administration CLI will be able to split the available set of sub-commands into categories, thus making it easier for administrators to find the sub-command that they need.
This change is implemented as follows:
* provide an extensible way in which tags can be defined: the XML root configuration definition element now supports an "adm:tag-definition" element, which can be used as follows:
<adm:tag-definition name="logging">
<adm:synopsis>Logging</adm:synopsis>
</adm:tag-definition>
* provide a means for tagging managed object definitions with zero or more tags using an "adm:tag" element, which can be used as follows:
<adm:tag name="logging"/>
* add support to the admin framework APIs for querying a managed object definition's tags
* define an initial set of tags and tag managed object definitions appropriately (this is just an initial guess and is likely to change):
* logging
* replication (incl. mmr)
* database (incl. caching)
* security (authn and authz)
* identity (user account management, pwp, etc)
* core (connection handlers, virtual attributes, etc) |