incubator-connectors-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From conflue...@apache.org
Subject [CONF] Apache Connectors Framework > How to Write an Output Connector
Date Thu, 14 Oct 2010 22:59:00 GMT
Space: Apache Connectors Framework (https://cwiki.apache.org/confluence/display/CONNECTORS)
Page: How to Write an Output Connector (https://cwiki.apache.org/confluence/display/CONNECTORS/How+to+Write+an+Output+Connector)
Comment: https://cwiki.apache.org/confluence/display/CONNECTORS/How+to+Write+an+Output+Connector?focusedCommentId=24183066#comment-24183066

Comment added by Karl Wright:
---------------------------------------------------------------------

I took a quick glance.  In order for your table to get created, you need to implement
the install() and uninstall() methods of the connector.  See the web connector for
an example.  These methods should call your appropriate table manager methods.

BEFORE you do this you want to unregister your output connector using the appropriate "unregisteroutput"
command via shell script.  If you don't then when you start up Manifold you will
get an exception, because it's trying to tear down a table that doesn't yet exist. 
It is at registration time that the install() method will be called.

Karl\\

In reply to a comment by Farzad:
So I managed to get my connector built and running.  The goals was to create a table in the
database and see it populate with some unique string, my name :) I encountered two problems,
the job never ends, my file set was 9.  It said 9 processed, but also 6 active, and never
showed an end date.  Also I thought I created a table in the db called "filedata", but when
I browse the database with phpPgAdmin, I don't see that under Schemas\public\Tables.  Any
thoughts?  I will admit I'm struggling to grasp the flow. If there are other reading materials
or links you think will remove the fog, please share.

I upload my dupfinder connector source directory, as well as the modules\build.xml file to
http://www.farzad.net/manifoldcf/.

Change your notification preferences: https://cwiki.apache.org/confluence/users/viewnotifications.action

Mime
View raw message