Пример #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);
   }
 }
Пример #2
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;
 }
Пример #3
0
 @Command
 @NotifyChange("clientCatalog")
 public void computeInfos(@BindingParam("catalogitem") ClientCatalogItem catalogItem)
     throws SearchLibException {
   if (catalogItem == null) return;
   catalogItem.computeInfos();
 }
Пример #4
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;
 }
Пример #5
0
 @Command
 public void eraseIndex(@BindingParam("catalogitem") ClientCatalogItem catalogItem)
     throws SearchLibException, InterruptedException {
   if (catalogItem == null) return;
   new EraseIndexAlert(catalogItem.getIndexName());
 }