Skip navigation links
com.ergotech.vib.ports

Interface PortFactoryInterface

    • Method Detail

      • getName

        java.lang.String getName()
        Returns the name of the factory.
      • getPortPool

        PortPoolInterface getPortPool(java.lang.String portName,
                                      java.lang.Object checkedForDuplication)
                               throws java.io.IOException,
                                      BadParameterException
        Returns a pool for a particular port. This may also create a port if it does not already exist. When an application is finished with the port pool, it should be released using the releasePortPool method.
        Parameters:
        portName - the name of the port for which a pool is requested. The format of the name is dependent upon the implementation.
        checkedForDuplication - if this method is called more than once with identical arguments then a BadParameterException is thrown
        Throws:
        java.io.IOException - thrown if thrown when creating a port pool/port
        BadParameterException - thrown if thrown when creating a port pool/port or this method is called twice with identical arguments
      • releasePortPool

        void releasePortPool(PortPoolInterface portPool,
                             java.lang.Object mustHaveBeenAdded)
                      throws java.io.IOException,
                             BadParameterException
        Removes a reference to a particular port name. This may also close and delete the port.
        Parameters:
        string -
        Throws:
        java.io.IOException
        BadParameterException

Copyright © 1999-2021 ErgoTech Systems, Inc. All Rights Reserved.