|
||||||||||
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
ConfigInstance class implements public methods exposed through JMX layer.
Field Summary | |
---|---|
static java.lang.String |
MBEAN_TYPE
Type of the MBean. |
Constructor Summary | |
---|---|
ConfigInstance(ConfigInstance aConfigInstance)
Class constructor. |
Method Summary | |
---|---|
static javax.management.ObjectName |
genObjectName(java.lang.String aConfigInstanceName)
Generates object name for specified assembly line handler. |
java.lang.String |
getALLastLogFileName(java.lang.String aALName)
Returns the name of the log file created on the last run of a given AssemblyLine. |
java.lang.String |
getALLog(java.lang.String aALName,
java.lang.String aLogFileName)
Given an AssemblyLine name, and a log file name, retrieves the log of this AssemblyLine, stored in the specified file. |
java.lang.String[] |
getALLogFileNames(java.lang.String aALName)
Returns the names of all available log files for a given AssemblyLine. |
java.lang.String |
getALLogLastChunk(java.lang.String aALName,
java.lang.String aLogFileName,
java.lang.Integer aKilobytes)
Retrieves the last chunk from a specified AssemblyLine's log file. |
SchemaConfig |
getAssemblyLineInputParameters(java.lang.String aAssemblyLineName)
Returns the AssemblyLine’s input parameters. |
java.lang.String[] |
getAssemblyLineNames()
Returns the AssemblyLines’ names. |
SchemaConfig |
getAssemblyLineOutputParameters(java.lang.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. |
java.lang.String[] |
getAssemblyLinesNames()
Deprecated. |
java.lang.String |
getConfigId()
Returns the configuration ID generated by the server. |
java.lang.String |
getConfigPath()
Retrieves the config path. |
MetamergeConfig |
getConfiguration()
Returns configuration instance representing this configuration. |
PoolDefConfig |
getConnectorPoolConfig(java.lang.String aConnectorPoolName)
Returns the Connector Pool configuration object. |
int |
getConnectorPoolFreeNum(java.lang.String aConnectorPoolName)
Returns the number of free Connectors in the specified Connector Pool. |
java.lang.String[] |
getConnectorPoolNames()
Returns the names of all Connector Pools in the Config Instance. |
int |
getConnectorPoolSize(java.lang.String aConnectorPoolName)
Returns the size of the specified Connector Pool. |
ExternalPropertiesConfig |
getExternalProperties()
Returns the external properties of the configuration. |
ExternalPropertiesConfig |
getExternalProperties(java.lang.String aKey)
Returns the ExternalPropertiesConfig object for the named external properties object. |
java.lang.String[] |
getExternalPropertiesKeys()
Returns the external properties object names. |
java.lang.String |
getGlobalUniqueID()
Returns the Config Instance GUID. |
java.lang.String |
getId()
Reads attribute "Id". |
java.util.Date |
getInstanceBootTime()
Returns the Instance boot time. |
javax.management.ObjectName |
getTDIProperties()
Access to the TDIProperies for the particular config. |
java.lang.String |
getType()
Reads attribute "Type". |
int |
purgeConnectorPool(java.lang.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()
Deprecated. |
void |
saveConfiguration(java.lang.Boolean aEncrypt)
Deprecated. |
void |
saveExternalProperties()
Deprecated. |
void |
setConfiguration(MetamergeConfig aConfiguration)
Sets given configuration to this configuration. |
void |
setExternalProperties(ExternalPropertiesConfig aExPropConfig)
Deprecated. |
void |
setExternalProperties(java.lang.String aKey,
ExternalPropertiesConfig aExPropConfig)
Deprecated. |
javax.management.ObjectName |
startAssemblyLine(java.lang.String aAssemblyLineName)
Starts the specified AssemblyLine asynchronously. |
javax.management.ObjectName |
startAssemblyLine(java.lang.String aAssemblyLineName,
java.lang.Boolean aSync)
Starts the specified AssemblyLine. |
javax.management.ObjectName |
startAssemblyLine(java.lang.String aAssemblyLineName,
Entry aInputData)
Starts the specified AssemblyLine with the given input data asynchronously. |
javax.management.ObjectName |
startAssemblyLine(java.lang.String aAssemblyLineName,
Entry aInputData,
AssemblyLineListener aListener,
java.lang.Boolean aGetLogs)
Starts asynchronously the specified AssemblyLine with the given input data and results listener. |
javax.management.ObjectName |
startAssemblyLine(java.lang.String aAssemblyLineName,
Entry aInputData,
AssemblyLineListener aListener,
java.lang.Boolean aGetLogs,
java.lang.Boolean aSync)
Starts the specified AssemblyLine with the given input data and results listener. |
javax.management.ObjectName |
startAssemblyLine(java.lang.String aAssemblyLineName,
Entry aInputData,
AssemblyLineListener aListener,
java.lang.Boolean aGetLogs,
java.lang.Boolean aSync,
java.lang.Boolean aGetEntryOnEachCycle)
Starts the specified AssemblyLine with the given input data and results listener. |
javax.management.ObjectName |
startAssemblyLine(java.lang.String aAssemblyLineName,
Entry aInputData,
java.lang.Boolean aSync)
Starts the specified AssemblyLine with the given input data. |
javax.management.ObjectName |
startAssemblyLine(java.lang.String aAssemblyLineName,
TaskCallBlock aTcb)
Starts asynchronously the specified AssemblyLine with the given TaskCallBlock. |
javax.management.ObjectName |
startAssemblyLine(java.lang.String aAssemblyLineName,
TaskCallBlock aTcb,
java.lang.Boolean aSync)
Starts the specified AssemblyLine with the given TaskCallBlock. |
javax.management.ObjectName |
startAssemblyLineManual(java.lang.String aAssemblyLineName,
Entry aInputData)
Starts the specified AssemblyLine with the given input data in manual mode. |
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 java.lang.String MBEAN_TYPE
Constructor Detail |
---|
public ConfigInstance(ConfigInstance aConfigInstance) throws DIException
aConfigInstance
- com.ibm.di.api.local.ConfigInstance
DIException
Method Detail |
---|
public java.lang.String getType()
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 java.lang.String getId() throws DIException
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 java.lang.String getConfigId() throws DIException
Example
//for local access to jmx layer use: var jmxMBeanServer = com.ibm.di.api.jmx.JMXAgent.getMBeanServer(); var jmxUrl = new javax.management.remote.JMXServiceURL("service:jmx:rmi://localhost/jndi/rmi://localhost:1099/jmxconnector"); var jmxConnector = javax.management.remote.JMXConnectorFactory.connect(jmxUrl); var jmxMBeanServer = jmxConnector.getMBeanServerConnection(); mBeans = jmxMBeanServer.queryMBeans(null, null).iterator(); while (mBeans.hasNext()) { var mb = mBeans.next(); if (mb.getClassName()=="com.ibm.di.api.jmx.mbeans.ConfigInstance") break; } var on = mb.getObjectName(); var res = jmxMBeanServer.getAttribute(on,"ConfigId"); task.logmsg("Result "+ res); } Sample output: Result C__Documents and Settings_username_My Documents_TDI_rs.xml
getConfigId
in interface ConfigInstanceMBean
DIException
- if an error occurs while getting the configuration ID.public MetamergeConfig getConfiguration() throws DIException
getConfiguration
in interface ConfigInstanceMBean
DIException
- if an error occurs while getting the configuration.public void setConfiguration(MetamergeConfig aConfiguration) throws DIException
setConfiguration
in interface ConfigInstanceMBean
aConfiguration
- The new configuration.
DIException
- if an error occurs while setting the configuration.@Deprecated public void saveConfiguration() throws DIException
saveConfiguration
in interface ConfigInstanceMBean
DIException
@Deprecated public void saveConfiguration(java.lang.Boolean aEncrypt) throws DIException
saveConfiguration
in interface ConfigInstanceMBean
DIException
public ExternalPropertiesConfig getExternalProperties() throws DIException
getExternalProperties
in interface ConfigInstanceMBean
DIException
- if an error occurs while getting the external properties.public ExternalPropertiesConfig getExternalProperties(java.lang.String aKey) throws DIException
getExternalProperties
in interface ConfigInstanceMBean
aKey
- The external property object name.
DIException
- if an error occurs while getting the external properties.public java.lang.String[] getExternalPropertiesKeys() throws DIException
getExternalPropertiesKeys
in interface ConfigInstanceMBean
DIException
- if an error occurs while getting the external properties
names.@Deprecated public void setExternalProperties(ExternalPropertiesConfig aExPropConfig) throws DIException
setExternalProperties
in interface ConfigInstanceMBean
DIException
@Deprecated public void setExternalProperties(java.lang.String aKey, ExternalPropertiesConfig aExPropConfig) throws DIException
setExternalProperties
in interface ConfigInstanceMBean
DIException
@Deprecated public void saveExternalProperties() throws DIException
saveExternalProperties
in interface ConfigInstanceMBean
DIException
@Deprecated public java.lang.String[] getAssemblyLinesNames() throws DIException
getAssemblyLinesNames
in interface ConfigInstanceMBean
DIException
public java.lang.String[] getAssemblyLineNames() throws DIException
getAssemblyLineNames
in interface ConfigInstanceMBean
DIException
- if an error occurs while getting the AssemblyLines’ names.public SchemaConfig getAssemblyLineInputParameters(java.lang.String aAssemblyLineName) throws DIException
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(java.lang.String aAssemblyLineName) throws DIException
getAssemblyLineOutputParameters
in interface ConfigInstanceMBean
aAssemblyLineName
- the name of the AssemblyLine.
DIException
- if an error occurs while getting the AssemblyLine's output
parameters.public javax.management.ObjectName[] getAssemblyLines() throws DIException
Example
//for local access to jmx layer use: var jmxMBeanServer = com.ibm.di.api.jmx.JMXAgent.getMBeanServer(); var jmxUrl = new javax.management.remote.JMXServiceURL("service:jmx:rmi://localhost/jndi/rmi://localhost:1099/jmxconnector"); var jmxConnector = javax.management.remote.JMXConnectorFactory.connect(jmxUrl); var jmxMBeanServer = jmxConnector.getMBeanServerConnection(); mBeans = jmxMBeanServer.queryMBeans(null, null).iterator(); while (mBeans.hasNext()) { var mb = mBeans.next(); if (mb.getClassName()=="com.ibm.di.api.jmx.mbeans.ConfigInstance") break; } var on = mb.getObjectName(); var res = jmxMBeanServer.getAttribute(on,"AssemblyLines"); task.logmsg("Result "+ res); } Sample output: Result ServerAPI:type=AssemblyLine,id=AssemblyLines/test.2
getAssemblyLines
in interface ConfigInstanceMBean
DIException
- if an error occurs while getting the AssemblyLines’ names.public javax.management.ObjectName startAssemblyLine(java.lang.String aAssemblyLineName) throws DIException
Example
//for local access to jmx layer use: var jmxMBeanServer = com.ibm.di.api.jmx.JMXAgent.getMBeanServer(); var jmxUrl = new javax.management.remote.JMXServiceURL( "service:jmx:rmi://localhost/jndi/rmi://localhost:1099/jmxconnector"); var jmxConnector = javax.management.remote.JMXConnectorFactory.connect(jmxUrl); var jmxMBeanServer = jmxConnector.getMBeanServerConnection(); mBeans = jmxMBeanServer.queryMBeans(null, null).iterator(); while (mBeans.hasNext()) { var mb = mBeans.next(); if (mb.getClassName() == "com.ibm.di.api.jmx.mbeans.ConfigInstance") break; } var on = mb.getObjectName(); jmxMBeanServer.invoke(on, "startAssemblyLine", new Array("csv2xml"), new Array( "java.lang.String"));
startAssemblyLine
in interface ConfigInstanceMBean
aAssemblyLineName
- The name of the AssemblyLine.
DIException
- if an error occurs when starting the AssemblyLine.public javax.management.ObjectName startAssemblyLine(java.lang.String aAssemblyLineName, java.lang.Boolean aSync) throws DIException
Example
//for local access to jmx layer use: var jmxMBeanServer = com.ibm.di.api.jmx.JMXAgent.getMBeanServer(); var jmxUrl = new javax.management.remote.JMXServiceURL( "service:jmx:rmi://localhost/jndi/rmi://localhost:1099/jmxconnector"); var jmxConnector = javax.management.remote.JMXConnectorFactory.connect(jmxUrl); var jmxMBeanServer = jmxConnector.getMBeanServerConnection(); mBeans = jmxMBeanServer.queryMBeans(null, null).iterator(); while (mBeans.hasNext()) { var mb = mBeans.next(); if (mb.getClassName() == "com.ibm.di.api.jmx.mbeans.ConfigInstance") break; } var on = mb.getObjectName(); jmxMBeanServer.invoke(on, "startAssemblyLine", new Array("csv2xml", new Boolean("false")), new Array("java.lang.String", "java.lang.Boolean"));
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(java.lang.String aAssemblyLineName, Entry aInputData) throws DIException
Example
//for local access to jmx layer use: var jmxMBeanServer = com.ibm.di.api.jmx.JMXAgent.getMBeanServer(); var jmxUrl = new javax.management.remote.JMXServiceURL( "service:jmx:rmi://localhost/jndi/rmi://localhost:1099/jmxconnector"); var jmxConnector = javax.management.remote.JMXConnectorFactory.connect(jmxUrl); var jmxMBeanServer = jmxConnector.getMBeanServerConnection(); mBeans = jmxMBeanServer.queryMBeans(null, null).iterator(); while (mBeans.hasNext()) { var mb = mBeans.next(); if (mb.getClassName() == "com.ibm.di.api.jmx.mbeans.ConfigInstance") break; } var on = mb.getObjectName(); jmxMBeanServer.invoke(on, "s", new Array("csv2xml", work), new Array( "java.lang.String", "com.ibm.di.entry.Entry"));
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(java.lang.String aAssemblyLineName, Entry aInputData, java.lang.Boolean aSync) throws DIException
Example
//for local access to jmx layer use: var jmxMBeanServer = com.ibm.di.api.jmx.JMXAgent.getMBeanServer(); var jmxUrl = new javax.management.remote.JMXServiceURL( "service:jmx:rmi://localhost/jndi/rmi://localhost:1099/jmxconnector"); var jmxConnector = javax.management.remote.JMXConnectorFactory.connect(jmxUrl); var jmxMBeanServer = jmxConnector.getMBeanServerConnection(); mBeans = jmxMBeanServer.queryMBeans(null, null).iterator(); while (mBeans.hasNext()) { var mb = mBeans.next(); if (mb.getClassName() == "com.ibm.di.api.jmx.mbeans.ConfigInstance") break; } jmxMBeanServer.invoke(on, "startAssemblyLine", new Array("csv2xml", work, new Boolean("true")), new Array("java.lang.String", "com.ibm.di.entry.Entry", "java.lang.Boolean"));
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(java.lang.String aAssemblyLineName, Entry aInputData, AssemblyLineListener aListener, java.lang.Boolean aGetLogs) throws DIException
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(java.lang.String aAssemblyLineName, Entry aInputData, AssemblyLineListener aListener, java.lang.Boolean aGetLogs, java.lang.Boolean aSync) throws DIException
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 startAssemblyLine(java.lang.String aAssemblyLineName, Entry aInputData, AssemblyLineListener aListener, java.lang.Boolean aGetLogs, java.lang.Boolean aSync, java.lang.Boolean aGetEntryOnEachCycle) throws DIException
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.aGetEntryOnEachCycle
- when true
the AssemblyLineListener delivers the
current entry on each AssemblyLine cycle, when
false
the entries are not delivered.
DIException
- if an error occurs when starting the AssemblyLine.public javax.management.ObjectName startAssemblyLineManual(java.lang.String aAssemblyLineName, Entry aInputData) throws DIException
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(java.lang.String aAssemblyLineName, TaskCallBlock aTcb) throws DIException
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(java.lang.String aAssemblyLineName, TaskCallBlock aTcb, java.lang.Boolean aSync) throws DIException
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 void reload() throws DIException
reload
in interface ConfigInstanceMBean
DIException
- if an error occurs while reloading the server.public void stop() throws DIException
Example
//for local access to jmx layer use: var jmxMBeanServer = com.ibm.di.api.jmx.JMXAgent.getMBeanServer(); var jmxUrl = new javax.management.remote.JMXServiceURL( "service:jmx:rmi://localhost/jndi/rmi://localhost:1099/jmxconnector"); var jmxConnector = javax.management.remote.JMXConnectorFactory.connect(jmxUrl); var jmxMBeanServer = jmxConnector.getMBeanServerConnection(); mBeans = jmxMBeanServer.queryMBeans(null, null).iterator(); while (mBeans.hasNext()) { var mb = mBeans.next(); if (mb.getClassName() == "com.ibm.di.api.jmx.mbeans.ConfigInstance") break; } var on = mb.getObjectName(); jmxMBeanServer.invoke(on, "stop", null, null);
stop
in interface ConfigInstanceMBean
DIException
- if an error occurs while stopping.public java.lang.String[] getALLogFileNames(java.lang.String aALName) throws DIException
getALLogFileNames
in interface ConfigInstanceMBean
aALName
- the name of the AssemblyLine.
DIException
- if an error occurs while obtaining AssemblyLine's log file
names.public java.lang.String getALLastLogFileName(java.lang.String aALName) throws DIException
getALLastLogFileName
in interface ConfigInstanceMBean
aALName
- the name of the AssemblyLine.
DIException
- if an error occurs while obtaining the log file name.public java.lang.String getALLog(java.lang.String aALName, java.lang.String aLogFileName) throws DIException
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 java.lang.String getALLogLastChunk(java.lang.String aALName, java.lang.String aLogFileName, java.lang.Integer aKilobytes) throws DIException
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 java.util.Date getInstanceBootTime() throws DIException
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(java.lang.String aConfigInstanceName) throws DIException
aConfigInstanceName
- the name of the config instance.
DIException
- if error occurs while creating AssemblyLineHandler JMX object
name.public java.lang.String getGlobalUniqueID() throws DIException
Example
//for local access to jmx layer use: var jmxMBeanServer = com.ibm.di.api.jmx.JMXAgent.getMBeanServer(); var jmxUrl = new javax.management.remote.JMXServiceURL("service:jmx:rmi://localhost/jndi/rmi://localhost:1099/jmxconnector"); var jmxConnector = javax.management.remote.JMXConnectorFactory.connect(jmxUrl); var jmxMBeanServer = jmxConnector.getMBeanServerConnection(); mBeans = jmxMBeanServer.queryMBeans(null, null).iterator(); while (mBeans.hasNext()) { var mb = mBeans.next(); if (mb.getClassName()=="com.ibm.di.api.jmx.mbeans.ConfigInstance") break; } var on = mb.getObjectName(); var res = jmxMBeanServer.getAttribute(on,"GlobalUniqueID"); task.logmsg("Result "+ res); } Sample output:Result 17135304020
getGlobalUniqueID
in interface ConfigInstanceMBean
DIException
- if an error occurs while retrieving GlobalUniqueID.public java.lang.String[] getConnectorPoolNames() throws DIException
getConnectorPoolNames
in interface ConfigInstanceMBean
DIException
- if an error occurs while retrieving Connector Pool names.public int getConnectorPoolSize(java.lang.String aConnectorPoolName) throws DIException
getConnectorPoolSize
in interface ConfigInstanceMBean
aConnectorPoolName
- the name of the Connector Pool.
DIException
- if an error occurs while retrieving Connector Pool size.public int getConnectorPoolFreeNum(java.lang.String aConnectorPoolName) throws DIException
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(java.lang.String aConnectorPoolName) throws DIException
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(java.lang.String aConnectorPoolName) throws DIException
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 java.lang.Exception
getTDIProperties
in interface ConfigInstanceMBean
java.lang.Exception
- if an error occurs while getting TDI Propertiespublic java.lang.String getConfigPath()
Example
//for local access to jmx layer use: var jmxMBeanServer = com.ibm.di.api.jmx.JMXAgent.getMBeanServer(); var jmxUrl = new javax.management.remote.JMXServiceURL("service:jmx:rmi://localhost/jndi/rmi://localhost:1099/jmxconnector"); var jmxConnector = javax.management.remote.JMXConnectorFactory.connect(jmxUrl); var jmxMBeanServer = jmxConnector.getMBeanServerConnection(); mBeans = jmxMBeanServer.queryMBeans(null, null).iterator(); while (mBeans.hasNext()) { var mb = mBeans.next(); if (mb.getClassName()=="com.ibm.di.api.jmx.mbeans.ConfigInstance") break; } var on = mb.getObjectName(); var res = jmxMBeanServer.getAttribute(on,"ConfigPath"); task.logmsg("Result "+ res); } Sample output:Result C:\Documents and Settings\Username\My Documents\TDI\rs.xml
getConfigPath
in interface ConfigInstanceMBean
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |