Next: 6. Mapping for the Up: 5. Mapping for the Previous: 5.2.1.6 Thread Pool Size

#
5.3 Using the ORB

The CORBA module defines the interface to the ORB itself. In Fnorb, the following ORB methods are available:

    class CORBA:

        def object_to_string(self, object):
            """ Create a stringified object reference.

            This method takes an object reference and `stringifies' it
            i.e. turns it into a sequence of ASCII characters suitable for
            storing in a file sytem/database etc.

            """

        def string_to_object(self, stringified_ior):
            """ Convert a stringified object reference into a live object!

            The inverse of `object_to_string', this method takes a
            stringified object reference and returns an object reference
            that can be used to invoke operations.

            """

        def list_initial_services(self):
            """ List the names of the available object services.

            This method returns a list of strings containing the names of
            the CORBA services configured for the ORB.

            """

        def resolve_initial_references(self, identifier):
            """ Return a reference to the object service named by `identifier'.

            This method takes the name of a CORBA service and, if the
            service is configured for the ORB, returns the object
            reference of the service.  If the service is not configured
            for the ORB the method raise the `CORBA.ORB.InvalidName'
            exception.

            """

        def nil(self):
            """ Generate a NIL object reference.

            A NIL object reference is one that is correctly initialised
            but does not `point' to an implementation object (i.e. it is
            the CORBA equivalent of the NULL pointer in C/C++.

            """