Class DipFactoryImp

  • All Implemented Interfaces:
    DipFactory

    public class DipFactoryImp
    extends java.lang.Object
    implements DipFactory
    • Constructor Detail

      • DipFactoryImp

        public DipFactoryImp()
    • Method Detail

      • setDNSNode

        public void setDNSNode​(java.lang.String nodeName)
        Description copied from interface: DipFactory
        Specifies the DNS to be used for the DIP communication. This setting applies for both the publications and the subscriptions. This method shall be used prior the creation of subscriptions or publications as these become active immediatly. Further calls will be ignored.
        Specified by:
        setDNSNode in interface DipFactory
        Parameters:
        nodeName - name of the DNS to be used.
      • setTimeout

        public void setTimeout​(int timeout)
        Description copied from interface: DipFactory
        Set the write and connection timeout to be used for DIP communication.
        Specified by:
        setTimeout in interface DipFactory
        Parameters:
        timeout - Timeout in seconds to be applied to new connections.
      • getTimeout

        public int getTimeout()
        Description copied from interface: DipFactory
        Get the write and connection timeout to be used for DIP communication.
        Specified by:
        getTimeout in interface DipFactory
      • createDipPublication

        public DipPublication createDipPublication​(java.lang.String topicName,
                                                   DipPublicationErrorHandler handler)
                                            throws DipException
        Description copied from interface: DipFactory
        Creates a new DipPublication object for the topic specified by topicName. This object can then be used to publish new data on the topic. The handler specified by this call is used to inform the Publication developer of any ansynchronous (errors which can not be directly associated with any DipPublication method call).
        Specified by:
        createDipPublication in interface DipFactory
        Parameters:
        topicName - name of the subscription topic - must be unique
        handler - - used for handling aysnch. DIP errors.
        Throws:
        DipException - if the publication cannot be created.
        See Also:
        interface,
      • createDipData

        public DipData createDipData()
        Description copied from interface: DipFactory
        Creates a new DipData object. DipData objects have to be created for publishing complex data.
        Specified by:
        createDipData in interface DipFactory
      • createDipBrowser

        public DipBrowser createDipBrowser()
        Description copied from interface: DipFactory
        Create a browser object with which the namespace of DIP may be viewed.
        Specified by:
        createDipBrowser in interface DipFactory