@Override protected Void doTask() throws Exception { /* * Create indices that we should be able to see when * holding the lock for the namespace. */ for (int i = 0; i < allowed_indices.length; i++) { final String name = allowed_indices[i]; getJournal().dropIndex(name); } // Done return null; }
@Override protected Void doTask() throws Exception { /* * Create indices that we should be able to see when * holding the lock for the namespace. */ for (int i = 0; i < allowed_indices.length; i++) { final String name = allowed_indices[i]; getJournal().dropIndex(name); } // Done return null; }
/** * Drop the named index. * * @return A {@link Boolean} value that is <code>true</code> iff the index * was pre-existing at the time that this task executed and * therefore was dropped. <code>false</code> is returned iff the * index did not exist at the time that this task was executed. */ @Override public Boolean doTask() throws Exception { final String name = getOnlyResource(); try { getJournal().dropIndex(name); } catch (NoSuchIndexException ex) { /* * The index does not exist. */ log.warn("Index does not exist: " + name); return Boolean.FALSE; } return Boolean.TRUE; }
/** * Drop the named index. * * @return A {@link Boolean} value that is <code>true</code> iff the index * was pre-existing at the time that this task executed and * therefore was dropped. <code>false</code> is returned iff the * index did not exist at the time that this task was executed. */ @Override public Boolean doTask() throws Exception { final String name = getOnlyResource(); try { getJournal().dropIndex(name); } catch (NoSuchIndexException ex) { /* * The index does not exist. */ log.warn("Index does not exist: " + name); return Boolean.FALSE; } return Boolean.TRUE; }
getJournal().dropIndex(getOnlyResource());
getJournal().dropIndex(getOnlyResource());
getJournal().dropIndex(name);
log.info("Dropping source index: " + name); getJournal().dropIndex(name);
log.info("Dropping source index: " + name); getJournal().dropIndex(name);
getJournal().dropIndex(name);
getJournal().dropIndex(getOnlyResource());
getJournal().dropIndex(getOnlyResource());