Package com.ibm.di.connector.disb
Class DISBConnector
- java.lang.Object
-
- com.ibm.di.connector.Connector
-
- com.ibm.di.connector.JMSConnector
-
- com.ibm.di.connector.disb.DISBConnector
-
- All Implemented Interfaces:
ConnectorInterface
,VersionInfoInterface
,javax.jms.MessageListener
public class DISBConnector extends JMSConnector
The class DISBConnector facilitates the communication to the Data Integration Services Bus that will be accessed by IBM Tivoli Directory Integrator. It extends the JMS connector class (JMSConnector) and overrides some of its methods to implement DIS-specific functionality.
Note: This class is for internal usage only. Any dependency from the end-user will not be supported. Changes to this class will happen without a warning.- Since:
- 7.1.1
-
-
Field Summary
-
Fields inherited from class com.ibm.di.connector.JMSConnector
JMS_BROKER, JMS_MESSAGE_PROPERTY, JMS_PASSWORD, JMS_Q_MANAGER, JMS_SERVER_CHANNEL, JMS_SSL_CIPHER, JMS_SSL_SERVER_CHANNEL, JMS_SSL_USE_FLAG, JMS_USERNAME, MESSAGE_ATTRIBUTE
-
Fields inherited from class com.ibm.di.connector.Connector
ALL_MODES, myLog, PROPERTY_MESSAGE, PROPERTY_READER, PROPERTY_WRITER
-
-
Constructor Summary
Constructors Constructor Description DISBConnector()
Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
buildEntryCiAttributes(Entry entry, java.util.HashMap<java.lang.String,java.lang.Object> attr, Attribute entryAttr)
Method populates the Entry with the Configuration items.protected void
buildEntryForOperation(Entry entry, BaseOperation operation, Attribute operAttr, boolean isRefresh)
Method populates the Entry with the configuration items based on the Topic types along with the relationships if existing.protected void
buildEntryForProperties(Entry rcvdEntry, Entry toBeBuiltEntry, java.lang.String[] props, boolean isAttribute)
Builds the Entry with the JMS properties based on the relevant DISB Topic Types in Iterator mode.Entry
getNextEntry()
Gets the nextEntry attribute of the JMSConnector objectstatic ResourceHash
getResHash()
java.lang.String
getVersion()
Return version informationvoid
initialize(java.lang.Object o)
Initialize the Connectorvoid
putEntry(Entry entry)
Send an entry to the JMS server.-
Methods inherited from class com.ibm.di.connector.JMSConnector
acknowledge, commit, entry2message, findEntry, getIBMCharset, getQueue, getReadQueue, getSendQueue, getSession, getTopic, message2entry, onMessage, queryReply, reconnect, rollback, selectEntries, setFactory, setReadQueue, setSendQueue, setTopic, terminate
-
Methods inherited from class com.ibm.di.connector.Connector
addFindEntry, allModes, clearFindEntries, debug, debugMode, deleteEntry, extractExceptionInformation, findEntry, getBoolean, getClassInstance, getConfiguration, getContext, getFindEntryCount, getFirstFindEntry, getLog, getMaxDuplicateEntries, getModes, getModes, getName, getNextClient, getNextFindEntry, getParam, getParser, getProperty, getPushbackEntry, getRawConnectorConfiguration, getRSInterface, getUI, hasConfigValue, hasParser, initParser, isDeltaSupported, isExceptionFatal, isIOException, logError, logmsg, modEntry, modEntry, pushback, queryOperations, querySchema, queryTables, reconnect, registerScriptBeans, replyEntry, setConfiguration, setContext, setCurrent, setDebugMode, setLog, setMaxDuplicateEntries, setModes, setModes, setName, setParam, setParser, setProperty, setRSInterface, terminateServer
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.ibm.di.connector.ConnectorInterface
deleteEntry, getConfiguration, getContext, getFindEntryCount, getFirstFindEntry, getMaxDuplicateEntries, getName, getNextClient, getNextFindEntry, getParam, getPushbackEntry, getRawConnectorConfiguration, isDeltaSupported, isExceptionFatal, isIOException, modEntry, modEntry, pushback, queryOperations, querySchema, reconnect, registerScriptBeans, replyEntry, setConfiguration, setContext, setCurrent, setLog, setMaxDuplicateEntries, setName, setParam, setRSInterface, terminateServer
-
-
-
-
Method Detail
-
initialize
public void initialize(java.lang.Object o) throws java.lang.Exception
Initialize the Connector- Specified by:
initialize
in interfaceConnectorInterface
- Overrides:
initialize
in classJMSConnector
- Parameters:
o
- The mode of the Connector- Throws:
java.lang.Exception
- if the initialization fails
-
getNextEntry
public Entry getNextEntry() throws java.lang.Exception
Gets the nextEntry attribute of the JMSConnector object- Specified by:
getNextEntry
in interfaceConnectorInterface
- Overrides:
getNextEntry
in classJMSConnector
- Returns:
- The nextEntry value
- Throws:
java.lang.Exception
- if the operation does not succeed- See Also:
ConnectorInterface.selectEntries()
-
putEntry
public void putEntry(Entry entry) throws java.lang.Exception
Send an entry to the JMS server.- Specified by:
putEntry
in interfaceConnectorInterface
- Overrides:
putEntry
in classJMSConnector
- Parameters:
entry
- The entry to send- Throws:
java.lang.Exception
- If the sending of a message fails
-
buildEntryForProperties
protected void buildEntryForProperties(Entry rcvdEntry, Entry toBeBuiltEntry, java.lang.String[] props, boolean isAttribute) throws java.lang.Exception
Builds the Entry with the JMS properties based on the relevant DISB Topic Types in Iterator mode.- Parameters:
rcvdEntry
- The Entry containing the JMS properties with the prefix ".jms" for the attribute namestoBeBuiltEntry
- The Entry that will contain the message properties with the prefix ".jms" for the attribute names removed.props
- The String array containing the attribute names of the JMS propertiesisAttribute
- Flag that tells whether the property is part of Entry Property or Attribute.- Throws:
java.lang.Exception
- If a problem occurs.
-
buildEntryForOperation
protected void buildEntryForOperation(Entry entry, BaseOperation operation, Attribute operAttr, boolean isRefresh)
Method populates the Entry with the configuration items based on the Topic types along with the relationships if existing. If it's Instance Topic, builds the "configurationItem". If its Model Topic, builds the "modelItem". If its GuidLifeCycleTopic, builds the "guid". If relationships exist then the "relationship" is built.- Parameters:
entry
- The Entry that needs to be populated.operation
- The DIS model BaseOperation object.operAttr
- The Attribute that needs to be populated.instanceTopicMsg
- The flag to identify the DIS instance topic.isRefresh
- The flag to identify the refresh instance topic object.
-
buildEntryCiAttributes
protected void buildEntryCiAttributes(Entry entry, java.util.HashMap<java.lang.String,java.lang.Object> attr, Attribute entryAttr)
Method populates the Entry with the Configuration items. The method recursively calls itself to build the entry.- Parameters:
entry
- The Entry that needs to be populated.attr
- The HashMap containing the CI AttributesentryAttr
- The Attribute that will contain the built attributes.
-
getResHash
public static ResourceHash getResHash()
- Returns:
- The container with Connector's messages.
-
getVersion
public java.lang.String getVersion()
Return version information- Specified by:
getVersion
in interfaceVersionInfoInterface
- Overrides:
getVersion
in classJMSConnector
- Returns:
- The version value
-
-