[Previous] [Contents] [Next] [IONA Technologies]


CORBA.ORB


Contents

CORBA.ORB.baseInterfacesOf()
CORBA.ORB.collocated()
CORBA.ORB.collocated()
CORBA.ORB.create_list()
CORBA.ORB.create_operation_list()
CORBA.ORB.defaultTxTimeout()
CORBA.ORB.finalize()
CORBA.ORB.get_default_context()
CORBA.ORB.getHostPort()
CORBA.ORB.get_next_response()
CORBA.ORB.get_principal()
CORBA.ORB.getMyReqTransformer()
CORBA.ORB.isBaseInterfaceOf()
CORBA.ORB.maxConnectRetries()
CORBA.ORB.myHost()
CORBA.ORB.myServer()
CORBA.ORB.noReconnectOnFailure()
CORBA.ORB.object_to_string()
CORBA.ORB.pingDuringBind()
CORBA.ORB.poll_next_response()
CORBA.ORB.send_multiple_requests_deferred()
CORBA.ORB.send_multiple_requests_oneway()
CORBA.ORB.setDiagnostics()
CORBA.ORB.setHostPort()
CORBA.ORB.setMyReqTransformer()
CORBA.ORB.set_principal()
CORBA.ORB.setServerName()
CORBA.ORB.string_to_object()
CORBA.ORB.string_to_object()



Synopsis:

Class ORB implements the OMG CORBA ORB pseudo interface and adds a number of methods specific to OrbixWeb.

ORB provides a set of methods that control OrbixWeb from the client. These include operations to convert between strings and object references, and operations for use with the Dynamic Invocation Interface (DII).

The methods on this class are invoked through the _CORBA.Orbix object.

CORBA:

OrbixWeb:

Notes:

CORBA defined.

See Also:



CORBA.ORB.baseInterfacesOf()


Synopsis:

Description:

Returns an IDL sequence of strings, listing the base interfaces of derived. The interface derived is returned in the sequence, since it is considered a base interface of itself.

Notes:

OrbixWeb specific.

See Also:



CORBA.ORB.collocated()


Synopsis:

Description:

Determines whether collocation is set. Binding to objects outside of the current process' address space is prevented if collocation is set. If collocation is not set, the lookup mechanism will allow binding outside of the current address space. By default, collocation is not set.

Return Value:

Returns true if collocation is set and returns false otherwise.

Notes:

OrbixWeb specific.

See Also:



CORBA.ORB.collocated()


Synopsis:

Description:

Enforces collocation if turnOn is set to true. If collocation is enforced, binding to objects outside of the current process' address space is prevented. If set to false, the lookup mechanism will allow binding outside of the current address space. By default, collocation is not set.

Return Value:

Returns the previous setting.

Notes:

OrbixWeb specific.

See Also:



CORBA.ORB.create_list()


Synopsis:

Description:

Allocates space for an empty NVList, stored in NVListHolder object hnew_list, of size count to contain NamedValue objects. A NamedValue object can be used as a parameter type or as a way to describe arguments to a request when using the Dynamic Invocation Interface.

Parameters:



count Number of elements in the new NVList.

hnew_list A holder object which stores the NVList. The caller must instantiate the holder object before calling this method. After the call, the holder value member holds the NVList object.

Return Value:

Returns 1 if successful, 0 otherwise.

Notes:

CORBA defined. This method is part of the Dynamic Invocation Interface.

See Also:



CORBA.ORB.create_operation_list()


Synopsis:

Description:

Returns an NVList, held in the NVListHolder parameter hnew_list, initialised with the argument descriptions for the operation specified in oper. The returned NVList is of the correct length (with one element per argument), and each NamedValue element of the list has a valid name and valid flags (denoting the argument passing mode). The value (of type CORBA.Any) of the NamedValue has a valid type (denoting the type of the argument). The value of the argument is not filled in.

Parameters:



oper A reference to the Interface Repository object describing the operation.

hnew_list A holder object which stores the NVList. The caller must instantiate the holder object before calling this method. After the call, the holder value member holds the NVList object.

Return Value:

Returns 1 if successful, 0 otherwise.

Notes:

CORBA defined. Use of this method requires the relevant IDL file to be compiled with the -R switch.

See Also:



CORBA.ORB.defaultTxTimeout()


Synopsis:

Description:

Sets the timeout for all remote calls and returns the previous setting. By default, no call has a timeout, that is, the default timeout is infinite.

The value set by this method is ignored when making a connection between a client and a server. It comes into effect only when this connection has been established.

Return Value:

Returns the previous setting.

Exceptions:

A subsequent remote call that does not return within the given timeout interval will fail with a COMM_FAILURE exception.

Notes:

OrbixWeb specific.



CORBA.ORB.finalize()


Synopsis:

Description:

Invokes the method CORBA.LoaderClass.save() on the loaders for all objects in an application.

Notes:

OrbixWeb specific.

See Also:



CORBA.ORB.get_default_context()


Synopsis:

Description:

Returns a CORBA.Context object, representing the process' default context. See CORBA.Context for an explanation of the default context.

Notes:

CORBA defined.

See Also:



CORBA.ORB.getHostPort()


Synopsis:

Description:

Returns the TCP/IP port number at which the current application will contact the OrbixWeb daemon process located at hostname.

Notes:

CORBA defined.

See Also:



CORBA.ORB.get_next_response()


Synopsis:

Description:

May be called successively to determine the outcomes of the individual requests specified in a CORBA.send_multiple_requests() call. The order in which responses are returned is not necessarily related to the order in which the requests are completed.

Parameters:



     hrequest
    
A holder object which stores the Request whose completion is being reported. The caller must instantiate the holder object before calling this method. After the call, the holder value member holds the Request object.

Return Value:

Returns 1 if successful, returns 0 otherwise.

Notes:

CORBA defined.

See Also:



CORBA.ORB.get_principal()


Synopsis:

Description:

Returns the current user name which OrbixWeb adds to outgoing requests for identification purposes.

Notes:

OrbixWeb specific.

See Also:



CORBA.ORB.getMyReqTransformer()


Synopsis:

Description:

Returns the IT_reqTransformer object associated with the current process. IT_reqTransformer is a class which allows OrbixWeb requests to be modified immediately before transmission on the network and immediately after reception. See CORBA.IT_reqTransformer for details.

Notes:

OrbixWeb specific.

See Also:



CORBA.ORB.isBaseInterfaceOf()


Synopsis:

Description:

Determines whether the interface named in maybeABase is a base interface of the interface named in derived.

Return Value:

Returns true if maybeABase is a base interface of derived (or maybeABase and derived are the same interface) and returns false otherwise.

Notes:

OrbixWeb specific.

See Also:



CORBA.ORB.maxConnectRetries()


Synopsis:

Description:

If an operation call cannot be made on the first attempt because the transport (for example, TCP/IP) connection cannot be established, OrbixWeb will retry the attempt every two seconds until either the call can be made or until there have been too many retries. The method maxConnectRetries() sets the maximum number of retries. The default number of retries is ten.

As an alternative, the IT_CONNECT_ATTEMPTS entry in the OrbixWeb configuration file may be used to control the maximum number of retries. The value set by maxConnectRetries() takes precedence over this. Only if it is set to zero will the IT_CONNECT_ATTEMPTS value be used.

Return Value:

Returns the previous setting.

Exceptions:

A subsequent operation call on an object in the server will raise the system exception COMM_FAILURE to the client application if the server cannot be contacted within the maximum number of retries.

Notes:

OrbixWeb specific.



CORBA.ORB.myHost()


Synopsis:

Description:

Returns the name of the host on which the _CORBA.Orbix object is located.

Notes:

OrbixWeb specific.

See Also:



CORBA.ORB.myServer()


Synopsis:

Description:

Returns the server name for which the _CORBA.Orbix object was created. If called from a client it returns the process identifier in string form.

Notes:

OrbixWeb specific.

See Also:



CORBA.ORB.noReconnectOnFailure()


Synopsis:

Description:

When an OrbixWeb client first contacts a server, a single communications channel is established between the client-server pair. This connection is then used for all subsequent communications between the client and the server. The connection is closed only when either the client or the server exits.

When a server exits while a client is still connected, the next invocation by the client will raise a system exception of type COMM_FAILURE. If the client attempts another invocation, OrbixWeb will automatically try to re-establish the connection.

This default behaviour can be changed by passing the value true to the method CORBA.ORB.noReconnectOnFailure(). Then, all client attempts to contact a server subsequent to closure of the communications channel will raise a COMM_FAILURE system exception.

Parameters:



     value
    
A value of true changes the default behaviour. Then, all client attempts to contact a server subsequent to closure of the communications channel will raise a COMM_FAILURE system exception.

A value of false resets the default behaviour; OrbixWeb will then try to re-establish a failed connection to a server on the next invocation by a client.

Return Value:

Returns the previous value.

Notes:

OrbixWeb specific.

See Also:



CORBA.ORB.object_to_string()


Synopsis:

Description:

Converts an object reference to a string. If oref is an OrbixWeb object reference, then the resulting String will conform to the Orbix communications protocol object reference format. If oref is an Interoperable Object Reference, then the return value will be a stringified IOR.

The Orbix communications protocol defines the following object reference format:

These fields are as follows:

host The host name of the target object.

serverName The name of the target object's server as registered in the Implementation Repository and also as specified to CORBA.BOA.impl_is_ready(), CORBA.BOA.object_is_ready() or set by setServerName(). For a local object in a server, this will be that server's name (if that server's name is known), otherwise it will be the process' identifier. Note that the server name will be known if the server is launched by OrbixWeb; or if it is launched manually and the server name is passed to impl_is_ready() or if the server name has been set by CORBA.ORB.setServerName().

marker The object's marker name. This can be chosen by the application, or it will be a string of digits chosen by OrbixWeb.

IR_host The name of a host running an Interface Repository that stores the target object's IDL definition. Normally, this is blank.

IR_server The string "IR".

interfaceMarker The target object's interface. If called on a proxy, this may not be the object's true (most derived) interface–it may be a base interface.

Notes:

CORBA defined.

See Also:



CORBA.ORB.pingDuringBind()


Synopsis:

Description:

By default, _bind() raises an exception if the object on which the _bind() is attempted is unknown to OrbixWeb. Doing so requires OrbixWeb to ping the desired object (the ping operation is defined by OrbixWeb and it has no effect on the target object). The pinging will cause the target server process to be activated if necessary, and will confirm that this server recognises the target object. Pinging can be disabled using pingDuringBind(), passing false to the parameter pingOn.

A programmer may wish to disable pinging to improve efficiency by reducing the overall number of remote invocations.

Note that if pingDuringBind(false) is called:

Return Value:

Returns the previous setting.

Notes:

OrbixWeb specific.



CORBA.ORB.poll_next_response()


Synopsis:

Description:

May be called successively to determine whether the individual requests specified in a CORBA.ORB.send_multiple_requests_oneway() or CORBA.ORB.send_multiple_requests_deferred() call have completed successfully. The method returns immediately.

Alternatively the method CORBA.Request.get_next_response() may be called on the individual Request objects in the sequence of Requests passed to send_multiple_requests_oneway() and send_multiptle_requests_deferred().

Notes:

CORBA defined.

See Also:



CORBA.ORB.
send_multiple_requests_deferred()


Synopsis:

Description:

Initiates a number of requests in parallel. It does not wait for the requests to finish before returning to the caller. The caller can use CORBA.get_next_response() or CORBA.Request.get_response() to determine the outcome of the requests.

Parameters:



     requests
    
A sequence of requests.

Return Value:

Returns 1 if successful, returns 0 otherwise.

Notes:

CORBA defined.

See Also:



CORBA.ORB.
send_multiple_requests_oneway()


Synopsis:

Description:

Initiates a number of requests in parallel. It does not wait for the requests to finish before returning to the caller.

Parameters:



     requests
    
A sequence of requests. The operations in this sequence do not have to be IDL oneway operations. The caller does not expect a response, nor does it expect out or inout parameters to be updated.

Return Value:

Returns 1 if successful, 0 otherwise.

Notes:

CORBA defined.

See Also:



CORBA.ORB.setDiagnostics()


Synopsis:

Description:

Controls the level of diagnostic messages output by the OrbixWeb. The previous setting is returned.

Level

Output

0

No diagnostics

1

Simple diagnostics (this is the default)

2

Full diagnostics

The full diagnostic messages have the form:

[hour:minute:second.millisecond server@host event-description]

An event could be an operation request or a connection or disconnection from a client.

An interleaved history of activity across the distributed system could be obtained from the full diagnostic output, say, from a client to a server, by redirecting the diagnostic messages from both the client and the server to files and then sorting a merged copy of these files.

Return Value:

Returns the previous setting.

Notes:

OrbixWeb specific.



CORBA.ORB.setHostPort()


Synopsis:

Description:

Sets the TCP/IP port number at which the current application will contact the OrbixWeb daemon process located at hostname. This allows the application programmer to override the default port configuration. Chapter 3, "OrbixWeb Configuration" explains how to establish the default configuration.

Notes:

CORBA defined.

See Also:



CORBA.ORB.setMyReqTransformer()


Synopsis:

Description:

Sets the IT_reqTransformer object which is to be associated with the current process. IT_reqTransformer is a class which allows OrbixWeb requests to be modified immediately before transmission on the network and immediately after reception. See CORBA.IT_reqTransformer for details.

Return Value:

Returns the previous IT_reqTransformer value for the current process.

Notes:

OrbixWeb specific.

See Also:



CORBA.ORB.set_principal()


Synopsis:

Description:

Sets the user name which OrbixWeb adds to outgoing requests for identification purposes.

Notes:

OrbixWeb specific.

See Also:



CORBA.ORB.setServerName()


Synopsis:

Description:

Sets the server name for the current server process. This method may be used to overcome the problem of exporting object references from a persistent server before calling impl_is_ready().

Notes:

OrbixWeb specific.

See Also:



CORBA.ORB.string_to_object()


Synopsis:

Description:

Converts the stringified object reference s to an object reference. A stringified object reference is of the form:

:\host:serverName:marker:IR_host:IR_server:interfaceMarker

See CORBA.ORB.object_to_string() for a description of these fields. The target object may not exist (it is not pinged).

Return Value:

Returns an object reference. This may be a null object if the string passed in the parameter s is not a recognised stringified object reference format.

Notes:

CORBA defined.

See Also:



CORBA.ORB.string_to_object()


Synopsis:

Description:

Creates an object from the strings given as arguments to an object reference.

Parameters:



     host
    
The host name of the target object.

     IR_host
    
The name of a host running an Interface Repository that stores the target object's IDL definition.

     serverName
    
The name of the target object's server.

     marker
    
The object's marker name.

     IR_server
    
The string "IR".

     interfaceMarker
    
The target object's interface.

Return Value:

Returns an (Orbix communications protocol format) object reference constructed from the parameters passed to the method.

Notes:

OrbixWeb specific.

See Also:



[Roadmap] [Utilities] [Compiling] [Configuration]
[Class Reference] [IR Reference] [Daemon Reference] [IDL Grammar] [System Exceptions]
[Index]