From: Jean-Marc V. <jm...@us...> - 2004-07-21 05:46:33
|
Update of /cvsroot/exist/eXist-1.0/src/org/exist/xmldb In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20126/src/org/exist/xmldb Modified Files: RemoteIndexQueryService.java Log Message: implement reindexCollection (not yet tested) Index: RemoteIndexQueryService.java =================================================================== RCS file: /cvsroot/exist/eXist-1.0/src/org/exist/xmldb/RemoteIndexQueryService.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** RemoteIndexQueryService.java 2 Jun 2004 11:28:42 -0000 1.6 --- RemoteIndexQueryService.java 21 Jul 2004 05:46:22 -0000 1.7 *************** *** 44,60 **** ! /* (non-Javadoc) ! * @see org.exist.xmldb.IndexQueryService#reindexCollection() ! */ public void reindexCollection() throws XMLDBException { ! throw new XMLDBException(ErrorCodes.NOT_IMPLEMENTED); } ! /* (non-Javadoc) ! * @see org.exist.xmldb.IndexQueryService#reindexCollection(java.lang.String) ! */ public void reindexCollection(String collectionPath) throws XMLDBException { ! throw new XMLDBException(ErrorCodes.NOT_IMPLEMENTED); } --- 44,70 ---- ! /** @see org.exist.xmldb.IndexQueryService#reindexCollection() */ public void reindexCollection() throws XMLDBException { ! reindexCollection( parent.getPath() ); } ! /** @see org.exist.xmldb.IndexQueryService#reindexCollection(java.lang.String) */ public void reindexCollection(String collectionPath) throws XMLDBException { ! String path = (collectionPath.startsWith("/db") ? collectionPath : ! parent.getPath() + '/' + collectionPath); ! Vector params = new Vector(); ! params.addElement(path); ! try { ! Vector result = (Vector) rpcClient.execute("reindexCollection", params); ! } catch (XmlRpcException e) { ! throw new XMLDBException( ! ErrorCodes.UNKNOWN_ERROR, ! "xmlrpc error while doing reindexCollection: ", e); ! } catch (IOException e) { ! throw new XMLDBException( ! ErrorCodes.UNKNOWN_ERROR, ! "xmlrpc error while doing reindexCollection: ", e); ! } } |