|
|
com.architech
|
Field Summary | |
boolean |
accumulateDupEntries
This governs wether multiple lookups are combined into one entry or not. |
rscConnectorInterface |
connector
This is the connector we are working with |
rscConnectorInterface |
input_connector
This is the input_connector provided as a parameter (to the assembly line) |
protected String |
name
This is the connector name as given by the assembly line |
protected com.architech.TaskInterface |
parent
This is the parent task (assembly line) |
com.architech.rsStats |
stats
This is the statistics object for the connector |
Object |
value
This is the "ret.value" object returned by the attribute map |
Constructor Summary | |
rscTaskComponent()
Constructor for the rscTaskComponent object |
|
rscTaskComponent(com.architech.TaskInterface parent,
String name,
TreeMap config,
rscConnectorInterface conn)
Constructor |
Method Summary | |
void |
add(Entry meta)
This method implements the AddOnly mode operation. |
void |
close()
This method closes the connector (connector.terminate()) and calls the before/after close hooks. |
void |
debug(String msg)
Call logmsg if we have debug messages enabled |
void |
delete(Entry meta)
This method implements the Delete mode operation. |
void |
deleteEntry(Entry meta)
This method calls the delete method. |
void |
dumpEntry(Entry meta)
Deprecated method. |
void |
expandParameters(com.architech.config.rsConfiguration cf)
This method expands the connector's parameters. |
Object |
getConfig(String param)
This method returns the configuration value for parameter param. |
Object |
getConnectorParam(String param)
This method returns the configuration value for the connector's parameter. |
Entry |
getCurrent()
Gets the current attribute of the rscTaskComponent object |
boolean |
getDebug()
This method returns the the debug mode flag. |
int |
getDuplicateEntryCount()
Gets the duplicateEntryCount attribute of the rscTaskComponent object |
Entry |
getLastReadEntry()
This method returns the last entry read from the connector. |
String |
getName()
This method returns the name assigned to the connector by the assembly line. |
Entry |
getnext()
The method returns the next entry from the connector. |
Entry |
getNextDuplicateEntry()
Gets the nextDuplicateEntry attribute of the rscTaskComponent object |
String |
getNullBehavior()
Returns the null behavior setting for this connector. |
String |
getNullBehaviorValue()
Returns the null behavior value for this connector. |
com.architech.rsStats |
getStats()
Gets the stats attribute of the rscTaskComponent object |
int |
getType()
This method returns the mode in which we are executing (e.g. |
int |
handleException(String oper,
Exception e,
Entry meta)
This method is called by the rscTask. |
void |
initialize()
This method initializes the underlying connnector and registers the script beans in the scriptEngine context. |
boolean |
isEnabled()
Gets the enabled attribute of the rscTaskComponent object |
boolean |
isExceptionFatal(Exception e)
Gets the exceptionFatal attribute of the rscTaskComponent object |
void |
logmsg(String msg)
Write a message to the logfile prefixed by this connector's name |
Entry |
lookup(Entry meta)
The method is called to lookup an entry using the configured Link Criteria. |
Entry |
lookup(String attribute,
String value)
The method is called to lookup an entry using exact matching for attribute and value. |
void |
modify(Entry old,
Entry meta)
This method implements the Modify operation (called by Update) |
void |
pushback(Entry entry)
This method pushes an entry back to the connector. |
void |
setCurrent(Entry current)
Sets the current attribute of the rscTaskComponent object |
void |
setDebug(boolean debug)
This method sets the the debug mode flag. |
void |
setDuplicateEntryCount(int maxdup)
Sets the duplicateEntryCount attribute of the rscTaskComponent object |
void |
setErrorObject(String oper,
String reason)
Sets the errorObject attribute of the rscTaskComponent object |
void |
showDebug(String str,
String oper,
Entry work,
Entry conn)
Description of the Method |
boolean |
trigger(String oper)
Description of the Method |
boolean |
trigger(String oper,
Entry work,
Entry conn)
Description of the Method |
void |
update(Entry meta)
This method implements the Update mode operation. |
boolean |
willExecute(Entry work)
Return true/false if this component should be executed. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public rscConnectorInterface input_connector
public rscConnectorInterface connector
public com.architech.rsStats stats
public Object value
public boolean accumulateDupEntries
protected String name
protected com.architech.TaskInterface parent
Constructor Detail |
public rscTaskComponent(com.architech.TaskInterface parent, String name, TreeMap config, rscConnectorInterface conn) throws Exception
parent
- Description of Parametername
- Description of Parameterconfig
- Description of Parameterconn
- Description of ParameterException
- Description of Exceptionpublic rscTaskComponent()
Method Detail |
public void setCurrent(Entry current)
current
- The new current valuepublic void setDebug(boolean debug)
debug
- True to enable debug, false to disablepublic void setErrorObject(String oper, String reason)
oper
- The new errorObject valuereason
- The new errorObject valuepublic void setDuplicateEntryCount(int maxdup)
maxdup
- The new duplicateEntryCount valuepublic String getName()
public Entry getCurrent()
public Object getConfig(String param)
param
- The parameter namepublic Object getConnectorParam(String param)
param
- The parameter namepublic boolean getDebug()
public int getType()
public Entry getLastReadEntry()
public Entry getnext() throws Exception
Exception
- Description of Exceptionpublic com.architech.rsStats getStats()
public boolean isExceptionFatal(Exception e)
e
- Description of Parameterpublic int getDuplicateEntryCount()
public Entry getNextDuplicateEntry() throws Exception
Exception
- Description of Exceptionpublic boolean isEnabled()
public String getNullBehavior()
public String getNullBehaviorValue()
public void close()
public boolean willExecute(Entry work) throws Exception
work
- Description of ParameterException
- Description of Exceptionpublic void initialize() throws Exception
Exception
- Description of Exceptionpublic void pushback(Entry entry)
entry
- Description of Parameterpublic Entry lookup(String attribute, String value) throws Exception
attribute
- The attribute name to searchvalue
- The attribute valueException
- Description of Exceptionpublic Entry lookup(Entry meta) throws Exception
meta
- The entry object providing values for variable substitution.Exception
- Description of Exceptionpublic void deleteEntry(Entry meta) throws Exception
meta
- The work object to use for the link criteriaException
- Any Exceptionpublic void delete(Entry meta) throws Exception
meta
- Description of ParameterException
- Description of Exceptionpublic void update(Entry meta) throws Exception
meta
- The work entryException
- Any Exceptionpublic void modify(Entry old, Entry meta) throws Exception
old
- The current entry in the destination systemmeta
- The new entry to use in the attribute mapException
- Any Exceptionpublic void add(Entry meta) throws Exception
meta
- The work entry to addException
- Description of Exceptionpublic void dumpEntry(Entry meta) throws Exception
meta
- Description of ParameterException
- Description of Exceptionpublic void logmsg(String msg)
msg
- Description of Parameterpublic void debug(String msg)
msg
- Description of Parameterpublic int handleException(String oper, Exception e, Entry meta) throws Exception
oper
- Hook prefixe
- Error or null for no errormeta
- No longer used (used to be the work entry)Exception
- Any Exceptionpublic void showDebug(String str, String oper, Entry work, Entry conn) throws Exception
str
- Description of Parameteroper
- Description of Parameterwork
- Description of Parameterconn
- Description of ParameterException
- Description of Exceptionpublic boolean trigger(String oper, Entry work, Entry conn) throws Exception
oper
- Description of Parameterwork
- Description of Parameterconn
- Description of ParameterException
- Description of Exceptionpublic boolean trigger(String oper) throws Exception
oper
- Description of ParameterException
- Description of Exceptionpublic void expandParameters(com.architech.config.rsConfiguration cf) throws Exception
cf
- The configuration objectException
- Description of Exception
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
![]() |
|