|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.di.server.AssemblyLineComponent
com.ibm.di.server.FunctionComponent
public class FunctionComponent
This is a wrapper class for IBM Tivoli Directory Integrator Function Components. Objects of this class are instantiated by the AssemblyLine, as the AssemblyLine only works with AssemblyLineComponent objects, not Connectors, Functions Components, etc.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface java.util.Map |
---|
java.util.Map.Entry<K,V> |
Field Summary | |
---|---|
protected FunctionConfig |
config
The IBM Tivoli Directory Integrator configuration of the Function Component |
protected java.lang.String |
defaultAttributeName
The default attribute name. |
FunctionInterface |
function
The reference to the wrapped Function Component object |
protected AttributeMapping |
omap
This is the object performing output attribute mapping |
protected FunctionInterface |
rtp_function
The FunctionInterface of this Function Component. |
Fields inherited from class com.ibm.di.server.AssemblyLineComponent |
---|
addmap, CHECKPOINT_GETS, connConfig, connector, connPool, END_OF_DATA, handler, HOOKS_INVOKED, imap, INITIALIZE, initializeCount, LAST_CONN, LAST_ERROR, log, modmap, name, NUM_ADD, NUM_CALLREPLY, NUM_DELETE, NUM_ERRORS, NUM_GET, NUM_GET_TRIES, NUM_GETCLIENT, NUM_GETCLIENT_TRIES, NUM_IGNORED, NUM_LOOKUP, NUM_MODIFY, NUM_NOCHANGE, NUM_SKIPPED, parent, pooledConnector, reusingConnector, SELECT, stats, SUCCESSFUL |
Constructor Summary | |
---|---|
FunctionComponent(AssemblyLine parent,
java.lang.String name,
FunctionConfig config)
Constructor for the FunctionComponent object |
|
FunctionComponent(AssemblyLine parent,
java.lang.String name,
FunctionConfig config,
FunctionInterface function)
Constructor for the FunctionComponent object |
Method Summary | |
---|---|
void |
callreply(Entry meta)
This method implements the CallReply mode operation. |
void |
close()
This method closes the script engine. |
void |
doConnectorTerminate()
This method calls closing hooks and terminates the wrapped function component object. |
void |
doInitialize()
This method initializes the component, calls initialization hooks and creates input and output maps. |
FunctionInterface |
getFunction()
This method returns the Function interface. |
int |
getType()
Gets the type attribute of the FunctionComponent object |
void |
initialize()
This method initializes the FunctionComponent, if it should initialized at startup. |
void |
setDebug(boolean debug)
This method sets the the debug mode flag. |
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, wait, wait, wait |
Methods inherited from interface java.util.Map |
---|
equals, hashCode |
Field Detail |
---|
protected FunctionConfig config
public FunctionInterface function
protected FunctionInterface rtp_function
protected java.lang.String defaultAttributeName
protected AttributeMapping omap
Constructor Detail |
---|
public FunctionComponent(AssemblyLine parent, java.lang.String name, FunctionConfig config) throws java.lang.Exception
parent
- the AssemblyLine instantiating this Function Componentname
- the name of this Function Componentconfig
- the IBM Tivoli Directory Integrator configuration of this
Function Component
java.lang.Exception
- this exception is thrown if the construction of the
Function Component object failspublic FunctionComponent(AssemblyLine parent, java.lang.String name, FunctionConfig config, FunctionInterface function) throws java.lang.Exception
parent
- the AssemblyLine instantiating this Function Componentname
- the name of this Function Componentconfig
- the IBM Tivoli Directory Integrator configuration of this
Function Componentfunction
- the FunctionInterface of this Function Component.
java.lang.Exception
- this exception is thrown if the construction of the
Function Component object failsMethod Detail |
---|
public void initialize() throws java.lang.Exception
initialize
in class AssemblyLineComponent
java.lang.Exception
- this exception is thrown if the initialization of this
Function Component failspublic void doInitialize() throws java.lang.Exception
java.lang.Exception
- this exception is thrown if the initialization fails.public void close() throws java.lang.Exception
close
in class AssemblyLineComponent
java.lang.Exception
- if problem occurspublic void doConnectorTerminate() throws java.lang.Exception
doConnectorTerminate
in class AssemblyLineComponent
java.lang.Exception
- this exception is thrown if the operation fails.public FunctionInterface getFunction()
public int getType()
getType
in class AssemblyLineComponent
public boolean willExecute(Entry work) throws java.lang.Exception
willExecute
in class AssemblyLineComponent
work
- The current work Entry
java.lang.Exception
- Any exception thrown by the executed Hookpublic void callreply(Entry meta) throws java.lang.Exception
callreply
in class AssemblyLineComponent
meta
- The work entry to send
java.lang.Exception
- this exception is thrown if this method failspublic void setDebug(boolean debug)
setDebug
in class AssemblyLineComponent
debug
- True to enable debug, false to disable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |