|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RSInterface
The top level Thread is an instance of this class, called the main object. It has methods for manipulating AssemblyLines.
Method Summary | |
---|---|
void |
dump(java.lang.Object o)
Dumps the class and contents of an object to the log file. |
void |
dumpEntry(Entry e)
Dumps the contents of an Entry to the log file. |
AttributeMapConfig |
getAttributeMap(java.lang.String name)
Returns the the "Attribute Map" for a named connector |
java.lang.String |
getConfigPath()
This method returns the current configuration file path |
java.lang.Object |
getConfiguration(java.lang.String name)
Returns the entire table or a sub-section of the configuration file. |
ConnectorConfig |
getConnector(java.lang.String name)
Returns the "Connector" entry for name |
FunctionConfig |
getFunction(java.lang.String name)
Returns the "FunctionConfig" entry for name |
LibraryConfig |
getLibraries()
Returns all "Libraries" |
java.lang.Object |
getLibrary(java.lang.String name)
Returns the the "Java Library" entry for name |
Log |
getLog()
|
MetamergeConfig |
getMetamergeConfig()
Returns the config object for this instance. |
java.lang.String |
getName()
|
java.lang.String |
getNullBehavior()
Return the null behavior string from the System.props |
java.lang.String |
getNullBehaviorValue()
Gets the null behavior value. |
java.lang.String |
getNullDefinition()
Return the null definition string from the System.props |
java.lang.String |
getNullDefinitionValue()
Gets the null definition value. |
ParserConfig |
getParser(java.lang.String name)
Returns the the "Parser" entry for name |
ScriptConfig |
getScript(java.lang.String name)
Returns the the "Script Library" entry for name |
javax.net.ServerSocketFactory |
getServerSocketFactory(boolean useSSL)
Gets a Server Socket Factory for creating Server Sockets. |
java.lang.String |
getSysProp(java.lang.String name)
Returns the value of a system property. |
AssemblyLineConfig |
getTask(java.lang.String name)
Returns the "AssemblyLine" entry |
void |
logerror(java.lang.String msg)
Writes an error message to the system log file. |
void |
logmsg(java.lang.String msg)
Writes a message to the system log file. |
void |
logmsg(java.lang.String level,
java.lang.String msg)
This method logs a message with the specified level to the log. |
void |
persistConfiguration()
This method saves the current configuration to disk. |
void |
reload()
This method reloads the configuration file. |
AssemblyLine |
restartAL(java.lang.String assemblyLine,
java.lang.String checkpointID)
Deprecated. |
void |
setConfigPath(java.lang.String path)
This method sets the current configuration file path. |
void |
setMetamergeConfig(MetamergeConfig config)
Sets the given configuration to this instance. |
void |
shutdownServer()
Raise the shutdown request flag and set the exit code to 0. |
void |
shutdownServer(int aExitCode)
Raise the shutdown request flag and specify an exit code. |
AssemblyLine |
startAL(java.lang.String assemblyLine)
Start a named AssemblyLine. |
AssemblyLine |
startAL(java.lang.String assemblyLine,
Connector connector,
Entry work)
Start named AssemblyLine providing an initial work entry and a connector |
AssemblyLine |
startAL(java.lang.String assemblyLine,
java.lang.Object io)
Start a named AssemblyLine providing various objects. |
Method Detail |
---|
java.lang.Object getConfiguration(java.lang.String name)
name
- Name of subsection or null
MetamergeConfig getMetamergeConfig()
void setMetamergeConfig(MetamergeConfig config)
config
- The configuration object to assign to the instance.AssemblyLineConfig getTask(java.lang.String name)
name
- The AssemblyLine name
ConnectorConfig getConnector(java.lang.String name)
name
- The connector name
java.lang.Object getLibrary(java.lang.String name)
name
- The java library name
LibraryConfig getLibraries()
ParserConfig getParser(java.lang.String name)
name
- The parser name
ScriptConfig getScript(java.lang.String name)
name
- The script library name
AttributeMapConfig getAttributeMap(java.lang.String name)
name
- The connector name
FunctionConfig getFunction(java.lang.String name) throws java.lang.Exception
name
- The name of the function
java.lang.Exception
- if a lookup error occurs.java.lang.String getSysProp(java.lang.String name)
name
- The system property name, or null
if there is no
property with that name
void persistConfiguration() throws java.lang.Exception
java.lang.Exception
- if an error while persisting the configuration occurs.void logmsg(java.lang.String msg)
Example:
main.logmsg("Conn object: "); main.dumpEntry(conn);
msg
- The message to be output.void logerror(java.lang.String msg)
msg
- The message to outputvoid logmsg(java.lang.String level, java.lang.String msg)
Example:
main.logmsg("INFO", "Reading entry..."); var entry = input.getConnector().getNextEntry();
level
- Level of log. Legal values are FATAL, ERROR, WARN, INFO,
DEBUG. Unrecognized keyword means DEBUG.msg
- The messagevoid dump(java.lang.Object o)
dumpEntry(Entry)
method instead.
o
- The object to dumpdumpEntry(Entry)
void dumpEntry(Entry e)
Example:
var ctor = input.getConnector(); for (;;) { var entry = ctor.getNextEntry(); if (entry != null) { main.logmsg("Read entry: "); main.dumpEntry(entry); } else break; }
e
- The Entry object to dumpEntry
AssemblyLine startAL(java.lang.String assemblyLine) throws java.lang.Exception
Example:
var al = main.startAL("ALName"); var tcb = al.getTCB(); main.logmsg("AL run mode: " + tcb.getRunMode()); main.logmsg("AL operation: " + tcb.getALOperation()); main.logmsg("AL settings: "); main.dumpEntry(tcb.getALSettings());
assemblyLine
- The name identifying the AssemblyLine to start
java.lang.Exception
- if assemblyLine
is an unknown AssemblyLine or if
any of the connectors cannot be initializedAssemblyLine startAL(java.lang.String assemblyLine, java.lang.Object io) throws java.lang.Exception
Example:
var iwe = new com.ibm.di.entry.Entry(); iwe.setAttribute("linenumber", "1"); iwe.setAttribute("", "Some line with text"); var c = new com.ibm.di.connectors.FileConnector(); var al = main.startAL("ALName", iwe); var tcb = al.getTCB(); main.logmsg("AL run mode: " + tcb.getRunMode()); main.logmsg("AL connector 'debug' parameter: " + tcb.getConnectorParameter("ConnectorName", "debug")); main.logmsg("AL initial work entry: "); main.dumpEntry(tcb.getInitialWorkEntry());
assemblyLine
- The name identifying the AssemblyLine to startio
- This Object could either be
java.lang.Exception
- if assemblyLine
is an unknown AssemblyLine or if
any of the connectors cannot be initializedAssemblyLine startAL(java.lang.String assemblyLine, Connector connector, Entry work) throws java.lang.Exception
Example:
var iwe = new com.ibm.di.entry.Entry(); iwe.setAttribute("linenumber", "1"); iwe.setAttribute("line", "Some line with text"); var c = main.getConnector("ConnectorName"); var al = main.startAL("ALName", c, iwe); var tcb = al.getTCB(); main.logmsg("AL run mode: " + tcb.getRunMode()); main.logmsg("AL initial work entry: "); main.dumpEntry(tcb.getInitialWorkEntry());
assemblyLine
- The name identifying the AssemblyLine to startconnector
- The runtime-provided Connectorwork
- The initial work entry
java.lang.Exception
- if assemblyLine
is an unknown AssemblyLine or if
any of the connectors cannot be initialized@Deprecated AssemblyLine restartAL(java.lang.String assemblyLine, java.lang.String checkpointID) throws java.lang.Exception
assemblyLine
- The name identifying the AssemblyLine to startcheckpointID
- The checkpoint identifier
java.lang.Exception
- if assemblyLine
is an unknown AssemblyLine or if
any of the connectors cannot be re-initializedvoid reload() throws java.lang.Exception
java.lang.Exception
- if the operation fails.java.lang.String getConfigPath()
void setConfigPath(java.lang.String path)
path
- The new configuration pathvoid shutdownServer()
void shutdownServer(int aExitCode)
aExitCode
- the code to return when the application exits.java.lang.String getNullBehavior()
java.lang.String getNullBehaviorValue()
java.lang.String getNullDefinition()
java.lang.String getNullDefinitionValue()
java.lang.String getName()
Log getLog()
javax.net.ServerSocketFactory getServerSocketFactory(boolean useSSL)
useSSL
determines whether a SSL Server Socket
Factory is returned or non-SSL one.
useSSL
- Determines if SSL or non-SSL Server Socket Factory is returns
for use.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |