|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.di.api.local.impl.ConfigInstanceImpl
public class ConfigInstanceImpl
Constructor Summary | |
---|---|
ConfigInstanceImpl(RS aConfigInstance,
SessionImpl aSession)
|
Method Summary | |
---|---|
static String |
genGUID(RS aConfigInstance)
|
String |
getALLastLogFileName(String aALName)
Returns the name of the log file created on the last run of a given AssemblyLine. |
String |
getALLog(String aALName,
String aLogFileName)
Given an AssemblyLine name, and a log file name, retrieves the log of this AssemblyLine, stored in the specified file. |
String[] |
getALLogFileNames(String aALName)
Returns the names of all available log files for a given AssemblyLine. |
String |
getALLogLastChunk(String aALName,
String aLogFileName,
int aKilobytes)
Retrieves the last chunk from a specified AssemblyLine's log file. |
SchemaConfig |
getAssemblyLineInputParameters(String aAssemblyLineName)
Returns the AssemblyLine’s input parameters. |
SchemaConfig |
getAssemblyLineOutputParameters(String aAssemblyLineName)
Returns the AssemblyLine’s output parameters. |
AssemblyLine[] |
getAssemblyLines()
Returns currently started AssemblyLines of the configuration instance. |
String[] |
getAssemblyLinesNames()
Returns the AssemblyLines’ names. |
String |
getConfigId()
Returns the configuration ID generated by the server. |
MetamergeConfig |
getConfiguration()
Returns configuration instance representing this configuration. |
PoolDefConfig |
getConnectorPoolConfig(String aConnectorPoolName)
Returns the Connector Pool configuration object. |
int |
getConnectorPoolFreeNum(String aConnectorPoolName)
Returns the number of free Connectors in the specified Connector Pool. |
String[] |
getConnectorPoolNames()
Returns the names of all Connector Pools in the Config Instance. |
int |
getConnectorPoolSize(String aConnectorPoolName)
Returns the size of the specified Connector Pool. |
String |
getEHLastLogFileName(String aEHName)
Returns the name of the log file created on the last run of a given EventHandler. |
String |
getEHLog(String aEHName,
String aLogFileName)
Given an EventHandler name, and a log file name, retrieves the log of this EventHandler, stored in the specified file. |
String[] |
getEHLogFileNames(String aEHName)
Rreturns the names of all available log files for a given EventHandler. |
String |
getEHLogLastChunk(String aEHName,
String aLogFileName,
int aKilobytes)
Retrieves the last chunk from a specified EventHandler's log file. |
EventHandler[] |
getEventHandlers()
Returns currently started EventHandlers of the configuration instance. |
String[] |
getEventHandlersNames()
Returns the EventHandlers’ names. |
ExternalPropertiesConfig |
getExternalProperties()
Returns the external properties of the configuration. |
ExternalPropertiesConfig |
getExternalProperties(String aKey)
Returns the ExternalPropertiesConfig object for the named external properties object. |
String[] |
getExternalPropertiesKeys()
Returns the external properties object names. |
String |
getGlobalUniqueID()
Returns the Config Instance GUID. |
Date |
getInstanceBootTime()
Returns the Instance boot time. |
TDIProperties |
getTDIProperties()
Used to obtain a reference to TDIProperties for managing properties / property stores. |
int |
purgeConnectorPool(String aConnectorPoolName)
Unused Connectors will be released so that the Pool is shrunk to its minimum size. |
void |
reload()
Reloads the Config Instance with its current configuration. |
void |
saveConfiguration()
|
void |
saveConfiguration(boolean aEncrypt)
|
void |
saveExternalProperties()
|
void |
setConfiguration(MetamergeConfig aConfiguration)
Sets given configuration to this configuration. |
void |
setExternalProperties(ExternalPropertiesConfig aExPropConfig)
|
void |
setExternalProperties(String aKey,
ExternalPropertiesConfig aExPropConfig)
|
AssemblyLine |
startAssemblyLine(String aAssemblyLineName)
Starts the specified AssemblyLine asynchronously. |
AssemblyLine |
startAssemblyLine(String aAssemblyLineName,
boolean aSync)
Starts the specified AssemblyLine. |
AssemblyLine |
startAssemblyLine(String aAssemblyLineName,
Entry aInputData)
Starts the specified AssemblyLine with the given input data asynchronously. |
AssemblyLine |
startAssemblyLine(String aAssemblyLineName,
Entry aInputData,
AssemblyLineListener aListener,
boolean aGetLogs)
Starts asynchronously the specified AssemblyLine with the given input data and results listener. |
AssemblyLine |
startAssemblyLine(String aAssemblyLineName,
Entry aInputData,
AssemblyLineListener aListener,
boolean aGetLogs,
boolean aSync)
Starts the specified AssemblyLine with the given input data and results listener. |
AssemblyLine |
startAssemblyLine(String aAssemblyLineName,
Entry aInputData,
boolean aSync)
Starts the specified AssemblyLine with the given input data. |
AssemblyLine |
startAssemblyLine(String aAssemblyLineName,
TaskCallBlock aTcb)
Starts asynchronously the specified AssemblyLine with the given TaskCallBlock. |
AssemblyLine |
startAssemblyLine(String aAssemblyLineName,
TaskCallBlock aTcb,
boolean aSync)
Starts the specified AssemblyLine with the given TaskCallBlock. |
AssemblyLineHandler |
startAssemblyLineManual(String aAssemblyLineName,
Entry aInputData)
Starts the specified AssemblyLine with the given input data in manual mode. |
EventHandler |
startEventHandler(String aEventHandlerName)
Starts the specified EventHandler asynchronously. |
EventHandler |
startEventHandler(String aEventHandlerName,
boolean aSync)
Starts the specified EventHandler. |
EventHandler |
startEventHandler(String aEventHandlerName,
EventHandlerListener aListener,
boolean aGetLogs,
boolean aRecordEvents)
Starts the specified EventHandler asynchronously. |
EventHandler |
startEventHandler(String aEventHandlerName,
EventHandlerListener aListener,
boolean aGetLogs,
boolean aRecordEvents,
boolean aSync)
Starts the specified EventHandler. |
void |
stop()
Stops the Config Instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConfigInstanceImpl(RS aConfigInstance, SessionImpl aSession) throws DIException
DIException
Method Detail |
---|
public String getConfigId() throws DIException
ConfigInstance
getConfigId
in interface ConfigInstance
DIException
- if an error occurs while getting the configuration ID.public MetamergeConfig getConfiguration() throws DIException
ConfigInstance
getConfiguration
in interface ConfigInstance
DIException
- if an error occurs while getting the configuration.public void setConfiguration(MetamergeConfig aConfiguration) throws DIException
ConfigInstance
setConfiguration
in interface ConfigInstance
aConfiguration
- The new configuration.
DIException
- if an error occurs while setting the configuration.public void saveConfiguration() throws DIException
saveConfiguration
in interface ConfigInstance
DIException
public void saveConfiguration(boolean aEncrypt) throws DIException
saveConfiguration
in interface ConfigInstance
DIException
public ExternalPropertiesConfig getExternalProperties() throws DIException
ConfigInstance
getExternalProperties
in interface ConfigInstance
DIException
- if an error occurs while getting the external properties.public ExternalPropertiesConfig getExternalProperties(String aKey) throws DIException
ConfigInstance
getExternalProperties
in interface ConfigInstance
aKey
- The external property object name.
DIException
- if an error occurs while getting the external properties.public String[] getExternalPropertiesKeys() throws DIException
ConfigInstance
getExternalPropertiesKeys
in interface ConfigInstance
DIException
- if an error occurs while getting the external properties names.public void setExternalProperties(ExternalPropertiesConfig aExPropConfig) throws DIException
setExternalProperties
in interface ConfigInstance
DIException
public void setExternalProperties(String aKey, ExternalPropertiesConfig aExPropConfig) throws DIException
setExternalProperties
in interface ConfigInstance
DIException
public void saveExternalProperties() throws DIException
saveExternalProperties
in interface ConfigInstance
DIException
public String[] getAssemblyLinesNames() throws DIException
ConfigInstance
getAssemblyLinesNames
in interface ConfigInstance
DIException
- if an error occurs while getting the AssemblyLines’ names.public SchemaConfig getAssemblyLineInputParameters(String aAssemblyLineName) throws DIException
ConfigInstance
getAssemblyLineInputParameters
in interface ConfigInstance
aAssemblyLineName
- the name of the AssemblyLine.
DIException
- if an error occurs while getting the AssemblyLine's input parameters.public SchemaConfig getAssemblyLineOutputParameters(String aAssemblyLineName) throws DIException
ConfigInstance
getAssemblyLineOutputParameters
in interface ConfigInstance
aAssemblyLineName
- the name of the AssemblyLine.
DIException
- if an error occurs while getting the AssemblyLine's output parameters.public String[] getEventHandlersNames() throws DIException
ConfigInstance
getEventHandlersNames
in interface ConfigInstance
DIException
- if an error occurs while getting the EventHandlers’ names.public AssemblyLine[] getAssemblyLines() throws DIException
ConfigInstance
getAssemblyLines
in interface ConfigInstance
DIException
- if an error occurs while getting the AssemblyLines.public EventHandler[] getEventHandlers() throws DIException
ConfigInstance
getEventHandlers
in interface ConfigInstance
DIException
- if an error occurs while getting the EventHandlers.public AssemblyLine startAssemblyLine(String aAssemblyLineName) throws DIException
ConfigInstance
startAssemblyLine
in interface ConfigInstance
aAssemblyLineName
- The name of the AssemblyLine.
DIException
- if an error occurs when starting the AssemblyLine.public AssemblyLine startAssemblyLine(String aAssemblyLineName, boolean aSync) throws DIException
ConfigInstance
startAssemblyLine
in interface ConfigInstance
aAssemblyLineName
- The name of the AssemblyLine.aSync
- when true
the AssemblyLine is started synchronously,
when false
the AssemblyLine is started asynchronously.
DIException
- if an error occurs when starting the AssemblyLine.public AssemblyLine startAssemblyLine(String aAssemblyLineName, Entry aInputData) throws DIException
ConfigInstance
startAssemblyLine
in interface ConfigInstance
aAssemblyLineName
- The name of the AssemblyLine.aInputData
- Initial Work Entry to run the AssemblyLine with.
DIException
- if an error occurs when starting the AssemblyLine.public AssemblyLine startAssemblyLine(String aAssemblyLineName, Entry aInputData, boolean aSync) throws DIException
ConfigInstance
startAssemblyLine
in interface ConfigInstance
aAssemblyLineName
- The name of the AssemblyLine.aInputData
- Initial Work Entry to run the AssemblyLine with.aSync
- when true
the AssemblyLine is started synchronously,
when false
the AssemblyLine is started asynchronously.
DIException
- if an error occurs when starting the AssemblyLine.public AssemblyLine startAssemblyLine(String aAssemblyLineName, Entry aInputData, AssemblyLineListener aListener, boolean aGetLogs) throws DIException
ConfigInstance
startAssemblyLine
in interface ConfigInstance
aAssemblyLineName
- The name of the AssemblyLine.aInputData
- Initial Work Entry to run the AssemblyLine with.aListener
- A listener for Entries produced by the AssemblyLine.aGetLogs
- when true
the AssemblyLineListener delivers log messages,
when false
log messages are not delivered.
DIException
- if an error occurs when starting the AssemblyLine.public AssemblyLine startAssemblyLine(String aAssemblyLineName, Entry aInputData, AssemblyLineListener aListener, boolean aGetLogs, boolean aSync) throws DIException
ConfigInstance
startAssemblyLine
in interface ConfigInstance
aAssemblyLineName
- The name of the AssemblyLine.aInputData
- Initial Work Entry to run the AssemblyLine with.aListener
- A listener for Entries produced by the AssemblyLine.aGetLogs
- when true
the AssemblyLineListener delivers log messages,
when false
log messages are not delivered.aSync
- when true
the AssemblyLine is started synchronously,
when false
the AssemblyLine is started asynchronously.
DIException
- if an error occurs when starting the AssemblyLine.public AssemblyLineHandler startAssemblyLineManual(String aAssemblyLineName, Entry aInputData) throws DIException
ConfigInstance
startAssemblyLineManual
in interface ConfigInstance
aAssemblyLineName
- The name of the AssemblyLine.aInputData
- Initial Work Entry to run the AssemblyLine with.
DIException
- if an error occurs when starting the AssemblyLine.public AssemblyLine startAssemblyLine(String aAssemblyLineName, TaskCallBlock aTcb) throws DIException
ConfigInstance
startAssemblyLine
in interface ConfigInstance
aAssemblyLineName
- The name of the AssemblyLine.aTcb
- The TaskCallBlock object to start the AL with.
DIException
- if an error occurs when starting the AssemblyLine.public AssemblyLine startAssemblyLine(String aAssemblyLineName, TaskCallBlock aTcb, boolean aSync) throws DIException
ConfigInstance
startAssemblyLine
in interface ConfigInstance
aAssemblyLineName
- The name of the AssemblyLine.aTcb
- The TaskCallBlock object to start the AL with.aSync
- when true
the AssemblyLine is started synchronously,
when false
the AssemblyLine is started asynchronously.
DIException
- if an error occurs when starting the AssemblyLine.public EventHandler startEventHandler(String aEventHandlerName) throws DIException
ConfigInstance
startEventHandler
in interface ConfigInstance
aEventHandlerName
- the name of the EventHandler to start.
DIException
- if an error occurs while starting the EventHandler.public EventHandler startEventHandler(String aEventHandlerName, boolean aSync) throws DIException
ConfigInstance
startEventHandler
in interface ConfigInstance
aEventHandlerName
- the name of the EventHandler to start.aSync
- when true
the EventHandler is started synchronously,
when false
the EventHandler is started asynchronously.
DIException
- if an error occurs while starting the EventHandler.public EventHandler startEventHandler(String aEventHandlerName, EventHandlerListener aListener, boolean aGetLogs, boolean aRecordEvents) throws DIException
ConfigInstance
startEventHandler
in interface ConfigInstance
aEventHandlerName
- the name of the EventHandler to start.aListener
- The EventHandler listener to register for events.aGetLogs
- when true
the EventHandlerListener delivers log messages,
when false
log messages are not delivered.aRecordEvents
- when true
the EventHandler records all events.
DIException
- if an error occurs while starting the EventHandler.public EventHandler startEventHandler(String aEventHandlerName, EventHandlerListener aListener, boolean aGetLogs, boolean aRecordEvents, boolean aSync) throws DIException
ConfigInstance
startEventHandler
in interface ConfigInstance
aEventHandlerName
- the name of the EventHandler to start.aListener
- The EventHandler listener to register for events.aGetLogs
- when true
the EventHandlerListener delivers log messages,
when false
log messages are not delivered.aRecordEvents
- when true
the EventHandler records all events.aSync
- when true
the EventHandler is started synchronously,
when false
the EventHandler is started asynchronously.
DIException
- if an error occurs while starting the EventHandler.public void reload() throws DIException
ConfigInstance
reload
in interface ConfigInstance
DIException
- if an error occurs while reloading the server.public void stop() throws DIException
ConfigInstance
stop
in interface ConfigInstance
DIException
- if an error occurs while stopping.public String[] getALLogFileNames(String aALName) throws DIException
ConfigInstance
getALLogFileNames
in interface ConfigInstance
aALName
- the name of the AssemblyLine.
DIException
- if an error occurs while obtaining AssemblyLine's log file names.public String getALLastLogFileName(String aALName) throws DIException
ConfigInstance
getALLastLogFileName
in interface ConfigInstance
aALName
- the name of the AssemblyLine.
DIException
- if an error occurs while obtaining the log file name.public String getALLog(String aALName, String aLogFileName) throws DIException
ConfigInstance
getALLog
in interface ConfigInstance
aALName
- the name of the AssemblyLine.aLogFileName
- the name of the log file; no file path should be specified - just the file name.
DIException
- if an error occurs while obtaining AssemblyLine's log.public String getALLogLastChunk(String aALName, String aLogFileName, int aKilobytes) throws DIException
ConfigInstance
getALLogLastChunk
in interface ConfigInstance
aALName
- the name of the AssemblyLine.aLogFileName
- the name of the log file; no file path should be specified - just the file name.aKilobytes
- specifies in kilobytes the size of the log's last chunk that will be read.
DIException
- if an error occurs while obtaining AssemblyLine's log.public String[] getEHLogFileNames(String aEHName) throws DIException
ConfigInstance
getEHLogFileNames
in interface ConfigInstance
aEHName
- the name of the EventHandler.
DIException
- if an error occurs while obtaining EventHandler's log file names.public String getEHLastLogFileName(String aEHName) throws DIException
ConfigInstance
getEHLastLogFileName
in interface ConfigInstance
aEHName
- the name of the EventHandler.
DIException
- if an error occurs while obtaining the log file name.public String getEHLog(String aEHName, String aLogFileName) throws DIException
ConfigInstance
getEHLog
in interface ConfigInstance
aEHName
- the name of the EventHandler.aLogFileName
- the name of the log file; no file path should be specified - just the file name.
DIException
- if an error occurs while obtaining EventHandler's log.public String getEHLogLastChunk(String aEHName, String aLogFileName, int aKilobytes) throws DIException
ConfigInstance
getEHLogLastChunk
in interface ConfigInstance
aEHName
- the name of the EventHandler.aLogFileName
- the name of the log file; no file path should be specified - just the file name.aKilobytes
- specifies in kilobytes the size of the log's last chunk that will be read.
DIException
- if an error occurs while obtaining EventHandler's log.public Date getInstanceBootTime() throws DIException
ConfigInstance
getInstanceBootTime
in interface ConfigInstance
java.util.Date
specifying the date and time the instance
was started.
DIException
- if an error occurs while retrieving instance's boot time.public String getGlobalUniqueID()
ConfigInstance
getGlobalUniqueID
in interface ConfigInstance
public String[] getConnectorPoolNames() throws DIException
ConfigInstance
getConnectorPoolNames
in interface ConfigInstance
DIException
- if an error occurs while retrieving the names of all Connector Pools.public int getConnectorPoolSize(String aConnectorPoolName) throws DIException
ConfigInstance
getConnectorPoolSize
in interface ConfigInstance
aConnectorPoolName
- the name of the Connector Pool.
DIException
- if an error occurs while retrieving the size
of the specified Connector Pool.public int getConnectorPoolFreeNum(String aConnectorPoolName) throws DIException
ConfigInstance
getConnectorPoolFreeNum
in interface ConfigInstance
aConnectorPoolName
- the name of the Connector Pool.
DIException
- if an error occurs while retrieving the number
of free Connectors in the specified Connector Pool.public PoolDefConfig getConnectorPoolConfig(String aConnectorPoolName) throws DIException
ConfigInstance
getConnectorPoolConfig
in interface ConfigInstance
aConnectorPoolName
- the name of the Connector Pool.
DIException
- if an error occurs while retrieving
the Connector Pool configuration object.public int purgeConnectorPool(String aConnectorPoolName) throws DIException
ConfigInstance
purgeConnectorPool
in interface ConfigInstance
aConnectorPoolName
- the name of the Connector Pool.
DIException
- if an error occurs while shrinking the Connector Pool.public TDIProperties getTDIProperties() throws Exception
ConfigInstance
getTDIProperties
in interface ConfigInstance
Exception
- if an error occurs while obtaining a reference to TDIProperties.public static String genGUID(RS aConfigInstance)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |