protected synchronized void establishStoreHome() throws IOException {
  if (m_storeDirOK) {
    return;
  }
  if (!m_storeHome.exists()) {
    if (!m_storeHome.mkdir()) {
      throw new IOException("Unable to create the metastore directory: " + m_storeHome.toString());
    }
  }
  if (!m_storeHome.isDirectory()) {
    throw new IOException("The metastore (" + m_storeHome + ") seems to exist, but it isn't a directory!");
  }
  m_storeDirOK=true;
  lockStore();
  File[] contents=m_storeHome.listFiles();
  for (  File f : contents) {
    if (f.isDirectory()) {
      Map<String,File> store=new LinkedHashMap<String,File>();
      m_stores.put(f.getName(),store);
      File[] storeEntries=f.listFiles();
      for (      File se : storeEntries) {
        store.put(se.getName(),se);
      }
    }
  }
  unlockStore();
}

protected synchronized void establishStoreHome ( ) throws IOException { if ( m_storeDirOK ) { return ; } if ( ! m_storeHome . exists ( ) ) { if ( ! m_storeHome . mkdir ( ) ) { throw new IOException ( "Unable to create the metastore directory: " + m_storeHome . toString ( ) ) ; } } if ( ! m_storeHome . isDirectory ( ) ) { throw new IOException ( "The metastore (" + m_storeHome + ") seems to exist, but it isn't a directory!" ) ; } m_storeDirOK = true ; lockStore ( ) ; File [ ] contents = m_storeHome . listFiles ( ) ; for ( File f : contents ) { if ( f . isDirectory ( ) ) { Map < String , File > store = new LinkedHashMap < String , File > ( ) ; m_stores . put ( f . getName ( ) , store ) ; File [ ] storeEntries = f . listFiles ( ) ; for ( File se : storeEntries ) { store . put ( se . getName ( ) , se ) ; } } } unlockStore ( ) ; }
establish the home directory for the store
