Home » Modeling » EMF » [CDO] Querying CDOServer for repositories and resources
|
Re: [CDO] Querying CDOServer for repositories and resources [message #422246 is a reply to message #422244] |
Wed, 27 August 2008 09:06 |
|
Hi Vik,
Unfortunately no, there's no CDO'ish way to communicate with a
repository server *before* a CDOSession has been opened to a particular
repository. Querying the resources within a repository could be achieved
by using a CDOSession, if this Bugzilla was implemented:
208689: Add resource queries
https://bugs.eclipse.org/bugs/show_bug.cgi?id=208689
It would also be possible to provide a separate application protocol to
query the repositories in a server (without going through a CDOSession).
I don't think that it's possible to query the resources within a
repository this way. The reason is that CDOResources are also CDOObjects
and thus can change over time. To query them a lot of infrastructure and
additional information is needed.
Cheers
/Eike
Víctor Roldán Betancort schrieb:
> Hi Eike, Simon, and others,
>
> just a quick question. Is it possible to get to know
> (*programmatically*) the name (or UUID) of all the repositories in a
> CDOServer, and also all the available resources (preferably, by
> getting its path) in a repository?
>
> Thanks in advance :)
>
> Víctor.
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
|
Re: [CDO] Querying CDOServer for repositories and resources [message #422247 is a reply to message #422246] |
Wed, 27 August 2008 09:25 |
Victor Roldan Betancort Messages: 524 Registered: July 2009 |
Senior Member |
|
|
Hi Eike,
first of all, thanks for your help! Always appreciated.
I suspected it would be necessary to develop some kind of communication
protocol with CDOServer, since session are linked with a repository, so
wouldn't make sense to ask it about repositories. Maybe is not even
worth to raise a bug to create a protocol just to query for available
repositories. To make it more interesting (and worth effort), I imagine
some kind of "control" protocol. This would allow us to do (apart from
repository querying) things like server health data (errors, current
load...), statistics (number of users connected, current bandwidth...)
and for performance testing, among other possible imaginable ideas. What
do you think?
Regarding #208689, is the method supposed to receive the path of a
resource and then return "true" or "false"? What I was looking for was
something like "public List<CDOResource> getAllResources()" or "public
List<String> getAllResources()", I which case I wouldn't mind to take
care of that bug :)
Regards.
Eike Stepper escribió:
> Hi Vik,
>
> Unfortunately no, there's no CDO'ish way to communicate with a
> repository server *before* a CDOSession has been opened to a particular
> repository. Querying the resources within a repository could be achieved
> by using a CDOSession, if this Bugzilla was implemented:
>
> 208689: Add resource queries
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=208689
>
> It would also be possible to provide a separate application protocol to
> query the repositories in a server (without going through a CDOSession).
> I don't think that it's possible to query the resources within a
> repository this way. The reason is that CDOResources are also CDOObjects
> and thus can change over time. To query them a lot of infrastructure and
> additional information is needed.
>
> Cheers
> /Eike
>
>
>
> Víctor Roldán Betancort schrieb:
>> Hi Eike, Simon, and others,
>>
>> just a quick question. Is it possible to get to know
>> (*programmatically*) the name (or UUID) of all the repositories in a
>> CDOServer, and also all the available resources (preferably, by
>> getting its path) in a repository?
>>
>> Thanks in advance :)
>>
>> Víctor.
|
|
|
Re: [CDO] Querying CDOServer for repositories and resources [message #422250 is a reply to message #422247] |
Wed, 27 August 2008 10:43 |
|
Víctor Roldán Betancort schrieb:
> Hi Eike,
>
> first of all, thanks for your help! Always appreciated.
You're always welcome ;-)
>
> I suspected it would be necessary to develop some kind of
> communication protocol with CDOServer, since session are linked with a
> repository, so wouldn't make sense to ask it about repositories. Maybe
> is not even worth to raise a bug to create a protocol just to query
> for available repositories. To make it more interesting (and worth
> effort), I imagine some kind of "control" protocol. This would allow
> us to do (apart from repository querying) things like server health
> data (errors, current load...), statistics (number of users connected,
> current bandwidth...) and for performance testing, among other
> possible imaginable ideas. What do you think?
While your additional ideas make sense on their own I'm currently not
sure which of them should be coupled to a CDO control protocol and which
would make more sense in a broader Net4j context. We should discuss that
in a new Bugzilla.
>
> Regarding #208689, is the method supposed to receive the path of a
> resource and then return "true" or "false"?
No, that was:
217236: Provide a way to query if a specific resource (path) exists
https://bugs.eclipse.org/bugs/show_bug.cgi?id=217236
> What I was looking for was something like "public List<CDOResource>
> getAllResources()" or "public List<String> getAllResources()", I which
> case I wouldn't mind to take care of that bug :)
IIRC. this is exactly the intention of #208689. I'd be glad if you start
gathering a picture ;-) Next week I'll have time to start discussions.
Cheers
/Eike
>
> Regards.
>
>
> Eike Stepper escribió:
>> Hi Vik,
>>
>> Unfortunately no, there's no CDO'ish way to communicate with a
>> repository server *before* a CDOSession has been opened to a
>> particular repository. Querying the resources within a repository
>> could be achieved by using a CDOSession, if this Bugzilla was
>> implemented:
>>
>> 208689: Add resource queries
>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=208689
>>
>> It would also be possible to provide a separate application protocol
>> to query the repositories in a server (without going through a
>> CDOSession). I don't think that it's possible to query the resources
>> within a repository this way. The reason is that CDOResources are
>> also CDOObjects and thus can change over time. To query them a lot of
>> infrastructure and additional information is needed.
>>
>> Cheers
>> /Eike
>>
>>
>>
>> Víctor Roldán Betancort schrieb:
>>> Hi Eike, Simon, and others,
>>>
>>> just a quick question. Is it possible to get to know
>>> (*programmatically*) the name (or UUID) of all the repositories in a
>>> CDOServer, and also all the available resources (preferably, by
>>> getting its path) in a repository?
>>>
>>> Thanks in advance :)
>>>
>>> Víctor.
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
|
Goto Forum:
Current Time: Wed Apr 24 16:17:59 GMT 2024
Powered by FUDForum. Page generated in 0.03463 seconds
|