| | |
| | | */ |
| | | public int getNumRcvdUpdates() |
| | | { |
| | | return numRcvdUpdates.get(); |
| | | if (numRcvdUpdates != null) |
| | | return numRcvdUpdates.get(); |
| | | else |
| | | return 0; |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | public int getNumSentUpdates() |
| | | { |
| | | return numSentUpdates.get(); |
| | | if (numSentUpdates != null) |
| | | return numSentUpdates.get(); |
| | | else |
| | | return 0; |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | public int getPendingUpdatesCount() |
| | | { |
| | | return pendingChanges.size(); |
| | | if (pendingChanges != null) |
| | | return pendingChanges.size(); |
| | | else |
| | | return 0; |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | public int getNumProcessedUpdates() |
| | | { |
| | | return numProcessedUpdates.get(); |
| | | if (numProcessedUpdates != null) |
| | | return numProcessedUpdates.get(); |
| | | else |
| | | return 0; |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | public String getReplicationServer() |
| | | { |
| | | return broker.getReplicationServer(); |
| | | if (broker != null) |
| | | return broker.getReplicationServer(); |
| | | else |
| | | return "Not connected"; |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | public int getMaxRcvWindow() |
| | | { |
| | | return broker.getMaxRcvWindow(); |
| | | if (broker != null) |
| | | return broker.getMaxRcvWindow(); |
| | | else |
| | | return 0; |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | public int getCurrentRcvWindow() |
| | | { |
| | | return broker.getCurrentRcvWindow(); |
| | | if (broker != null) |
| | | return broker.getCurrentRcvWindow(); |
| | | else |
| | | return 0; |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | public int getMaxSendWindow() |
| | | { |
| | | return broker.getMaxSendWindow(); |
| | | if (broker != null) |
| | | return broker.getMaxSendWindow(); |
| | | else |
| | | return 0; |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | public int getCurrentSendWindow() |
| | | { |
| | | return broker.getCurrentSendWindow(); |
| | | if (broker != null) |
| | | return broker.getCurrentSendWindow(); |
| | | else |
| | | return 0; |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | public int getNumLostConnections() |
| | | { |
| | | return broker.getNumLostConnections(); |
| | | if (broker != null) |
| | | return broker.getNumLostConnections(); |
| | | else |
| | | return 0; |
| | | } |
| | | |
| | | /** |
| | |
| | | * @return The backend of that domain. |
| | | * @param baseDN The baseDN to retrieve the backend |
| | | */ |
| | | protected Backend retrievesBackend(DN baseDN) |
| | | protected static Backend retrievesBackend(DN baseDN) |
| | | { |
| | | // Retrieves the backend related to this domain |
| | | return DirectoryServer.getBackend(baseDN); |
| | |
| | | unacceptableReasons.add(message); |
| | | return false; |
| | | } |
| | | |
| | | // Check that the base DN is configured as a base-dn of the directory server |
| | | if (retrievesBackend(dn) == null) |
| | | { |
| | | Message message = ERR_UNKNOWN_DN.get(dn.toString()); |
| | | unacceptableReasons.add(message); |
| | | return false; |
| | | } |
| | | return true; |
| | | } |
| | | |
| | |
| | | */ |
| | | public boolean isConnected() |
| | | { |
| | | return broker.isConnected(); |
| | | if (broker != null) |
| | | return broker.isConnected(); |
| | | else |
| | | return false; |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | public boolean isSessionEncrypted() |
| | | { |
| | | return broker.isSessionEncrypted(); |
| | | if (broker != null) |
| | | return broker.isSessionEncrypted(); |
| | | else |
| | | return false; |
| | | } |
| | | } |