Revision 2592
Added by sgarg over 19 years ago
src/edu/ucsb/nceas/metacat/Eml200SAXHandler.java | ||
---|---|---|
1683 | 1683 |
|
1684 | 1684 |
// clean the subtree record |
1685 | 1685 |
accessSubTreeAlreadyWriteDBList = new Hashtable(); |
1686 |
|
|
1687 |
// Starting new thread for writing XML Index. |
|
1688 |
// It calls the run method of the thread. |
|
1689 |
boolean useXMLIndex = (new Boolean(MetaCatUtil.getOption("usexmlindex"))) |
|
1690 |
.booleanValue(); |
|
1691 |
if (useXMLIndex) { |
|
1692 |
try { |
|
1693 |
xmlIndex.start(); |
|
1694 |
} catch (NullPointerException e) { |
|
1695 |
xmlIndex = null; |
|
1696 |
throw new SAXException( |
|
1697 |
"Problem with starting thread for writing XML Index. " |
|
1698 |
+ e.getMessage()); |
|
1699 |
} |
|
1700 |
} |
|
1701 | 1686 |
} |
1702 | 1687 |
|
1703 | 1688 |
|
src/edu/ucsb/nceas/metacat/Eml210SAXHandler.java | ||
---|---|---|
135 | 135 |
|
136 | 136 |
private Vector inlineFileIDList = new Vector(); |
137 | 137 |
|
138 |
|
|
139 | 138 |
// Constant |
140 | 139 |
private static final String EML = "eml"; |
141 | 140 |
|
... | ... | |
1422 | 1421 |
writeOnlineDataFileIdIntoRelationTable(id); |
1423 | 1422 |
} |
1424 | 1423 |
|
1425 |
// Starting new thread for writing XML Index. |
|
1426 |
// It calls the run method of the thread. |
|
1427 |
boolean useXMLIndex = (new Boolean(MetaCatUtil.getOption("usexmlindex"))) |
|
1428 |
.booleanValue(); |
|
1429 |
if (useXMLIndex) { |
|
1430 |
try { |
|
1431 |
xmlIndex.start(); |
|
1432 |
} catch (NullPointerException e) { |
|
1433 |
xmlIndex = null; |
|
1434 |
throw new SAXException( |
|
1435 |
"Problem with starting thread for writing XML Index. " |
|
1436 |
+ e.getMessage()); |
|
1437 |
} |
|
1438 |
} |
|
1439 | 1424 |
} |
1440 | 1425 |
|
1441 | 1426 |
/* The method to write all access rule into db */ |
Also available in: Unified diff
Removing the code that calls the indexing thread. This call will be made from documentImpl.java once document insertion and update is finished.