public SortedMap < String , SortedMap < String , Object > > getActiveTenantInfo ( ) { SortedMap < String , SortedMap < String , Object > > activeTenantMap = new TreeMap <> ( ) ; synchronized ( m_tenantDBMap ) { for ( String tenantName : m_tenantDBMap . keySet ( ) ) { DBService dbservice = m_tenantDBMap . get ( tenantName ) ; Map < String , Object > dbServiceParams = dbservice . getAllParams ( ) ; activeTenantMap . put ( tenantName , new TreeMap < String , Object > ( dbServiceParams ) ) ; } } return activeTenantMap ; }
Get the information about all active tenants which are those whose DBService has been created . The is keyed by tenant name and its value is a map of parameters configured for the corresponding DBService .