|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.di.api.jmx.mbeans.BaseAdmin
com.ibm.di.api.jmx.mbeans.ConfigInstance
public class ConfigInstance
Field Summary | |
---|---|
static String |
MBEAN_TYPE
|
Constructor Summary | |
---|---|
ConfigInstance(ConfigInstance aConfigInstance)
|
Method Summary | |
---|---|
static javax.management.ObjectName |
genObjectName(String aConfigInstanceName)
|
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,
Integer 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. |
javax.management.ObjectName[] |
getAssemblyLines()
Returns the names of currently started AssemblyLines of the configuration each represented as ObjectName generated from AssemblyLine’s name and unique code. |
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,
Integer aKilobytes)
Retrieves the last chunk from a specified EventHandler's log file. |
javax.management.ObjectName[] |
getEventHandlers()
Returns the names of the EventHandlers of the configuration each represented as ObjectName generated from EventHandler’s name and unique code. |
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. |
String |
getId()
Reads attribute "Id". |
Date |
getInstanceBootTime()
Returns the Instance boot time. |
javax.management.ObjectName |
getTDIProperties()
Access to the TDIProperies for the particular config. |
String |
getType()
Reads attribute "Type". |
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)
|
javax.management.ObjectName |
startAssemblyLine(String aAssemblyLineName)
Starts the specified AssemblyLine asynchronously. |
javax.management.ObjectName |
startAssemblyLine(String aAssemblyLineName,
Boolean aSync)
Starts the specified AssemblyLine. |
javax.management.ObjectName |
startAssemblyLine(String aAssemblyLineName,
Entry aInputData)
Starts the specified AssemblyLine with the given input data asynchronously. |
javax.management.ObjectName |
startAssemblyLine(String aAssemblyLineName,
Entry aInputData,
AssemblyLineListener aListener,
Boolean aGetLogs)
Starts asynchronously the specified AssemblyLine with the given input data and results listener. |
javax.management.ObjectName |
startAssemblyLine(String aAssemblyLineName,
Entry aInputData,
AssemblyLineListener aListener,
Boolean aGetLogs,
Boolean aSync)
Starts the specified AssemblyLine with the given input data and results listener. |
javax.management.ObjectName |
startAssemblyLine(String aAssemblyLineName,
Entry aInputData,
Boolean aSync)
Starts the specified AssemblyLine with the given input data. |
javax.management.ObjectName |
startAssemblyLine(String aAssemblyLineName,
TaskCallBlock aTcb)
Starts asynchronously the specified AssemblyLine with the given TaskCallBlock. |
javax.management.ObjectName |
startAssemblyLine(String aAssemblyLineName,
TaskCallBlock aTcb,
Boolean aSync)
Starts the specified AssemblyLine with the given TaskCallBlock. |
javax.management.ObjectName |
startAssemblyLineManual(String aAssemblyLineName,
Entry aInputData)
Starts the specified AssemblyLine with the given input data in manual mode. |
javax.management.ObjectName |
startEventHandler(String aEventHandlerName)
Starts the specified EventHandler asynchronously. |
javax.management.ObjectName |
startEventHandler(String aEventHandlerName,
Boolean aSync)
Starts the specified EventHandler. |
javax.management.ObjectName |
startEventHandler(String aEventHandlerName,
EventHandlerListener aListener,
Boolean aGetLogs,
Boolean aRecordEvents)
Starts the specified EventHandler asynchronously. |
javax.management.ObjectName |
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 com.ibm.di.api.jmx.mbeans.BaseAdmin |
---|
getCurrentUserId, getKeyPropertyList |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String MBEAN_TYPE
Constructor Detail |
---|
public ConfigInstance(ConfigInstance aConfigInstance) throws DIException
DIException
Method Detail |
---|
public String getType()
BaseMBean
getType()
and getId()
are used in a common schema for
object names for all MBeans in the management package. The key properties part
of the object name of each MBean is defined as
"type=" + getType() + ",id=" + getId()
, for example
"type=AssemblyLine,id=Hello".
getType
in interface BaseMBean
public String getId() throws DIException
BaseMBean
getType()
and getId()
are used in a common schema for
object names for all MBeans in the management package. The key properties part
of the object name of each MBean is defined as
"type=" + getType() + ",id=" + getId()
, for example
"type=AssemblyLine,id=Hello".
getId
in interface BaseMBean
DIException
- if an error occurs while obtaining MBean's Id.public String getConfigId() throws DIException
ConfigInstanceMBean
getConfigId
in interface ConfigInstanceMBean
DIException
- if an error occurs while getting the configuration ID.public MetamergeConfig getConfiguration() throws DIException
ConfigInstanceMBean
getConfiguration
in interface ConfigInstanceMBean
DIException
- if an error occurs while getting the configuration.public void setConfiguration(MetamergeConfig aConfiguration) throws DIException
ConfigInstanceMBean
setConfiguration
in interface ConfigInstanceMBean
aConfiguration
- The new configuration.
DIException
- if an error occurs while setting the configuration.public void saveConfiguration() throws DIException
saveConfiguration
in interface ConfigInstanceMBean
DIException
public void saveConfiguration(Boolean aEncrypt) throws DIException
saveConfiguration
in interface ConfigInstanceMBean
DIException
public ExternalPropertiesConfig getExternalProperties() throws DIException
ConfigInstanceMBean
getExternalProperties
in interface ConfigInstanceMBean
DIException
- if an error occurs while getting the external properties.public ExternalPropertiesConfig getExternalProperties(String aKey) throws DIException
ConfigInstanceMBean
getExternalProperties
in interface ConfigInstanceMBean
aKey
- The external property object name.
DIException
- if an error occurs while getting the external properties.public String[] getExternalPropertiesKeys() throws DIException
ConfigInstanceMBean
getExternalPropertiesKeys
in interface ConfigInstanceMBean
DIException
- if an error occurs while getting the external properties names.public void setExternalProperties(ExternalPropertiesConfig aExPropConfig) throws DIException
setExternalProperties
in interface ConfigInstanceMBean
DIException
public void setExternalProperties(String aKey, ExternalPropertiesConfig aExPropConfig) throws DIException
setExternalProperties
in interface ConfigInstanceMBean
DIException
public void saveExternalProperties() throws DIException
saveExternalProperties
in interface ConfigInstanceMBean
DIException
public String[] getAssemblyLinesNames() throws DIException
ConfigInstanceMBean
getAssemblyLinesNames
in interface ConfigInstanceMBean
DIException
- if an error occurs while getting the AssemblyLines’ names.public SchemaConfig getAssemblyLineInputParameters(String aAssemblyLineName) throws DIException
ConfigInstanceMBean
getAssemblyLineInputParameters
in interface ConfigInstanceMBean
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
ConfigInstanceMBean
getAssemblyLineOutputParameters
in interface ConfigInstanceMBean
aAssemblyLineName
- the name of the AssemblyLine.
DIException
- if an error occurs while getting the AssemblyLine's output parameters.public String[] getEventHandlersNames() throws DIException
ConfigInstanceMBean
getEventHandlersNames
in interface ConfigInstanceMBean
DIException
- if an error occurs while getting the EventHandlers’ names.public javax.management.ObjectName[] getAssemblyLines() throws DIException
ConfigInstanceMBean
getAssemblyLines
in interface ConfigInstanceMBean
DIException
- if an error occurs while getting the AssemblyLines’ names.public javax.management.ObjectName[] getEventHandlers() throws DIException
ConfigInstanceMBean
getEventHandlers
in interface ConfigInstanceMBean
DIException
- if an error occurs while getting the EventHandlers’ names.public javax.management.ObjectName startAssemblyLine(String aAssemblyLineName) throws DIException
ConfigInstanceMBean
startAssemblyLine
in interface ConfigInstanceMBean
aAssemblyLineName
- The name of the AssemblyLine.
DIException
- if an error occurs when starting the AssemblyLine.public javax.management.ObjectName startAssemblyLine(String aAssemblyLineName, Boolean aSync) throws DIException
ConfigInstanceMBean
startAssemblyLine
in interface ConfigInstanceMBean
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 javax.management.ObjectName startAssemblyLine(String aAssemblyLineName, Entry aInputData) throws DIException
ConfigInstanceMBean
startAssemblyLine
in interface ConfigInstanceMBean
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 javax.management.ObjectName startAssemblyLine(String aAssemblyLineName, Entry aInputData, Boolean aSync) throws DIException
ConfigInstanceMBean
startAssemblyLine
in interface ConfigInstanceMBean
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 javax.management.ObjectName startAssemblyLine(String aAssemblyLineName, Entry aInputData, AssemblyLineListener aListener, Boolean aGetLogs) throws DIException
ConfigInstanceMBean
startAssemblyLine
in interface ConfigInstanceMBean
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 javax.management.ObjectName startAssemblyLine(String aAssemblyLineName, Entry aInputData, AssemblyLineListener aListener, Boolean aGetLogs, Boolean aSync) throws DIException
ConfigInstanceMBean
startAssemblyLine
in interface ConfigInstanceMBean
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 javax.management.ObjectName startAssemblyLineManual(String aAssemblyLineName, Entry aInputData) throws DIException
ConfigInstanceMBean
startAssemblyLineManual
in interface ConfigInstanceMBean
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 javax.management.ObjectName startAssemblyLine(String aAssemblyLineName, TaskCallBlock aTcb) throws DIException
ConfigInstanceMBean
startAssemblyLine
in interface ConfigInstanceMBean
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 javax.management.ObjectName startAssemblyLine(String aAssemblyLineName, TaskCallBlock aTcb, Boolean aSync) throws DIException
ConfigInstanceMBean
startAssemblyLine
in interface ConfigInstanceMBean
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 javax.management.ObjectName startEventHandler(String aEventHandlerName) throws DIException
ConfigInstanceMBean
startEventHandler
in interface ConfigInstanceMBean
aEventHandlerName
- the name of the EventHandler to start.
DIException
- if an error occurs while starting the EventHandler.public javax.management.ObjectName startEventHandler(String aEventHandlerName, Boolean aSync) throws DIException
ConfigInstanceMBean
startEventHandler
in interface ConfigInstanceMBean
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 javax.management.ObjectName startEventHandler(String aEventHandlerName, EventHandlerListener aListener, Boolean aGetLogs, Boolean aRecordEvents) throws DIException
ConfigInstanceMBean
startEventHandler
in interface ConfigInstanceMBean
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 javax.management.ObjectName startEventHandler(String aEventHandlerName, EventHandlerListener aListener, Boolean aGetLogs, Boolean aRecordEvents, Boolean aSync) throws DIException
ConfigInstanceMBean
startEventHandler
in interface ConfigInstanceMBean
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
ConfigInstanceMBean
reload
in interface ConfigInstanceMBean
DIException
- if an error occurs while reloading the server.public void stop() throws DIException
ConfigInstanceMBean
stop
in interface ConfigInstanceMBean
DIException
- if an error occurs while stopping.public String[] getALLogFileNames(String aALName) throws DIException
ConfigInstanceMBean
getALLogFileNames
in interface ConfigInstanceMBean
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
ConfigInstanceMBean
getALLastLogFileName
in interface ConfigInstanceMBean
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
ConfigInstanceMBean
getALLog
in interface ConfigInstanceMBean
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, Integer aKilobytes) throws DIException
ConfigInstanceMBean
getALLogLastChunk
in interface ConfigInstanceMBean
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
ConfigInstanceMBean
getEHLogFileNames
in interface ConfigInstanceMBean
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
ConfigInstanceMBean
getEHLastLogFileName
in interface ConfigInstanceMBean
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
ConfigInstanceMBean
getEHLog
in interface ConfigInstanceMBean
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, Integer aKilobytes) throws DIException
ConfigInstanceMBean
getEHLogLastChunk
in interface ConfigInstanceMBean
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
ConfigInstanceMBean
getInstanceBootTime
in interface ConfigInstanceMBean
java.util.Date
specifying the date and time the instance
was started.
DIException
- if an error occurs while retrieving instance's boot time.public static javax.management.ObjectName genObjectName(String aConfigInstanceName) throws DIException
DIException
public String getGlobalUniqueID() throws DIException
ConfigInstanceMBean
getGlobalUniqueID
in interface ConfigInstanceMBean
DIException
- if an error occurs while retrieving GlobalUniqueID.public String[] getConnectorPoolNames() throws DIException
ConfigInstanceMBean
getConnectorPoolNames
in interface ConfigInstanceMBean
DIException
- if an error occurs while retrieving Connector Pool names.public int getConnectorPoolSize(String aConnectorPoolName) throws DIException
ConfigInstanceMBean
getConnectorPoolSize
in interface ConfigInstanceMBean
aConnectorPoolName
- the name of the Connector Pool.
DIException
- if an error occurs while retrieving Connector Pool size.public int getConnectorPoolFreeNum(String aConnectorPoolName) throws DIException
ConfigInstanceMBean
getConnectorPoolFreeNum
in interface ConfigInstanceMBean
aConnectorPoolName
- the name of the Connector Pool.
DIException
- if an error occurs while retrieving Connector Pool free Connectors.public PoolDefConfig getConnectorPoolConfig(String aConnectorPoolName) throws DIException
ConfigInstanceMBean
getConnectorPoolConfig
in interface ConfigInstanceMBean
aConnectorPoolName
- the name of the Connector Pool.
DIException
- if an error occurs while retrieving Connector Pool configuration object.public int purgeConnectorPool(String aConnectorPoolName) throws DIException
ConfigInstanceMBean
purgeConnectorPool
in interface ConfigInstanceMBean
aConnectorPoolName
- the name of the Connector Pool.
DIException
- if an error occurs while shrinking the Connector Pool to its minimum size.public javax.management.ObjectName getTDIProperties() throws Exception
ConfigInstanceMBean
getTDIProperties
in interface ConfigInstanceMBean
Exception
- if an error occurs while getting TDI Properties
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |