[omniORB] parsing stringified IOR
Rob Cecil
rceci@master.adams.com
Fri, 19 Nov 1999 11:55:50 -0500
--------------EC53EB3C76C5C10FE86EDA02
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
I think I disagree. From a diagnostic standpoint, such as in a log that a server might
generate, I as a sysadmin , or user, would find it useful to know when/how/why a server
died/restarted/migration.
That is my need. I do not want to parse the IOR as part of the normal interface at all.
Simply a diagnostic routine.
Rob
Stephen Crawley wrote:
> Robert Merkel writes:
> > Rob Cecil writes:
> > > Is there a function somewhere that will let me programmatically do
> > > what catior does? I'd
> > > like to be able to determine the IP or hostname from a stringified
> > > IOR. I have been
> > > looking at ior.cc but nothing seems obvious to me. Is there a utility api?
> > >
> >
> > Are you sure that you should be doing this? As I understand it, the
> > point of object references is that they are opaque, and that the
> > only people who should be worrying about the contents of an object
> > reference are ORB implementors.
>
> You are right to point out that Rob probably doesn't want to do that.
>
> Strictly speaking the location information (hostname /IP address and port no)
> in an IOR are not opaque. [The object key is what you were probably thinking
> of ... ]. However the location information does not necessarily tell you were
> the object resides. It could also be the location of an object locator. If it
> is, the CORBA ORB APIs don't provide any way for a client know this, or to get
> hold of the true object location.
>
> Thus, in general, a CORBA client program cannot reliably deduce anything useful
> about an object's location from its IOR. This is not a design flaw. Location
> transparency is a basic goal for CORBA.
>
> -- Steve
--
| Rob Cecil | Senior Development Engineer |
| rceci@adams.com | Product Development |
| (734) 913-9351 | Mechanical Dynamics, Inc. (www.adams.com) |
--------------------------------------------------------------------
Modern Quantum Physics has found that the universe is composed of
25% protons, 15% electrons, 15% neutrons, and 45% morons.
--------------EC53EB3C76C5C10FE86EDA02
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
I think I disagree. From a diagnostic standpoint, such as in
a log that a server might generate, I as a sysadmin , or user, would
find it useful to know when/how/why a server died/restarted/migration.
<p>That is my need. I do not want to parse the IOR as part of
the normal interface at all. Simply a diagnostic routine.
<p>Rob
<p>Stephen Crawley wrote:
<blockquote TYPE=CITE>Robert Merkel writes:
<br>> Rob Cecil writes:
<br>> > Is there a function somewhere that will let me programmatically
do
<br>> > what catior does? I'd
<br>> > like to be able to determine the IP or hostname from a stringified
<br>> > IOR. I have been
<br>> > looking at ior.cc but nothing seems obvious to me.
Is there a utility api?
<br>> >
<br>>
<br>> Are you sure that you should be doing this? As I understand
it, the
<br>> point of object references is that they are opaque, and that the
<br>> only people who should be worrying about the contents of an object
<br>> reference are ORB implementors.
<p>You are right to point out that Rob probably doesn't want to do that.
<p>Strictly speaking the location information (hostname /IP address and
port no)
<br>in an IOR are not opaque. [The object key is what you were probably
thinking
<br>of ... ]. However the location information does not necessarily
tell you were
<br>the object resides. It could also be the location of an object
locator. If it
<br>is, the CORBA ORB APIs don't provide any way for a client know this,
or to get
<br>hold of the true object location.
<p>Thus, in general, a CORBA client program cannot reliably deduce anything
useful
<br>about an object's location from its IOR. This is not a design
flaw. Location
<br>transparency is a basic goal for CORBA.
<p>-- Steve</blockquote>
<pre>--
| Rob Cecil | Senior Development Engineer |
| rceci@adams.com | Product Development |
| (734) 913-9351 | Mechanical Dynamics, Inc. (www.adams.com) |
--------------------------------------------------------------------
Modern Quantum Physics has found that the universe is composed of
25% protons, 15% electrons, 15% neutrons, and 45% morons.</pre>
</html>
--------------EC53EB3C76C5C10FE86EDA02--