public Map < String , State > getRepositories ( ) { checkRunning ( ) ; Map < String , State > results = new HashMap < String , State > ( ) ; final Lock lock = this . lock . readLock ( ) ; try { lock . lock ( ) ; for ( JcrRepository repository : repositories . values ( ) ) { results . put ( repository . getName ( ) , repository . getState ( ) ) ; } } finally { lock . unlock ( ) ; } return Collections . unmodifiableMap ( results ) ; }
Get an instantaneous snapshot of the JCR repositories and their state . Note that the results are accurate only when this methods returns .