You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@manifoldcf.apache.org by kw...@apache.org on 2010/08/23 20:08:42 UTC
svn commit: r988237 [10/24] - in /incubator/lcf/trunk:
modules/connectors/activedirectory/connector/org/apache/acf/authorities/authorities/activedirectory/
modules/connectors/documentum/connector/org/apache/acf/crawler/authorities/DCTM/
modules/connect...
Modified: incubator/lcf/trunk/modules/framework/agents/org/apache/acf/agents/agentmanager/AgentManager.java
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/modules/framework/agents/org/apache/acf/agents/agentmanager/AgentManager.java?rev=988237&r1=988236&r2=988237&view=diff
==============================================================================
--- incubator/lcf/trunk/modules/framework/agents/org/apache/acf/agents/agentmanager/AgentManager.java (original)
+++ incubator/lcf/trunk/modules/framework/agents/org/apache/acf/agents/agentmanager/AgentManager.java Mon Aug 23 18:08:32 2010
@@ -39,7 +39,7 @@ public class AgentManager extends org.ap
*@param database is the database instance.
*/
public AgentManager(IThreadContext threadContext, IDBInterface database)
- throws LCFException
+ throws ACFException
{
super(database,"agents");
this.threadContext = threadContext;
@@ -48,7 +48,7 @@ public class AgentManager extends org.ap
/** Install or upgrade.
*/
public void install()
- throws LCFException
+ throws ACFException
{
// We always use an outer loop, in case the upgrade will need it.
while (true)
@@ -75,7 +75,7 @@ public class AgentManager extends org.ap
/** Uninstall. Also uninstalls all remaining agents.
*/
public void deinstall()
- throws LCFException
+ throws ACFException
{
// Since we are uninstalling agents, better do this inside a transaction
beginTransaction();
@@ -93,7 +93,7 @@ public class AgentManager extends org.ap
}
performDrop(null);
}
- catch (LCFException e)
+ catch (ACFException e)
{
signalRollback();
throw e;
@@ -114,7 +114,7 @@ public class AgentManager extends org.ap
*@param className is the class.
*/
public void registerAgent(String className)
- throws LCFException
+ throws ACFException
{
// Do in a transaction, so the installation is atomic
beginTransaction();
@@ -135,7 +135,7 @@ public class AgentManager extends org.ap
IAgent agent = AgentFactory.make(threadContext,className);
agent.install();
}
- catch (LCFException e)
+ catch (ACFException e)
{
signalRollback();
throw e;
@@ -156,7 +156,7 @@ public class AgentManager extends org.ap
*@param className is the class to unregister.
*/
public void unregisterAgent(String className)
- throws LCFException
+ throws ACFException
{
// Do in a transaction, so the installation is atomic
beginTransaction();
@@ -169,7 +169,7 @@ public class AgentManager extends org.ap
// Remove from table
removeAgent(className);
}
- catch (LCFException e)
+ catch (ACFException e)
{
signalRollback();
throw e;
@@ -191,7 +191,7 @@ public class AgentManager extends org.ap
*@param className is the class to remove.
*/
public void removeAgent(String className)
- throws LCFException
+ throws ACFException
{
// Remove from table
ArrayList list = new ArrayList();
@@ -203,7 +203,7 @@ public class AgentManager extends org.ap
*@return the classnames in an array.
*/
public String[] getAllAgents()
- throws LCFException
+ throws ACFException
{
IResultSet set = performQuery("SELECT * FROM "+getTableName(),null,null,null);
String[] rval = new String[set.getRowCount()];
Modified: incubator/lcf/trunk/modules/framework/agents/org/apache/acf/agents/common/XMLContext.java
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/modules/framework/agents/org/apache/acf/agents/common/XMLContext.java?rev=988237&r1=988236&r2=988237&view=diff
==============================================================================
--- incubator/lcf/trunk/modules/framework/agents/org/apache/acf/agents/common/XMLContext.java (original)
+++ incubator/lcf/trunk/modules/framework/agents/org/apache/acf/agents/common/XMLContext.java Mon Aug 23 18:08:32 2010
@@ -125,7 +125,7 @@ public class XMLContext
{
throw new SAXException(e);
}
- catch (LCFException e)
+ catch (ACFException e)
{
throw new SAXException(e);
}
@@ -152,7 +152,7 @@ public class XMLContext
{
throw new SAXException(e);
}
- catch (LCFException e)
+ catch (ACFException e)
{
throw new SAXException(e);
}
@@ -171,7 +171,7 @@ public class XMLContext
{
throw new SAXException(e);
}
- catch (LCFException e)
+ catch (ACFException e)
{
throw new SAXException(e);
}
@@ -181,7 +181,7 @@ public class XMLContext
* This method is called without fail at the end of any parse, whether it errored out or not, so that proper cleanup always happens for any tags left on the stack.
*/
public final void cleanup()
- throws LCFException
+ throws ACFException
{
tagCleanup();
theStream.setContext(previousContext);
@@ -190,7 +190,7 @@ public class XMLContext
/** This method is meant to be extended by classes that extend this class. The form of this method is meant to enable creation of a
* context object derived from XMLContext that understands how to actually handle tags and content within the current context. */
protected XMLContext beginTag(String namespaceURI, String localName, String qName, Attributes atts)
- throws LCFException, ServiceInterruption
+ throws ACFException, ServiceInterruption
{
// The default action is to establish a new default context.
return null;
@@ -198,19 +198,19 @@ public class XMLContext
/** This method is meant to be extended by classes that extend this class */
protected void endTag()
- throws LCFException, ServiceInterruption
+ throws ACFException, ServiceInterruption
{
}
/** This method is meant to be extended by classes that extend this class */
protected void tagContents(char[] ch, int start, int length)
- throws LCFException, ServiceInterruption
+ throws ACFException, ServiceInterruption
{
}
/** Override this method to be called during cleanup */
protected void tagCleanup()
- throws LCFException
+ throws ACFException
{
}
}
Modified: incubator/lcf/trunk/modules/framework/agents/org/apache/acf/agents/common/XMLFileContext.java
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/modules/framework/agents/org/apache/acf/agents/common/XMLFileContext.java?rev=988237&r1=988236&r2=988237&view=diff
==============================================================================
--- incubator/lcf/trunk/modules/framework/agents/org/apache/acf/agents/common/XMLFileContext.java (original)
+++ incubator/lcf/trunk/modules/framework/agents/org/apache/acf/agents/common/XMLFileContext.java Mon Aug 23 18:08:32 2010
@@ -41,7 +41,7 @@ public class XMLFileContext extends XMLO
/** Full constructor. Used for individual tags. */
public XMLFileContext(XMLStream theStream, String namespaceURI, String localname, String qname, Attributes theseAttributes, File f)
- throws LCFException, UnsupportedEncodingException, FileNotFoundException
+ throws ACFException, UnsupportedEncodingException, FileNotFoundException
{
// Construct an appropriate writer
super(theStream,namespaceURI,localname,qname,theseAttributes,new FileOutputStream(f));
@@ -51,7 +51,7 @@ public class XMLFileContext extends XMLO
/** Get file object, flushing it, closing it, and clearing it. (This prevents the file from being deleted during cleanup of this context.) */
public File getCompletedFile()
- throws LCFException
+ throws ACFException
{
flush();
close();
@@ -62,7 +62,7 @@ public class XMLFileContext extends XMLO
/** Cleanup whatever is left over */
public void tagCleanup()
- throws LCFException
+ throws ACFException
{
if (outputFile != null)
{
Modified: incubator/lcf/trunk/modules/framework/agents/org/apache/acf/agents/common/XMLOutputStreamContext.java
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/modules/framework/agents/org/apache/acf/agents/common/XMLOutputStreamContext.java?rev=988237&r1=988236&r2=988237&view=diff
==============================================================================
--- incubator/lcf/trunk/modules/framework/agents/org/apache/acf/agents/common/XMLOutputStreamContext.java (original)
+++ incubator/lcf/trunk/modules/framework/agents/org/apache/acf/agents/common/XMLOutputStreamContext.java Mon Aug 23 18:08:32 2010
@@ -42,7 +42,7 @@ public class XMLOutputStreamContext exte
/** Full constructor. Used for individual tags. */
public XMLOutputStreamContext(XMLStream theStream, String namespaceURI, String localname, String qname, Attributes theseAttributes, OutputStream os)
- throws LCFException, UnsupportedEncodingException
+ throws ACFException, UnsupportedEncodingException
{
// Construct an appropriate writer
super(theStream,namespaceURI,localname,qname,theseAttributes,new OutputStreamWriter(os,"utf-8"));
@@ -52,7 +52,7 @@ public class XMLOutputStreamContext exte
/** Flush the data to the underlying output stream */
public void flush()
- throws LCFException
+ throws ACFException
{
try
{
@@ -65,21 +65,21 @@ public class XMLOutputStreamContext exte
}
catch (java.net.SocketTimeoutException e)
{
- throw new LCFException("Socket timeout exception: "+e.getMessage(),e);
+ throw new ACFException("Socket timeout exception: "+e.getMessage(),e);
}
catch (InterruptedIOException e)
{
- throw new LCFException("Interrupted: "+e.getMessage(),e,LCFException.INTERRUPTED);
+ throw new ACFException("Interrupted: "+e.getMessage(),e,ACFException.INTERRUPTED);
}
catch (IOException e)
{
- throw new LCFException("IO exception: "+e.getMessage(),e);
+ throw new ACFException("IO exception: "+e.getMessage(),e);
}
}
/** Close the underlying stream. */
public void close()
- throws LCFException
+ throws ACFException
{
// Now, close.
try
@@ -92,15 +92,15 @@ public class XMLOutputStreamContext exte
}
catch (java.net.SocketTimeoutException e)
{
- throw new LCFException("Socket timeout exception: "+e.getMessage(),e);
+ throw new ACFException("Socket timeout exception: "+e.getMessage(),e);
}
catch (InterruptedIOException e)
{
- throw new LCFException("Interrupted: "+e.getMessage(),e,LCFException.INTERRUPTED);
+ throw new ACFException("Interrupted: "+e.getMessage(),e,ACFException.INTERRUPTED);
}
catch (IOException e)
{
- throw new LCFException("IO exception: "+e.getMessage(),e);
+ throw new ACFException("IO exception: "+e.getMessage(),e);
}
}
Modified: incubator/lcf/trunk/modules/framework/agents/org/apache/acf/agents/common/XMLStream.java
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/modules/framework/agents/org/apache/acf/agents/common/XMLStream.java?rev=988237&r1=988236&r2=988237&view=diff
==============================================================================
--- incubator/lcf/trunk/modules/framework/agents/org/apache/acf/agents/common/XMLStream.java (original)
+++ incubator/lcf/trunk/modules/framework/agents/org/apache/acf/agents/common/XMLStream.java Mon Aug 23 18:08:32 2010
@@ -47,7 +47,7 @@ public class XMLStream
/** Constructor. This does NOT actually execute the parse yet, because we need the object before that makes any sense.
*/
public XMLStream(boolean laxChecking)
- throws LCFException
+ throws ACFException
{
try
{
@@ -68,49 +68,49 @@ public class XMLStream
catch (SAXException e)
{
Exception e2 = e.getException();
- if (e2 != null && e2 instanceof LCFException)
- throw (LCFException)e2;
- throw new LCFException("Error setting up parser: "+e.getMessage(),e);
+ if (e2 != null && e2 instanceof ACFException)
+ throw (ACFException)e2;
+ throw new ACFException("Error setting up parser: "+e.getMessage(),e);
}
}
/** Default constructor */
public XMLStream()
- throws LCFException
+ throws ACFException
{
this(true);
}
public void parse(InputStream xmlInputStream)
- throws LCFException, ServiceInterruption, IOException
+ throws ACFException, ServiceInterruption, IOException
{
try
{
InputSource is = new InputSource(xmlInputStream);
xr.parse(is);
if (parseException != null)
- throw new LCFException("XML parse error: "+parseException.getMessage(),parseException);
+ throw new ACFException("XML parse error: "+parseException.getMessage(),parseException);
}
catch (SAXException e)
{
Exception e2 = e.getException();
- if (e2 != null && e2 instanceof LCFException)
- throw (LCFException)e2;
+ if (e2 != null && e2 instanceof ACFException)
+ throw (ACFException)e2;
if (e2 != null && e2 instanceof ServiceInterruption)
throw (ServiceInterruption)e2;
- throw new LCFException("Error setting up parser: "+e.getMessage(),e);
+ throw new ACFException("Error setting up parser: "+e.getMessage(),e);
}
catch (RuntimeException e)
{
// Xerces is unfortunately not constructed in such a way that it doesn't occasionally completely barf on a malformed file.
// So, we catch runtime exceptions and treat them as parse errors.
- throw new LCFException("XML parse error: "+e.getMessage(),e);
+ throw new ACFException("XML parse error: "+e.getMessage(),e);
}
}
/** Call this method to clean up completely after a parse attempt, whether successful or failure. */
public void cleanup()
- throws LCFException
+ throws ACFException
{
// This sets currentContext == null as a side effect, unless an error occurs during cleanup!!
currentContext.cleanup();
Modified: incubator/lcf/trunk/modules/framework/agents/org/apache/acf/agents/common/XMLStringContext.java
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/modules/framework/agents/org/apache/acf/agents/common/XMLStringContext.java?rev=988237&r1=988236&r2=988237&view=diff
==============================================================================
--- incubator/lcf/trunk/modules/framework/agents/org/apache/acf/agents/common/XMLStringContext.java (original)
+++ incubator/lcf/trunk/modules/framework/agents/org/apache/acf/agents/common/XMLStringContext.java Mon Aug 23 18:08:32 2010
@@ -53,7 +53,7 @@ public class XMLStringContext extends XM
/** This method is meant to be extended by classes that extend this class */
protected void tagContents(char[] ch, int start, int length)
- throws LCFException
+ throws ACFException
{
// Append the characters to the buffer
value.append(ch,start,length);
Modified: incubator/lcf/trunk/modules/framework/agents/org/apache/acf/agents/common/XMLWriterContext.java
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/modules/framework/agents/org/apache/acf/agents/common/XMLWriterContext.java?rev=988237&r1=988236&r2=988237&view=diff
==============================================================================
--- incubator/lcf/trunk/modules/framework/agents/org/apache/acf/agents/common/XMLWriterContext.java (original)
+++ incubator/lcf/trunk/modules/framework/agents/org/apache/acf/agents/common/XMLWriterContext.java Mon Aug 23 18:08:32 2010
@@ -41,7 +41,7 @@ public class XMLWriterContext extends XM
/** Full constructor. Used for individual tags. */
public XMLWriterContext(XMLStream theStream, String namespaceURI, String localname, String qname, Attributes theseAttributes, Writer writer)
- throws LCFException
+ throws ACFException
{
super(theStream,namespaceURI,localname,qname,theseAttributes);
theWriter = writer;
@@ -49,7 +49,7 @@ public class XMLWriterContext extends XM
/** Flush the data to the underlying output stream */
public void flush()
- throws LCFException
+ throws ACFException
{
try
{
@@ -58,21 +58,21 @@ public class XMLWriterContext extends XM
}
catch (java.net.SocketTimeoutException e)
{
- throw new LCFException("Socket timeout exception: "+e.getMessage(),e);
+ throw new ACFException("Socket timeout exception: "+e.getMessage(),e);
}
catch (InterruptedIOException e)
{
- throw new LCFException("Interrupted: "+e.getMessage(),e,LCFException.INTERRUPTED);
+ throw new ACFException("Interrupted: "+e.getMessage(),e,ACFException.INTERRUPTED);
}
catch (IOException e)
{
- throw new LCFException("IO exception: "+e.getMessage(),e);
+ throw new ACFException("IO exception: "+e.getMessage(),e);
}
}
/** This method is meant to be extended by classes that extend this class */
protected void tagContents(char[] ch, int start, int length)
- throws LCFException
+ throws ACFException
{
try
{
@@ -80,15 +80,15 @@ public class XMLWriterContext extends XM
}
catch (java.net.SocketTimeoutException e)
{
- throw new LCFException("Socket timeout exception: "+e.getMessage(),e);
+ throw new ACFException("Socket timeout exception: "+e.getMessage(),e);
}
catch (InterruptedIOException e)
{
- throw new LCFException("Interrupted: "+e.getMessage(),e,LCFException.INTERRUPTED);
+ throw new ACFException("Interrupted: "+e.getMessage(),e,ACFException.INTERRUPTED);
}
catch (IOException e)
{
- throw new LCFException("IO exception: "+e.getMessage(),e);
+ throw new ACFException("IO exception: "+e.getMessage(),e);
}
}
@@ -96,7 +96,7 @@ public class XMLWriterContext extends XM
* The XMLWriterContext accepts all subtags in their text form.
*/
protected XMLContext beginTag(String namespaceURI, String localName, String qName, Attributes atts)
- throws LCFException, ServiceInterruption
+ throws ACFException, ServiceInterruption
{
// First, write out the tag text. We strip off the namespace.
try
@@ -117,15 +117,15 @@ public class XMLWriterContext extends XM
}
catch (java.net.SocketTimeoutException e)
{
- throw new LCFException("Socket timeout exception: "+e.getMessage(),e);
+ throw new ACFException("Socket timeout exception: "+e.getMessage(),e);
}
catch (InterruptedIOException e)
{
- throw new LCFException("Interrupted: "+e.getMessage(),e,LCFException.INTERRUPTED);
+ throw new ACFException("Interrupted: "+e.getMessage(),e,ACFException.INTERRUPTED);
}
catch (IOException e)
{
- throw new LCFException("IO exception: "+e.getMessage(),e);
+ throw new ACFException("IO exception: "+e.getMessage(),e);
}
// Now, start a new context which is also a writer context.
super.beginTag(namespaceURI,localName,qName,atts);
@@ -136,7 +136,7 @@ public class XMLWriterContext extends XM
* The XMLWriterContext accepts all subtags in their text form.
*/
protected void endTag()
- throws LCFException, ServiceInterruption
+ throws ACFException, ServiceInterruption
{
// First, write out the tag text. We strip off the namespace.
try
@@ -148,15 +148,15 @@ public class XMLWriterContext extends XM
}
catch (java.net.SocketTimeoutException e)
{
- throw new LCFException("Socket timeout exception: "+e.getMessage(),e);
+ throw new ACFException("Socket timeout exception: "+e.getMessage(),e);
}
catch (InterruptedIOException e)
{
- throw new LCFException("Interrupted: "+e.getMessage(),e,LCFException.INTERRUPTED);
+ throw new ACFException("Interrupted: "+e.getMessage(),e,ACFException.INTERRUPTED);
}
catch (IOException e)
{
- throw new LCFException("IO exception: "+e.getMessage(),e);
+ throw new ACFException("IO exception: "+e.getMessage(),e);
}
super.endTag();
}
Modified: incubator/lcf/trunk/modules/framework/agents/org/apache/acf/agents/incrementalingest/IncrementalIngester.java
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/modules/framework/agents/org/apache/acf/agents/incrementalingest/IncrementalIngester.java?rev=988237&r1=988236&r2=988237&view=diff
==============================================================================
--- incubator/lcf/trunk/modules/framework/agents/org/apache/acf/agents/incrementalingest/IncrementalIngester.java (original)
+++ incubator/lcf/trunk/modules/framework/agents/org/apache/acf/agents/incrementalingest/IncrementalIngester.java Mon Aug 23 18:08:32 2010
@@ -21,7 +21,7 @@ package org.apache.acf.agents.incrementa
import org.apache.acf.core.interfaces.*;
import org.apache.acf.agents.interfaces.*;
import org.apache.acf.agents.system.Logging;
-import org.apache.acf.agents.system.LCF;
+import org.apache.acf.agents.system.ACF;
import java.util.*;
import java.io.*;
@@ -64,7 +64,7 @@ public class IncrementalIngester extends
/** Constructor.
*/
public IncrementalIngester(IThreadContext threadContext, IDBInterface database)
- throws LCFException
+ throws ACFException
{
super(database,"ingeststatus");
this.threadContext = threadContext;
@@ -75,7 +75,7 @@ public class IncrementalIngester extends
/** Install the incremental ingestion manager.
*/
public void install()
- throws LCFException
+ throws ACFException
{
String outputConnectionTableName = connectionManager.getTableName();
String outputConnectionNameField = connectionManager.getConnectionNameColumn();
@@ -146,16 +146,16 @@ public class IncrementalIngester extends
*@return the time, in minutes.
*/
public int getAnalyzeTime()
- throws LCFException
+ throws ACFException
{
// For this table, we base the wait time on the number of rows in it.
IResultSet set = performQuery("SELECT COUNT("+idField+") FROM "+getTableName(),null,null,null);
if (set.getRowCount() < 1)
- throw new LCFException("Expected result with one row");
+ throw new ACFException("Expected result with one row");
IResultRow row = set.getRow(0);
Iterator columnNames = row.getColumns();
if (!columnNames.hasNext())
- throw new LCFException("Expected result with one column");
+ throw new ACFException("Expected result with one column");
String columnName = (String)columnNames.next();
long value = new Long(row.getValue(columnName).toString()).longValue();
if (value < 10000L)
@@ -170,7 +170,7 @@ public class IncrementalIngester extends
/** Analyze database tables.
*/
public void analyzeTables()
- throws LCFException
+ throws ACFException
{
analyzeTable();
}
@@ -178,7 +178,7 @@ public class IncrementalIngester extends
/** Uninstall the incremental ingestion manager.
*/
public void deinstall()
- throws LCFException
+ throws ACFException
{
performDrop(null);
}
@@ -186,7 +186,7 @@ public class IncrementalIngester extends
/** Flush all knowledge of what was ingested before.
*/
public void clearAll()
- throws LCFException
+ throws ACFException
{
performDelete("",null,null);
}
@@ -197,7 +197,7 @@ public class IncrementalIngester extends
*@return true if the mimeType is indexable.
*/
public boolean checkMimeTypeIndexable(String outputConnectionName, String mimeType)
- throws LCFException, ServiceInterruption
+ throws ACFException, ServiceInterruption
{
IOutputConnection connection = connectionManager.load(outputConnectionName);
IOutputConnector connector = OutputConnectorFactory.grab(threadContext,connection.getClassName(),connection.getConfigParams(),connection.getMaxConnections());
@@ -220,7 +220,7 @@ public class IncrementalIngester extends
*@return true if the local file is indexable.
*/
public boolean checkDocumentIndexable(String outputConnectionName, File localFile)
- throws LCFException, ServiceInterruption
+ throws ACFException, ServiceInterruption
{
IOutputConnection connection = connectionManager.load(outputConnectionName);
IOutputConnector connector = OutputConnectorFactory.grab(threadContext,connection.getClassName(),connection.getConfigParams(),connection.getMaxConnections());
@@ -251,7 +251,7 @@ public class IncrementalIngester extends
String identifierClass, String identifierHash,
String documentVersion,
long recordTime, IOutputActivity activities)
- throws LCFException, ServiceInterruption
+ throws ACFException, ServiceInterruption
{
IOutputConnection connection = connectionManager.load(outputConnectionName);
@@ -290,7 +290,7 @@ public class IncrementalIngester extends
RepositoryDocument data,
long ingestTime, String documentURI,
IOutputActivity activities)
- throws LCFException, ServiceInterruption
+ throws ACFException, ServiceInterruption
{
IOutputConnection connection = connectionManager.load(outputConnectionName);
@@ -312,14 +312,14 @@ public class IncrementalIngester extends
RepositoryDocument data,
long ingestTime, String documentURI,
IOutputActivity activities)
- throws LCFException, ServiceInterruption
+ throws ACFException, ServiceInterruption
{
// No transactions; not safe because post may take too much time
// First, calculate a document uri hash value
String documentURIHash = null;
if (documentURI != null)
- documentURIHash = LCF.hash(documentURI);
+ documentURIHash = ACF.hash(documentURI);
// See what uri was used before for this doc, if any
ArrayList list = new ArrayList();
@@ -432,7 +432,7 @@ public class IncrementalIngester extends
public void documentCheckMultiple(String outputConnectionName,
String[] identifierClasses, String[] identifierHashes,
long checkTime)
- throws LCFException
+ throws ACFException
{
beginTransaction();
try
@@ -500,7 +500,7 @@ public class IncrementalIngester extends
if (j > 0)
updateRowIds(list,sb.toString(),checkTime);
}
- catch (LCFException e)
+ catch (ACFException e)
{
signalRollback();
throw e;
@@ -526,7 +526,7 @@ public class IncrementalIngester extends
public void documentCheck(String outputConnectionName,
String identifierClass, String identifierHash,
long checkTime)
- throws LCFException
+ throws ACFException
{
documentCheckMultiple(outputConnectionName,new String[]{identifierClass},new String[]{identifierHash},checkTime);
}
@@ -534,7 +534,7 @@ public class IncrementalIngester extends
/** Update a chunk of row ids.
*/
protected void updateRowIds(ArrayList list, String queryPart, long checkTime)
- throws LCFException
+ throws ACFException
{
HashMap map = new HashMap();
map.put(lastIngestField,new Long(checkTime));
@@ -550,7 +550,7 @@ public class IncrementalIngester extends
public void documentDeleteMultiple(String[] outputConnectionNames,
String[] identifierClasses, String[] identifierHashes,
IOutputRemoveActivity activities)
- throws LCFException, ServiceInterruption
+ throws ACFException, ServiceInterruption
{
// Segregate request by connection names
HashMap keyMap = new HashMap();
@@ -597,7 +597,7 @@ public class IncrementalIngester extends
public void documentDeleteMultiple(String outputConnectionName,
String[] identifierClasses, String[] identifierHashes,
IOutputRemoveActivity activities)
- throws LCFException, ServiceInterruption
+ throws ACFException, ServiceInterruption
{
IOutputConnection connection = connectionManager.load(outputConnectionName);
@@ -677,7 +677,7 @@ public class IncrementalIngester extends
while (j < validURIArray.length)
{
String docDBString = validURIArray[j++];
- String docDBHashString = LCF.hash(docDBString);
+ String docDBHashString = ACF.hash(docDBString);
docURIValues.put(docDBString,docDBString);
docURIHashValues.put(docDBHashString,docDBHashString);
}
@@ -797,7 +797,7 @@ public class IncrementalIngester extends
deleteRowIds(list,sb.toString());
}
- catch (LCFException e)
+ catch (ACFException e)
{
signalRollback();
throw e;
@@ -823,7 +823,7 @@ public class IncrementalIngester extends
*/
protected void findRowIdsForURIs(String outputConnectionName, HashMap rowIDSet, HashMap uris, ArrayList hashParamValues,
String paramList)
- throws LCFException
+ throws ACFException
{
hashParamValues.add(outputConnectionName);
IResultSet set = performQuery("SELECT "+idField+","+docURIField+" FROM "+
@@ -849,7 +849,7 @@ public class IncrementalIngester extends
*/
protected void findRowIdsForDocIds(String outputConnectionName, HashMap rowIDSet, ArrayList paramValues,
String paramList)
- throws LCFException
+ throws ACFException
{
paramValues.add(outputConnectionName);
IResultSet set = performQuery("SELECT "+idField+" FROM "+
@@ -866,7 +866,7 @@ public class IncrementalIngester extends
/** Delete a chunk of row ids.
*/
protected void deleteRowIds(ArrayList list, String queryPart)
- throws LCFException
+ throws ACFException
{
performDelete("WHERE "+idField+" IN ("+queryPart+")",list,null);
}
@@ -880,7 +880,7 @@ public class IncrementalIngester extends
public void documentDelete(String outputConnectionName,
String identifierClass, String identifierHash,
IOutputRemoveActivity activities)
- throws LCFException, ServiceInterruption
+ throws ACFException, ServiceInterruption
{
documentDeleteMultiple(outputConnectionName,new String[]{identifierClass},new String[]{identifierHash},activities);
}
@@ -891,7 +891,7 @@ public class IncrementalIngester extends
* that don't exist in the index.
*/
protected DeleteInfo[] getDocumentURIMultiple(String outputConnectionName, String[] identifierClasses, String[] identifierHashes)
- throws LCFException
+ throws ACFException
{
DeleteInfo[] rval = new DeleteInfo[identifierHashes.length];
HashMap map = new HashMap();
@@ -930,7 +930,7 @@ public class IncrementalIngester extends
getDocumentURIChunk(rval,map,outputConnectionName,sb.toString(),list);
return rval;
}
- catch (LCFException e)
+ catch (ACFException e)
{
signalRollback();
throw e;
@@ -955,7 +955,7 @@ public class IncrementalIngester extends
*/
public DocumentIngestStatus[] getDocumentIngestDataMultiple(String[] outputConnectionNames,
String[] identifierClasses, String[] identifierHashes)
- throws LCFException
+ throws ACFException
{
// Segregate request by connection names
HashMap keyMap = new HashMap();
@@ -1011,7 +1011,7 @@ public class IncrementalIngester extends
*/
public DocumentIngestStatus[] getDocumentIngestDataMultiple(String outputConnectionName,
String[] identifierClasses, String[] identifierHashes)
- throws LCFException
+ throws ACFException
{
// Build the return array
DocumentIngestStatus[] rval = new DocumentIngestStatus[identifierHashes.length];
@@ -1053,7 +1053,7 @@ public class IncrementalIngester extends
getDocumentIngestDataChunk(rval,indexMap,outputConnectionName,sb.toString(),list);
return rval;
}
- catch (LCFException e)
+ catch (ACFException e)
{
signalRollback();
throw e;
@@ -1077,7 +1077,7 @@ public class IncrementalIngester extends
*/
public DocumentIngestStatus getDocumentIngestData(String outputConnectionName,
String identifierClass, String identifierHash)
- throws LCFException
+ throws ACFException
{
return getDocumentIngestDataMultiple(outputConnectionName,new String[]{identifierClass},new String[]{identifierHash})[0];
}
@@ -1091,7 +1091,7 @@ public class IncrementalIngester extends
*/
public long getDocumentUpdateInterval(String outputConnectionName,
String identifierClass, String identifierHash)
- throws LCFException
+ throws ACFException
{
return getDocumentUpdateIntervalMultiple(outputConnectionName,new String[]{identifierClass},new String[]{identifierHash})[0];
}
@@ -1105,7 +1105,7 @@ public class IncrementalIngester extends
*/
public long[] getDocumentUpdateIntervalMultiple(String outputConnectionName,
String[] identifierClasses, String[] identifierHashes)
- throws LCFException
+ throws ACFException
{
// Do these all at once!!
// First, create a return array
@@ -1164,7 +1164,7 @@ public class IncrementalIngester extends
*@param returnMap is a mapping from document id to rval index.
*/
protected void getIntervals(long[] rval, String outputConnectionName, ArrayList list, String queryPart, HashMap returnMap)
- throws LCFException
+ throws ACFException
{
list.add(outputConnectionName);
IResultSet set = performQuery("SELECT "+docKeyField+","+changeCountField+","+firstIngestField+","+lastIngestField+
@@ -1193,7 +1193,7 @@ public class IncrementalIngester extends
*@param outputConnectionName is the name of the output connection associated with this action.
*/
public void resetOutputConnection(String outputConnectionName)
- throws LCFException
+ throws ACFException
{
// We're not going to blow away the records, but we are going to set their versions to mean, "reindex required"
HashMap map = new HashMap();
@@ -1218,7 +1218,7 @@ public class IncrementalIngester extends
String docKey, String documentVersion,
String outputVersion, String authorityNameString,
long ingestTime, String documentURI, String documentURIHash)
- throws LCFException
+ throws ACFException
{
while (true)
{
@@ -1268,11 +1268,11 @@ public class IncrementalIngester extends
conditionallyAnalyzeInsert();
return;
}
- catch (LCFException e)
+ catch (ACFException e)
{
signalRollback();
// If this is simply a constraint violation, we just want to fall through and try the update!
- if (e.getErrorCode() != LCFException.DATABASE_TRANSACTION_ABORT)
+ if (e.getErrorCode() != ACFException.DATABASE_TRANSACTION_ABORT)
throw e;
// Otherwise, exit transaction and fall through to 'update' attempt
}
@@ -1329,7 +1329,7 @@ public class IncrementalIngester extends
// Update failed to find a matching record, so cycle back to retry the insert
}
- catch (LCFException e)
+ catch (ACFException e)
{
signalRollback();
throw e;
@@ -1353,7 +1353,7 @@ public class IncrementalIngester extends
*@param list is the parameter list for the query.
*/
protected void getDocumentURIChunk(DeleteInfo[] rval, Map map, String outputConnectionName, String clause, ArrayList list)
- throws LCFException
+ throws ACFException
{
list.add(outputConnectionName);
IResultSet set = performQuery("SELECT "+docKeyField+","+docURIField+","+lastOutputVersionField+" FROM "+getTableName()+" WHERE "+
@@ -1383,7 +1383,7 @@ public class IncrementalIngester extends
*@param list is the parameter list for the query.
*/
protected void getDocumentIngestDataChunk(DocumentIngestStatus[] rval, Map map, String outputConnectionName, String clause, ArrayList list)
- throws LCFException
+ throws ACFException
{
// Get the primary records associated with this hash value
list.add(outputConnectionName);
@@ -1413,7 +1413,7 @@ public class IncrementalIngester extends
/** Add or replace document, using the specified output connection, via the standard pool.
*/
protected int addOrReplaceDocument(IOutputConnection connection, String documentURI, String outputDescription, RepositoryDocument document, String authorityNameString, IOutputAddActivity activities)
- throws LCFException, ServiceInterruption
+ throws ACFException, ServiceInterruption
{
IOutputConnector connector = OutputConnectorFactory.grab(threadContext,connection.getClassName(),connection.getConfigParams(),connection.getMaxConnections());
if (connector == null)
@@ -1432,7 +1432,7 @@ public class IncrementalIngester extends
/** Remove document, using the specified output connection, via the standard pool.
*/
protected void removeDocument(IOutputConnection connection, String documentURI, String outputDescription, IOutputRemoveActivity activities)
- throws LCFException, ServiceInterruption
+ throws ACFException, ServiceInterruption
{
IOutputConnector connector = OutputConnectorFactory.grab(threadContext,connection.getClassName(),connection.getConfigParams(),connection.getMaxConnections());
if (connector == null)
@@ -1457,7 +1457,7 @@ public class IncrementalIngester extends
/** Conditionally do analyze operation.
*/
protected void conditionallyAnalyzeInsert()
- throws LCFException
+ throws ACFException
{
synchronized (tracker)
{
Modified: incubator/lcf/trunk/modules/framework/agents/org/apache/acf/agents/interfaces/AgentFactory.java
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/modules/framework/agents/org/apache/acf/agents/interfaces/AgentFactory.java?rev=988237&r1=988236&r2=988237&view=diff
==============================================================================
--- incubator/lcf/trunk/modules/framework/agents/org/apache/acf/agents/interfaces/AgentFactory.java (original)
+++ incubator/lcf/trunk/modules/framework/agents/org/apache/acf/agents/interfaces/AgentFactory.java Mon Aug 23 18:08:32 2010
@@ -39,7 +39,7 @@ public class AgentFactory
*@return the agent.
*/
public static IAgent make(IThreadContext tc, String className)
- throws LCFException
+ throws ACFException
{
String agentName = agentIdentifier+className;
Object o = tc.get(agentName);
@@ -56,7 +56,7 @@ public class AgentFactory
arguments[0] = tc;
o = c.newInstance(arguments);
if (!(o instanceof IAgent))
- throw new LCFException("Class '"+className+"' does not implement IAgent.");
+ throw new ACFException("Class '"+className+"' does not implement IAgent.");
tc.save(agentName,o);
}
catch (InvocationTargetException e)
@@ -65,42 +65,42 @@ public class AgentFactory
if (z instanceof Error)
throw (Error)z;
else
- throw (LCFException)z;
+ throw (ACFException)z;
}
catch (ClassNotFoundException e)
{
- throw new LCFException("No class implementing IAgent called '"+
+ throw new ACFException("No class implementing IAgent called '"+
className+"'.",
e);
}
catch (NoSuchMethodException e)
{
- throw new LCFException("No appropriate constructor for IAgent implementation '"+
+ throw new ACFException("No appropriate constructor for IAgent implementation '"+
className+"'. Need xxx(ConfigParams).",
e);
}
catch (SecurityException e)
{
- throw new LCFException("Protected constructor for IAgent implementation '"+className+"'",
+ throw new ACFException("Protected constructor for IAgent implementation '"+className+"'",
e);
}
catch (IllegalAccessException e)
{
- throw new LCFException("Unavailable constructor for IAgent implementation '"+className+"'",
+ throw new ACFException("Unavailable constructor for IAgent implementation '"+className+"'",
e);
}
catch (IllegalArgumentException e)
{
- throw new LCFException("Shouldn't happen!!!",e);
+ throw new ACFException("Shouldn't happen!!!",e);
}
catch (InstantiationException e)
{
- throw new LCFException("InstantiationException for IAgent implementation '"+className+"'",
+ throw new ACFException("InstantiationException for IAgent implementation '"+className+"'",
e);
}
catch (ExceptionInInitializerError e)
{
- throw new LCFException("ExceptionInInitializerError for IAgent implementation '"+className+"'",
+ throw new ACFException("ExceptionInInitializerError for IAgent implementation '"+className+"'",
e);
}
}
Modified: incubator/lcf/trunk/modules/framework/agents/org/apache/acf/agents/interfaces/AgentManagerFactory.java
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/modules/framework/agents/org/apache/acf/agents/interfaces/AgentManagerFactory.java?rev=988237&r1=988236&r2=988237&view=diff
==============================================================================
--- incubator/lcf/trunk/modules/framework/agents/org/apache/acf/agents/interfaces/AgentManagerFactory.java (original)
+++ incubator/lcf/trunk/modules/framework/agents/org/apache/acf/agents/interfaces/AgentManagerFactory.java Mon Aug 23 18:08:32 2010
@@ -38,15 +38,15 @@ public class AgentManagerFactory
*@return the manager.
*/
public static IAgentManager make(IThreadContext threadContext)
- throws LCFException
+ throws ACFException
{
Object o = threadContext.get(agentManager);
if (o == null || !(o instanceof IAgentManager))
{
IDBInterface database = DBInterfaceFactory.make(threadContext,
- LCF.getMasterDatabaseName(),
- LCF.getMasterDatabaseUsername(),
- LCF.getMasterDatabasePassword());
+ ACF.getMasterDatabaseName(),
+ ACF.getMasterDatabaseUsername(),
+ ACF.getMasterDatabasePassword());
o = new org.apache.acf.agents.agentmanager.AgentManager(threadContext,database);
threadContext.save(agentManager,o);
@@ -60,7 +60,7 @@ public class AgentManagerFactory
*@return true if the connection is in use, false otherwise.
*/
public static boolean isOutputConnectionInUse(IThreadContext threadContext, String connName)
- throws LCFException
+ throws ACFException
{
// Instantiate the list of IAgent objects
IAgent[] theAgents = instantiateAllAgents(threadContext);
@@ -79,7 +79,7 @@ public class AgentManagerFactory
*@param connectionNames is the set of connection names.
*/
public static void noteOutputConnectorDeregistration(IThreadContext threadContext, String[] connectionNames)
- throws LCFException
+ throws ACFException
{
// Instantiate the list of IAgent objects
IAgent[] theAgents = instantiateAllAgents(threadContext);
@@ -97,7 +97,7 @@ public class AgentManagerFactory
*@param connectionNames is the set of connection names.
*/
public static void noteOutputConnectorRegistration(IThreadContext threadContext, String[] connectionNames)
- throws LCFException
+ throws ACFException
{
// Instantiate the list of IAgent objects
IAgent[] theAgents = instantiateAllAgents(threadContext);
@@ -114,7 +114,7 @@ public class AgentManagerFactory
*@param connectionName is the connection name.
*/
public static void noteOutputConnectionChange(IThreadContext threadContext, String connectionName)
- throws LCFException
+ throws ACFException
{
// Instantiate the list of IAgent objects
IAgent[] theAgents = instantiateAllAgents(threadContext);
@@ -130,7 +130,7 @@ public class AgentManagerFactory
*@return the array of such objects.
*/
public static IAgent[] instantiateAllAgents(IThreadContext threadContext)
- throws LCFException
+ throws ACFException
{
IAgentManager manager = make(threadContext);
String[] allAgents = manager.getAllAgents();
Modified: incubator/lcf/trunk/modules/framework/agents/org/apache/acf/agents/interfaces/IAgent.java
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/modules/framework/agents/org/apache/acf/agents/interfaces/IAgent.java?rev=988237&r1=988236&r2=988237&view=diff
==============================================================================
--- incubator/lcf/trunk/modules/framework/agents/org/apache/acf/agents/interfaces/IAgent.java (original)
+++ incubator/lcf/trunk/modules/framework/agents/org/apache/acf/agents/interfaces/IAgent.java Mon Aug 23 18:08:32 2010
@@ -24,7 +24,7 @@ import org.apache.acf.core.interfaces.*;
* start-up time; they run independently until the JVM is shut down.
* All agent classes are expected to support the following constructor:
*
-* xxx(IThreadContext tc) throws LCFException
+* xxx(IThreadContext tc) throws ACFException
*
*/
public interface IAgent
@@ -34,47 +34,47 @@ public interface IAgent
/** Install agent. This usually installs the agent's database tables etc.
*/
public void install()
- throws LCFException;
+ throws ACFException;
/** Uninstall agent. This must clean up everything the agent is responsible for.
*/
public void deinstall()
- throws LCFException;
+ throws ACFException;
/** Start the agent. This method should spin up the agent threads, and
* then return.
*/
public void startAgent()
- throws LCFException;
+ throws ACFException;
/** Stop the agent. This should shut down the agent threads.
*/
public void stopAgent()
- throws LCFException;
+ throws ACFException;
/** Request permission from agent to delete an output connection.
*@param connName is the name of the output connection.
*@return true if the connection is in use, false otherwise.
*/
public boolean isOutputConnectionInUse(String connName)
- throws LCFException;
+ throws ACFException;
/** Note the deregistration of a set of output connections.
*@param connectionNames are the names of the connections being deregistered.
*/
public void noteOutputConnectorDeregistration(String[] connectionNames)
- throws LCFException;
+ throws ACFException;
/** Note the registration of a set of output connections.
*@param connectionNames are the names of the connections being registered.
*/
public void noteOutputConnectorRegistration(String[] connectionNames)
- throws LCFException;
+ throws ACFException;
/** Note a change in configuration for an output connection.
*@param connectionName is the name of the connection being changed.
*/
public void noteOutputConnectionChange(String connectionName)
- throws LCFException;
+ throws ACFException;
}
Modified: incubator/lcf/trunk/modules/framework/agents/org/apache/acf/agents/interfaces/IAgentManager.java
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/modules/framework/agents/org/apache/acf/agents/interfaces/IAgentManager.java?rev=988237&r1=988236&r2=988237&view=diff
==============================================================================
--- incubator/lcf/trunk/modules/framework/agents/org/apache/acf/agents/interfaces/IAgentManager.java (original)
+++ incubator/lcf/trunk/modules/framework/agents/org/apache/acf/agents/interfaces/IAgentManager.java Mon Aug 23 18:08:32 2010
@@ -29,24 +29,24 @@ public interface IAgentManager
/** Install.
*/
public void install()
- throws LCFException;
+ throws ACFException;
/** Uninstall. Also uninstalls all remaining agents.
*/
public void deinstall()
- throws LCFException;
+ throws ACFException;
/** Register an agent.
*@param className is the class.
*/
public void registerAgent(String className)
- throws LCFException;
+ throws ACFException;
/** Unregister an agent.
*@param className is the class to unregister.
*/
public void unregisterAgent(String className)
- throws LCFException;
+ throws ACFException;
/** Remove an agent.
* Use this when the agent cannot be invoked. The agent becomes unavailable,
@@ -54,12 +54,12 @@ public interface IAgentManager
*@param className is the class to remove.
*/
public void removeAgent(String className)
- throws LCFException;
+ throws ACFException;
/** Get a list of all registered agent class names.
*@return the classnames in an array.
*/
public String[] getAllAgents()
- throws LCFException;
+ throws ACFException;
}
Modified: incubator/lcf/trunk/modules/framework/agents/org/apache/acf/agents/interfaces/IIncrementalIngester.java
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/modules/framework/agents/org/apache/acf/agents/interfaces/IIncrementalIngester.java?rev=988237&r1=988236&r2=988237&view=diff
==============================================================================
--- incubator/lcf/trunk/modules/framework/agents/org/apache/acf/agents/interfaces/IIncrementalIngester.java (original)
+++ incubator/lcf/trunk/modules/framework/agents/org/apache/acf/agents/interfaces/IIncrementalIngester.java Mon Aug 23 18:08:32 2010
@@ -46,28 +46,28 @@ public interface IIncrementalIngester
/** Install the incremental ingestion manager.
*/
public void install()
- throws LCFException;
+ throws ACFException;
/** Uninstall the incremental ingestion manager.
*/
public void deinstall()
- throws LCFException;
+ throws ACFException;
/** Come up with a maximum time (in minutes) for re-analyzing tables.
*@return the time, in minutes.
*/
public int getAnalyzeTime()
- throws LCFException;
+ throws ACFException;
/** Analyze database tables.
*/
public void analyzeTables()
- throws LCFException;
+ throws ACFException;
/** Flush all knowledge of what was ingested before.
*/
public void clearAll()
- throws LCFException;
+ throws ACFException;
/** Check if a mime type is indexable.
*@param outputConnectionName is the name of the output connection associated with this action.
@@ -75,7 +75,7 @@ public interface IIncrementalIngester
*@return true if the mimeType is indexable.
*/
public boolean checkMimeTypeIndexable(String outputConnectionName, String mimeType)
- throws LCFException, ServiceInterruption;
+ throws ACFException, ServiceInterruption;
/** Check if a file is indexable.
*@param outputConnectionName is the name of the output connection associated with this action.
@@ -83,7 +83,7 @@ public interface IIncrementalIngester
*@return true if the local file is indexable.
*/
public boolean checkDocumentIndexable(String outputConnectionName, File localFile)
- throws LCFException, ServiceInterruption;
+ throws ACFException, ServiceInterruption;
/** Record a document version, but don't ingest it.
* The purpose of this method is to keep track of the frequency at which ingestion "attempts" take place.
@@ -99,7 +99,7 @@ public interface IIncrementalIngester
String identifierClass, String identifierHash,
String documentVersion, long recordTime,
IOutputActivity activities)
- throws LCFException, ServiceInterruption;
+ throws ACFException, ServiceInterruption;
/** Ingest a document.
* This ingests the document, and notes it. If this is a repeat ingestion of the document, this
@@ -126,7 +126,7 @@ public interface IIncrementalIngester
RepositoryDocument data,
long ingestTime, String documentURI,
IOutputActivity activities)
- throws LCFException, ServiceInterruption;
+ throws ACFException, ServiceInterruption;
/** Note the fact that we checked a document (and found that it did not need to be ingested, because the
* versions agreed).
@@ -138,7 +138,7 @@ public interface IIncrementalIngester
public void documentCheckMultiple(String outputConnectionName,
String[] identifierClasses, String[] identifierHashes,
long checkTime)
- throws LCFException;
+ throws ACFException;
/** Note the fact that we checked a document (and found that it did not need to be ingested, because the
* versions agreed).
@@ -150,7 +150,7 @@ public interface IIncrementalIngester
public void documentCheck(String outputConnectionName,
String identifierClass, String identifierHash,
long checkTime)
- throws LCFException;
+ throws ACFException;
/** Delete multiple documents from the search engine index.
*@param outputConnectionNames are the names of the output connections associated with this action.
@@ -161,7 +161,7 @@ public interface IIncrementalIngester
public void documentDeleteMultiple(String[] outputConnectionNames,
String[] identifierClasses, String[] identifierHashes,
IOutputRemoveActivity activities)
- throws LCFException, ServiceInterruption;
+ throws ACFException, ServiceInterruption;
/** Delete multiple documents from the search engine index.
*@param outputConnectionName is the name of the output connection associated with this action.
@@ -172,7 +172,7 @@ public interface IIncrementalIngester
public void documentDeleteMultiple(String outputConnectionName,
String[] identifierClasses, String[] identifierHashes,
IOutputRemoveActivity activities)
- throws LCFException, ServiceInterruption;
+ throws ACFException, ServiceInterruption;
/** Delete a document from the search engine index.
*@param outputConnectionName is the name of the output connection associated with this action.
@@ -183,7 +183,7 @@ public interface IIncrementalIngester
public void documentDelete(String outputConnectionName,
String identifierClass, String identifierHash,
IOutputRemoveActivity activities)
- throws LCFException, ServiceInterruption;
+ throws ACFException, ServiceInterruption;
/** Look up ingestion data for a SET of documents.
*@param outputConnectionNames are the names of the output connections associated with this action.
@@ -194,7 +194,7 @@ public interface IIncrementalIngester
*/
public DocumentIngestStatus[] getDocumentIngestDataMultiple(String[] outputConnectionNames,
String[] identifierClasses, String[] identifierHashes)
- throws LCFException;
+ throws ACFException;
/** Look up ingestion data for a SET of documents.
*@param outputConnectionName is the names of the output connection associated with this action.
@@ -205,7 +205,7 @@ public interface IIncrementalIngester
*/
public DocumentIngestStatus[] getDocumentIngestDataMultiple(String outputConnectionName,
String[] identifierClasses, String[] identifierHashes)
- throws LCFException;
+ throws ACFException;
/** Look up ingestion data for a documents.
*@param outputConnectionName is the name of the output connection associated with this action.
@@ -215,7 +215,7 @@ public interface IIncrementalIngester
*/
public DocumentIngestStatus getDocumentIngestData(String outputConnectionName,
String identifierClass, String identifierHash)
- throws LCFException;
+ throws ACFException;
/** Calculate the average time interval between changes for a document.
* This is based on the data gathered for the document.
@@ -226,7 +226,7 @@ public interface IIncrementalIngester
*/
public long[] getDocumentUpdateIntervalMultiple(String outputConnectionName,
String[] identifierClasses, String[] identifierHashes)
- throws LCFException;
+ throws ACFException;
/** Calculate the average time interval between changes for a document.
* This is based on the data gathered for the document.
@@ -237,7 +237,7 @@ public interface IIncrementalIngester
*/
public long getDocumentUpdateInterval(String outputConnectionName,
String identifierClass, String identifierHash)
- throws LCFException;
+ throws ACFException;
/** Reset all documents belonging to a specific output connection, because we've got information that
* that system has been reconfigured. This will force all such documents to be reindexed the next time
@@ -245,6 +245,6 @@ public interface IIncrementalIngester
*@param outputConnectionName is the name of the output connection associated with this action.
*/
public void resetOutputConnection(String outputConnectionName)
- throws LCFException;
+ throws ACFException;
}
Modified: incubator/lcf/trunk/modules/framework/agents/org/apache/acf/agents/interfaces/IIngestLogger.java
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/modules/framework/agents/org/apache/acf/agents/interfaces/IIngestLogger.java?rev=988237&r1=988236&r2=988237&view=diff
==============================================================================
--- incubator/lcf/trunk/modules/framework/agents/org/apache/acf/agents/interfaces/IIngestLogger.java (original)
+++ incubator/lcf/trunk/modules/framework/agents/org/apache/acf/agents/interfaces/IIngestLogger.java Mon Aug 23 18:08:32 2010
@@ -40,7 +40,7 @@ public interface IIngestLogger
*/
public void recordIngestionAttempt(String documentIdentifier, Long startTime, Long dataSize,
String entityIdentifier, String resultCode, String resultDescription)
- throws LCFException;
+ throws ACFException;
/** Record time-stamped information about a deletion attempt.
*@param documentIdentifier is the internal document identifier being described.
@@ -55,6 +55,6 @@ public interface IIngestLogger
*/
public void recordDeletionAttempt(String documentIdentifier, Long startTime,
String entityIdentifier, String resultCode, String resultDescription)
- throws LCFException;
+ throws ACFException;
}
Modified: incubator/lcf/trunk/modules/framework/agents/org/apache/acf/agents/interfaces/IOutputAddActivity.java
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/modules/framework/agents/org/apache/acf/agents/interfaces/IOutputAddActivity.java?rev=988237&r1=988236&r2=988237&view=diff
==============================================================================
--- incubator/lcf/trunk/modules/framework/agents/org/apache/acf/agents/interfaces/IOutputAddActivity.java (original)
+++ incubator/lcf/trunk/modules/framework/agents/org/apache/acf/agents/interfaces/IOutputAddActivity.java Mon Aug 23 18:08:32 2010
@@ -35,6 +35,6 @@ public interface IOutputAddActivity exte
*@return the properly qualified access token.
*/
public String qualifyAccessToken(String authorityNameString, String accessToken)
- throws LCFException;
+ throws ACFException;
}
Modified: incubator/lcf/trunk/modules/framework/agents/org/apache/acf/agents/interfaces/IOutputConnectionManager.java
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/modules/framework/agents/org/apache/acf/agents/interfaces/IOutputConnectionManager.java?rev=988237&r1=988236&r2=988237&view=diff
==============================================================================
--- incubator/lcf/trunk/modules/framework/agents/org/apache/acf/agents/interfaces/IOutputConnectionManager.java (original)
+++ incubator/lcf/trunk/modules/framework/agents/org/apache/acf/agents/interfaces/IOutputConnectionManager.java Mon Aug 23 18:08:32 2010
@@ -29,33 +29,33 @@ public interface IOutputConnectionManage
/** Install the manager.
*/
public void install()
- throws LCFException;
+ throws ACFException;
/** Uninstall the manager.
*/
public void deinstall()
- throws LCFException;
+ throws ACFException;
/** Export configuration */
public void exportConfiguration(java.io.OutputStream os)
- throws java.io.IOException, LCFException;
+ throws java.io.IOException, ACFException;
/** Import configuration */
public void importConfiguration(java.io.InputStream is)
- throws java.io.IOException, LCFException;
+ throws java.io.IOException, ACFException;
/** Obtain a list of the output connections, ordered by name.
*@return an array of connection objects.
*/
public IOutputConnection[] getAllConnections()
- throws LCFException;
+ throws ACFException;
/** Load an output connection by name.
*@param name is the name of the output connection.
*@return the loaded connection object, or null if not found.
*/
public IOutputConnection load(String name)
- throws LCFException;
+ throws ACFException;
/** Load a set of output connections.
*@param names are the names of the output connections.
@@ -63,40 +63,40 @@ public interface IOutputConnectionManage
* values for those not found.
*/
public IOutputConnection[] loadMultiple(String[] names)
- throws LCFException;
+ throws ACFException;
/** Create a new output connection object.
*@return the new object.
*/
public IOutputConnection create()
- throws LCFException;
+ throws ACFException;
/** Save an output connection object.
*@param object is the object to save.
*/
public void save(IOutputConnection object)
- throws LCFException;
+ throws ACFException;
/** Delete an output connection.
*@param name is the name of the connection to delete. If the
* name does not exist, no error is returned.
*/
public void delete(String name)
- throws LCFException;
+ throws ACFException;
/** Get a list of output connections that share the same connector.
*@param className is the class name of the connector.
*@return the repository connections that use that connector.
*/
public String[] findConnectionsForConnector(String className)
- throws LCFException;
+ throws ACFException;
/** Check if underlying connector exists.
*@param name is the name of the connection to check.
*@return true if the underlying connector is registered.
*/
public boolean checkConnectorExists(String name)
- throws LCFException;
+ throws ACFException;
// Schema related
Modified: incubator/lcf/trunk/modules/framework/agents/org/apache/acf/agents/interfaces/IOutputConnector.java
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/modules/framework/agents/org/apache/acf/agents/interfaces/IOutputConnector.java?rev=988237&r1=988236&r2=988237&view=diff
==============================================================================
--- incubator/lcf/trunk/modules/framework/agents/org/apache/acf/agents/interfaces/IOutputConnector.java (original)
+++ incubator/lcf/trunk/modules/framework/agents/org/apache/acf/agents/interfaces/IOutputConnector.java Mon Aug 23 18:08:32 2010
@@ -72,7 +72,7 @@ public interface IOutputConnector extend
*@param input is the request object.
*/
public void executeCommand(Configuration output, String command, Configuration input)
- throws LCFException;
+ throws ACFException;
/** Detect if a mime type is indexable or not. This method is used by participating repository connectors to pre-filter the number of
* unusable documents that will be passed to this output connector.
@@ -80,7 +80,7 @@ public interface IOutputConnector extend
*@return true if the mime type is indexable by this connector.
*/
public boolean checkMimeTypeIndexable(String mimeType)
- throws LCFException, ServiceInterruption;
+ throws ACFException, ServiceInterruption;
/** Pre-determine whether a document (passed here as a File object) is indexable by this connector. This method is used by participating
* repository connectors to help reduce the number of unmanageable documents that are passed to this output connector in advance of an
@@ -89,7 +89,7 @@ public interface IOutputConnector extend
*@return true if the file is indexable.
*/
public boolean checkDocumentIndexable(File localFile)
- throws LCFException, ServiceInterruption;
+ throws ACFException, ServiceInterruption;
/** Get an output version string, given an output specification. The output version string is used to uniquely describe the pertinent details of
* the output specification and the configuration, to allow the Connector Framework to determine whether a document will need to be output again.
@@ -103,7 +103,7 @@ public interface IOutputConnector extend
* the document will not need to be sent again to the output data store.
*/
public String getOutputDescription(OutputSpecification spec)
- throws LCFException;
+ throws ACFException;
/** Add (or replace) a document in the output data store using the connector.
* This method presumes that the connector object has been configured, and it is thus able to communicate with the output data store should that be
@@ -120,7 +120,7 @@ public interface IOutputConnector extend
*@return the document status (accepted or permanently rejected).
*/
public int addOrReplaceDocument(String documentURI, String outputDescription, RepositoryDocument document, String authorityNameString, IOutputAddActivity activities)
- throws LCFException, ServiceInterruption;
+ throws ACFException, ServiceInterruption;
/** Remove a document using the connector.
* Note that the last outputDescription is included, since it may be necessary for the connector to use such information to know how to properly remove the document.
@@ -130,7 +130,7 @@ public interface IOutputConnector extend
*@param activities is the handle to an object that the implementer of an output connector may use to perform operations, such as logging processing activity.
*/
public void removeDocument(String documentURI, String outputDescription, IOutputRemoveActivity activities)
- throws LCFException, ServiceInterruption;
+ throws ACFException, ServiceInterruption;
// UI support methods.
//
@@ -149,7 +149,7 @@ public interface IOutputConnector extend
*@param tabsArray is an array of tab names. Add to this array any tab names that are specific to the connector.
*/
public void outputSpecificationHeader(IHTTPOutput out, OutputSpecification os, ArrayList tabsArray)
- throws LCFException, IOException;
+ throws ACFException, IOException;
/** Output the specification body section.
* This method is called in the body section of a job page which has selected an output connection of the current type. Its purpose is to present the required form elements for editing.
@@ -160,7 +160,7 @@ public interface IOutputConnector extend
*@param tabName is the current tab name.
*/
public void outputSpecificationBody(IHTTPOutput out, OutputSpecification os, String tabName)
- throws LCFException, IOException;
+ throws ACFException, IOException;
/** Process a specification post.
* This method is called at the start of job's edit or view page, whenever there is a possibility that form data for a connection has been
@@ -171,7 +171,7 @@ public interface IOutputConnector extend
*@return null if all is well, or a string error message if there is an error that should prevent saving of the job (and cause a redirection to an error page).
*/
public String processSpecificationPost(IPostParameters variableContext, OutputSpecification os)
- throws LCFException;
+ throws ACFException;
/** View specification.
* This method is called in the body section of a job's view page. Its purpose is to present the output specification information to the user.
@@ -180,7 +180,7 @@ public interface IOutputConnector extend
*@param os is the current output specification for this job.
*/
public void viewSpecification(IHTTPOutput out, OutputSpecification os)
- throws LCFException, IOException;
+ throws ACFException, IOException;
}
Modified: incubator/lcf/trunk/modules/framework/agents/org/apache/acf/agents/interfaces/IOutputConnectorManager.java
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/modules/framework/agents/org/apache/acf/agents/interfaces/IOutputConnectorManager.java?rev=988237&r1=988236&r2=988237&view=diff
==============================================================================
--- incubator/lcf/trunk/modules/framework/agents/org/apache/acf/agents/interfaces/IOutputConnectorManager.java (original)
+++ incubator/lcf/trunk/modules/framework/agents/org/apache/acf/agents/interfaces/IOutputConnectorManager.java Mon Aug 23 18:08:32 2010
@@ -30,12 +30,12 @@ public interface IOutputConnectorManager
/** Install.
*/
public void install()
- throws LCFException;
+ throws ACFException;
/** Uninstall. This also unregisters all connectors.
*/
public void deinstall()
- throws LCFException;
+ throws ACFException;
/** Register a new connector.
* The connector's install method will also be called.
@@ -43,14 +43,14 @@ public interface IOutputConnectorManager
*@param className is the class name.
*/
public void registerConnector(String description, String className)
- throws LCFException;
+ throws ACFException;
/** Unregister a connector.
* The connector's deinstall method will also be called.
*@param className is the connector class to unregister.
*/
public void unregisterConnector(String className)
- throws LCFException;
+ throws ACFException;
/** Remove a connector.
* Use this method when the connector doesn't seem to be in the
@@ -58,27 +58,27 @@ public interface IOutputConnectorManager
*@param className is the connector class to remove.
*/
public void removeConnector(String className)
- throws LCFException;
+ throws ACFException;
/** Get ordered list of connectors.
*@return a resultset with the columns "description" and "classname".
* These will be ordered by description.
*/
public IResultSet getConnectors()
- throws LCFException;
+ throws ACFException;
/** Get a description given a class name.
*@param className is the class name.
*@return the description, or null if the class is not registered.
*/
public String getDescription(String className)
- throws LCFException;
+ throws ACFException;
/** Check if a particular connector is installed or not.
*@param className is the class name of the connector.
*@return true if installed, false otherwise.
*/
public boolean isInstalled(String className)
- throws LCFException;
+ throws ACFException;
}
Modified: incubator/lcf/trunk/modules/framework/agents/org/apache/acf/agents/interfaces/IOutputHistoryActivity.java
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/modules/framework/agents/org/apache/acf/agents/interfaces/IOutputHistoryActivity.java?rev=988237&r1=988236&r2=988237&view=diff
==============================================================================
--- incubator/lcf/trunk/modules/framework/agents/org/apache/acf/agents/interfaces/IOutputHistoryActivity.java (original)
+++ incubator/lcf/trunk/modules/framework/agents/org/apache/acf/agents/interfaces/IOutputHistoryActivity.java Mon Aug 23 18:08:32 2010
@@ -44,6 +44,6 @@ public interface IOutputHistoryActivity
*/
public void recordActivity(Long startTime, String activityType, Long dataSize,
String entityURI, String resultCode, String resultDescription)
- throws LCFException;
+ throws ACFException;
}
Modified: incubator/lcf/trunk/modules/framework/agents/org/apache/acf/agents/interfaces/IncrementalIngesterFactory.java
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/modules/framework/agents/org/apache/acf/agents/interfaces/IncrementalIngesterFactory.java?rev=988237&r1=988236&r2=988237&view=diff
==============================================================================
--- incubator/lcf/trunk/modules/framework/agents/org/apache/acf/agents/interfaces/IncrementalIngesterFactory.java (original)
+++ incubator/lcf/trunk/modules/framework/agents/org/apache/acf/agents/interfaces/IncrementalIngesterFactory.java Mon Aug 23 18:08:32 2010
@@ -37,15 +37,15 @@ public class IncrementalIngesterFactory
/** Get an appropriate incremental ingest manager handle.
*/
public static IIncrementalIngester make(IThreadContext threadContext)
- throws LCFException
+ throws ACFException
{
Object o = threadContext.get(ingestManager);
if (o == null || !(o instanceof IIncrementalIngester))
{
IDBInterface database = DBInterfaceFactory.make(threadContext,
- LCF.getMasterDatabaseName(),
- LCF.getMasterDatabaseUsername(),
- LCF.getMasterDatabasePassword());
+ ACF.getMasterDatabaseName(),
+ ACF.getMasterDatabaseUsername(),
+ ACF.getMasterDatabasePassword());
o = new org.apache.acf.agents.incrementalingest.IncrementalIngester(threadContext,database);
threadContext.save(ingestManager,o);
Modified: incubator/lcf/trunk/modules/framework/agents/org/apache/acf/agents/interfaces/OutputConnectionManagerFactory.java
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/modules/framework/agents/org/apache/acf/agents/interfaces/OutputConnectionManagerFactory.java?rev=988237&r1=988236&r2=988237&view=diff
==============================================================================
--- incubator/lcf/trunk/modules/framework/agents/org/apache/acf/agents/interfaces/OutputConnectionManagerFactory.java (original)
+++ incubator/lcf/trunk/modules/framework/agents/org/apache/acf/agents/interfaces/OutputConnectionManagerFactory.java Mon Aug 23 18:08:32 2010
@@ -19,7 +19,7 @@
package org.apache.acf.agents.interfaces;
import org.apache.acf.core.interfaces.*;
-import org.apache.acf.agents.system.LCF;
+import org.apache.acf.agents.system.ACF;
import java.util.*;
@@ -41,15 +41,15 @@ public class OutputConnectionManagerFact
*@return the handle.
*/
public static IOutputConnectionManager make(IThreadContext tc)
- throws LCFException
+ throws ACFException
{
Object o = tc.get(objectName);
if (o == null || !(o instanceof IOutputConnectionManager))
{
IDBInterface database = DBInterfaceFactory.make(tc,
- LCF.getMasterDatabaseName(),
- LCF.getMasterDatabaseUsername(),
- LCF.getMasterDatabasePassword());
+ ACF.getMasterDatabaseName(),
+ ACF.getMasterDatabaseUsername(),
+ ACF.getMasterDatabasePassword());
o = new org.apache.acf.agents.outputconnection.OutputConnectionManager(tc,database);
tc.save(objectName,o);
@@ -62,7 +62,7 @@ public class OutputConnectionManagerFact
*@return the sorted list of output connection activities.
*/
public static String[] getAllOutputActivities(IThreadContext tc)
- throws LCFException
+ throws ACFException
{
IOutputConnectionManager manager = make(tc);
IOutputConnection[] connections = manager.getAllConnections();