Class 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
    • Constructor Detail

      • DISBConnector

        public DISBConnector()
        Constructor. Initializes the connector to work in AddOnly and Iterator Modes.
    • Method Detail

      • initialize

        public void initialize​(java.lang.Object o)
                        throws java.lang.Exception
        Initialize the Connector
        Specified by:
        initialize in interface ConnectorInterface
        Overrides:
        initialize in class JMSConnector
        Parameters:
        o - The mode of the Connector
        Throws:
        java.lang.Exception - if the initialization fails
      • putEntry

        public void putEntry​(Entry entry)
                      throws java.lang.Exception
        Send an entry to the JMS server.
        Specified by:
        putEntry in interface ConnectorInterface
        Overrides:
        putEntry in class JMSConnector
        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 names
        toBeBuiltEntry - 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 properties
        isAttribute - 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 Attributes
        entryAttr - The Attribute that will contain the built attributes.
      • getResHash

        public static ResourceHash getResHash()
        Returns:
        The container with Connector's messages.