public synchronized void clearCache(){
  serviceNameAndOCs=new CaseInsensitiveHashMap();
  serviceVersions=new CaseInsensitiveHashMap();
  serviceNameDefaultVersion=new CaseInsensitiveHashMap();
  accessManagerServers=null;
  amsdkChecked=false;
  CachedSMSEntry.clearCache();
  CachedSubEntries.clearCache();
  PluginSchemaImpl.clearCache();
  ServiceInstanceImpl.clearCache();
  ServiceConfigImpl.clearCache();
  ServiceConfigManagerImpl.clearCache();
  OrganizationConfigManagerImpl.clearCache();
  OrgConfigViaAMSDK.clearCache();
  try {
    checkFlags(token);
    OrganizationConfigManager.initializeFlags();
    DNMapper.clearCache();
  }
 catch (  Exception e) {
    debug.error("ServiceManager::clearCache unable to " + "re-initialize global flags",e);
  }
}

public synchronized void clearCache ( ) { serviceNameAndOCs = new CaseInsensitiveHashMap ( ) ; serviceVersions = new CaseInsensitiveHashMap ( ) ; serviceNameDefaultVersion = new CaseInsensitiveHashMap ( ) ; accessManagerServers = null ; amsdkChecked = false ; CachedSMSEntry . clearCache ( ) ; CachedSubEntries . clearCache ( ) ; PluginSchemaImpl . clearCache ( ) ; ServiceInstanceImpl . clearCache ( ) ; ServiceConfigImpl . clearCache ( ) ; ServiceConfigManagerImpl . clearCache ( ) ; OrganizationConfigManagerImpl . clearCache ( ) ; OrgConfigViaAMSDK . clearCache ( ) ; try { checkFlags ( token ) ; OrganizationConfigManager . initializeFlags ( ) ; DNMapper . clearCache ( ) ; } catch ( Exception e ) { debug . error ( "ServiceManager::clearCache unable to " + "re-initialize global flags" , e ) ; } }
removes all the sms cached entries . this method should be called to clear the cache for example , if acis for the sms entries are changed in the directory . also , this clears the sms entries only in this jvm instance . if multiple instances ( of jvm ) are running this method must be called within each instance .
