|
||||||||||
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 TDI Function Components. Objects of this class are instantiated by the AssemblyLine, as the AssemblyLine only works with AssemblyLineComponent objects, not Connectors, Functions Components, etc.
Field Summary | |
---|---|
protected FunctionConfig |
config
The TDI configuration of the Function Component |
protected String |
defaultAttributeName
|
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
|
Fields inherited from class com.ibm.di.server.AssemblyLineComponent |
---|
addmap, CHECKPOINT_GETS, connConfig, connector, connPool, handler, imap, INITIALIZE, log, modmap, name, parent, pooledConnector, restartCycle, reusingConnector, SELECT, stats |
Constructor Summary | |
---|---|
FunctionComponent(AssemblyLine parent,
String name,
FunctionConfig config)
Constructor for the FunctionComponent object |
|
FunctionComponent(AssemblyLine parent,
String name,
FunctionConfig config,
FunctionInterface function)
|
Method Summary | |
---|---|
void |
callreply(Entry meta)
This method implements the CallReply mode operation. |
void |
close()
This method closes the script engine. |
ConnectorConfig |
getConfiguration()
This method returns the Connector configuration |
FunctionInterface |
getFunction()
This method returns the Function interface |
int |
getType()
Gets the type attribute of the FunctionComponent object |
void |
initialize()
This method initializes the script engine. |
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 |
---|
protected FunctionConfig config
public FunctionInterface function
protected FunctionInterface rtp_function
protected String defaultAttributeName
protected AttributeMapping omap
Constructor Detail |
---|
public FunctionComponent(AssemblyLine parent, String name, FunctionConfig config) throws Exception
parent
- the AssemblyLine instantiating this Function Componentname
- the name of this Function Componentconfig
- the TDI configuration of this Function Component
Exception
- this exception is thrown if the construction of the Function Component object failspublic FunctionComponent(AssemblyLine parent, String name, FunctionConfig config, FunctionInterface function) throws Exception
Exception
Method Detail |
---|
public void initialize() throws Exception
initialize
in class AssemblyLineComponent
Exception
- this exception is thrown if the initialization of this Function Component failspublic void close() throws Exception
close
in class AssemblyLineComponent
Exception
public ConnectorConfig getConfiguration()
getConfiguration
in class AssemblyLineComponent
public FunctionInterface getFunction()
public int getType()
getType
in class AssemblyLineComponent
public boolean willExecute(Entry work) throws Exception
willExecute
in class AssemblyLineComponent
work
- The current work Entry
Exception
- Any exception thrown by the executed Hookpublic void callreply(Entry meta) throws Exception
callreply
in class AssemblyLineComponent
meta
- The work entry to send
Exception
- this exception is thrown if this method fails
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |