Ejemplo n.º 1
0
 public static final void openAll() {
   try {
     synchronized (ClientCatalog.class) {
       for (ClientCatalogItem catalogItem : getClientCatalog(null)) {
         Logging.info("OSS loads index " + catalogItem.getIndexName());
         getClient(catalogItem.getIndexName());
       }
     }
   } catch (SearchLibException e) {
     Logging.error(e);
   }
 }
Ejemplo n.º 2
0
 public ClientCatalogItem getClientName() throws SearchLibException {
   Client client = getClient();
   if (client == null) return null;
   if (selectedClientCatalogItem == null) return null;
   if (!selectedClientCatalogItem.getIndexName().equals(client.getIndexName())) return null;
   return selectedClientCatalogItem;
 }
Ejemplo n.º 3
0
 public void setClientName(ClientCatalogItem item) throws SearchLibException, NamingException {
   if (item == null) return;
   Client client = ClientCatalog.getClient(item.getIndexName());
   if (client == null) return;
   setClient(client);
   selectedClientCatalogItem = item;
 }
Ejemplo n.º 4
0
 @Command
 public void eraseIndex(@BindingParam("catalogitem") ClientCatalogItem catalogItem)
     throws SearchLibException, InterruptedException {
   if (catalogItem == null) return;
   new EraseIndexAlert(catalogItem.getIndexName());
 }