|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ConnectorInterface
Method Summary | |
---|---|
void |
deleteEntry(Entry entry,
SearchCriteria search)
Delete an existing entry. |
Entry |
findEntry(SearchCriteria search)
Find an existing entry. |
Object |
getConfiguration()
Get the configuration object the Connector is using |
Object |
getContext()
|
int |
getFindEntryCount()
Return the number of duplicate entries from the last search |
Entry |
getFirstFindEntry()
Get the first entry found in a search |
int |
getMaxDuplicateEntries()
Return the maximum number of duplicate entries buffered up by the connector. |
String |
getName()
Get the name of the Connector |
ConnectorInterface |
getNextClient()
Server mode - return a clone of self that handles the next client instance when running in server mode. |
Entry |
getNextEntry()
Return the next Entry from the connector. |
Entry |
getNextFindEntry()
Return the next entry from the list of duplicate entries found. |
String |
getParam(String param)
Get the value of a parameter for the Connector |
Entry |
getPushbackEntry()
Return the pushed back entry for the connector. |
BaseConfiguration |
getRawConnectorConfiguration()
Get the raw connector configuration |
void |
initialize(Object o)
Initialize the connector. |
boolean |
isDeltaSupported()
Returns true if this connector is able to perform delta updates |
boolean |
isExceptionFatal(Exception e)
Return true if this exception is considered to be fatal. |
boolean |
isIOException(Throwable e)
Returns true if this connector considers the Throwable to be an IO Exception. |
void |
modEntry(Entry entry,
SearchCriteria search)
Modify an existing entry. |
void |
modEntry(Entry entry,
SearchCriteria search,
Entry old)
Modify an existing entry. |
void |
pushback(Entry e)
Push back an entry. |
void |
putEntry(Entry entry)
Add a new entry to the data source |
void |
queryOperations(ConnectorConfig config)
Discover the operations for a connection given the provided configuration. |
Entry |
queryReply(Entry entry)
This method is used for connectors that needs to combine putEntry/getNextEntry into one operation. |
Object |
querySchema(Object source)
Discover the schema for a connection. |
void |
reconnect(Object o)
Reconnect to the underlying data source |
void |
registerScriptBeans(ScriptEngine se)
This method is called to register specific objects in the script context. |
void |
replyEntry(Entry entry)
Send a reply to the connector. |
void |
selectEntries()
Prepare the Connector for sequential read. |
void |
setConfiguration(Object config)
Set the configuration object for the Connector |
void |
setContext(Object aContext)
|
void |
setCurrent(Entry entry,
SearchCriteria search)
Change the SearchCriteria search to find the entry sent as a parameter. |
void |
setLog(Log logger)
Set the log object to use for logging messages |
void |
setMaxDuplicateEntries(int p1)
Set the maximum number of duplicate entries to buffer up. |
void |
setName(String name)
Set the name of the Connector |
void |
setParam(String param,
String value)
Set a parameter in the Connector |
void |
setRSInterface(RSInterface rsi)
Set the RSInterface (server) |
void |
terminate()
Terminate the connector. |
void |
terminateServer()
Interrupts and shuts down the Connector if it runs in Server Mode. |
Method Detail |
---|
void setName(String name)
name
- The new nameString getName()
void setParam(String param, String value)
param
- The name of the parametervalue
- The new parameter valueString getParam(String param)
param
- The name of the parameter
void setConfiguration(Object config)
config
- The new configuration objectObject getConfiguration()
BaseConfiguration getRawConnectorConfiguration()
void setRSInterface(RSInterface rsi)
rsi
- The new RSInterface valuevoid setLog(Log logger)
logger
- The new log objectConnector.logmsg(String)
void setMaxDuplicateEntries(int p1)
p1
- The new maxDuplicateEntries valueint getMaxDuplicateEntries()
void registerScriptBeans(ScriptEngine se) throws Exception
se
- The script engine context
Exception
void queryOperations(ConnectorConfig config) throws Exception
config
- The configuration
Exception
Object querySchema(Object source) throws Exception
source
- The object on which to discover schema
Exception
void initialize(Object o) throws Exception
o
- User provided parameter
Exception
void terminate() throws Exception
Exception
boolean isExceptionFatal(Exception e)
e
- The exception object
ConnectorInterface getNextClient() throws Exception
Exception
void selectEntries() throws Exception
Exception
Entry getNextEntry() throws Exception
Exception
selectEntries()
Entry getFirstFindEntry() throws Exception
Exception
Entry getNextFindEntry() throws Exception
Exception
void putEntry(Entry entry) throws Exception
entry
- The entry data to add
Exception
void replyEntry(Entry entry) throws Exception
Exception
void modEntry(Entry entry, SearchCriteria search) throws Exception
entry
- The entry datasearch
- The search criteria used to locate the entry to be modified
Exception
void modEntry(Entry entry, SearchCriteria search, Entry old) throws Exception
entry
- The entry datasearch
- The search criteria used to locate the entry to be modifiedold
- The old entry found by the search criteria
Exception
void deleteEntry(Entry entry, SearchCriteria search) throws Exception
entry
- The entry datasearch
- The search criteria used to locate the entry to be deleted
Exception
Entry findEntry(SearchCriteria search) throws Exception
search
- The search criteria used to locate the entry
Exception
Entry queryReply(Entry entry) throws Exception
entry
- The data used in outgoing call
Exception
int getFindEntryCount()
void setCurrent(Entry entry, SearchCriteria search)
entry
- The entry we want to find for modification/deletesearch
- The SearchCriteria we want to changeEntry getPushbackEntry()
pushback( Entry )
void pushback(Entry e)
e
- The entry to push backvoid reconnect(Object o) throws Exception
o
- User provided parameter, which is sent to initialize()
Exception
initialize( Object )
boolean isDeltaSupported()
boolean isIOException(Throwable e)
e
- The Throwable to be determined
void terminateServer() throws Exception
Exception
Object getContext()
void setContext(Object aContext)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |