Fix a problem in the network group design that prevented the server from
restarting correctly when performing an in-core restart. Also, eliminate a
potential null pointer exception if an admin alert was generated early in the
server startup process.
OpenDS Issue Number: 1518
| | |
| | | } |
| | | |
| | | |
| | | // Deregister all network group configuration. |
| | | NetworkGroup.deregisterAll(); |
| | | |
| | | |
| | | // Log a final message indicating that the server is stopped (which should |
| | | // be true for all practical purposes), and then shut down all the error |
| | | // loggers. |
| | |
| | | return sb; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Deregisters all network groups that have been registered. This should be |
| | | * called when the server is shutting down. |
| | | */ |
| | | public static void deregisterAll() |
| | | { |
| | | synchronized (registeredNetworkGroupsLock) |
| | | { |
| | | registeredNetworkGroups = new TreeMap<String,NetworkGroup>(); |
| | | defaultNetworkGroup = new NetworkGroup ("default"); |
| | | } |
| | | } |
| | | } |
| | |
| | | } |
| | | } |
| | | |
| | | configuration.addChangeListener(this); |
| | | currentConfig = configuration; |
| | | if (configuration != null) |
| | | { |
| | | configuration.addChangeListener(this); |
| | | currentConfig = configuration; |
| | | } |
| | | } |
| | | |
| | | |