perfsonar-dev - Re: [pS-dev] Interface changes - deadline
Subject: perfsonar development work
List archive
- From: Maciej Glowiak <>
- To: Perfsonar Development List <>
- Cc: "Jeff W. Boote" <>, Eric Boyd <>, Szymon Trocha <>, Joe Metzger <>, Leobino Sampaio <>
- Subject: Re: [pS-dev] Interface changes - deadline
- Date: Mon, 14 May 2007 13:19:38 +0200
- Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAQMAAABtzGvEAAAABlBMVEUAAAD///+l2Z/dAAAA CXBIWXMAAEU1AABFNQF8gVf5AAAAB3RJTUUH1QYQDjo6uEWvwgAAAM5JREFUGNNN0LFqAkEUheGj KRZsfATrvENgYyH4APabxwgWGUUQC99BsNDCInUq7VImbbDZ0kayxBXMuN7jvTuKVh//mZlmQKZ1 EhQ8GAVgZECspEBdWQHRjR70KlgFKkoUaCw3ijSYQ4n5HfBK4a4jDcdDQPol/80Sr9BxZOOL4Fmr Jq8VBx7eopaSPvWGOm67fqol3j1q0XNs7Nk2cs6MU6gPNzf+ZGKQX4Ek8H6rAnFZnXB2vJxJcv8g C2P+WzL4tD+Txc4KydrIkh+eAdo01QbjQ84vAAAAAElFTkSuQmCC
- Organization: Poznan Supercomputing and Networking Center
Maciej Glowiak wrote:
Jeff W. Boote wrote:
Maciej Glowiak wrote:
But that's the minor problem. The major one is that in our classes PerfSONARException is not handled!
See two main interfaces:
a) MessageHandler
public Message execute(Message reqMessage)
throws SystemException,ResourceException,
DataFormatException,RequestException;
b) ServiceEngine
public Message takeAction(String actionType, Message request)
throws SystemException, ResourceException,
DataFormatException, RequestException;
Both do not support PerfSONARException, so if I get PerfSONARException inside my XmlLSServiceEngine I need to catch it and convert to for instance SystemException. That doesn't make sense :(
Ok, Now I understand the issue. It was not clear for me before. Thank you for explaining it.
I agree that it makes sense to changes these methods to throw the PerfSONARException exception (and leave the sub-classes out of it).
I also would not be against deprecating the sub-classes to encourage developers to stop using them. (I agree that sub-classes with no additional functionality don't make sense.) I would not be in favor of just removing them without a transition period.
The only reason I can see to perhaps keep them, is if we plan on adding functionality to any of them. For example, it is possible the AuthenticationException could be extended to access some of the Auth headers - and specific functionality could be added there to decode the auth headers and report a more specific error message. (User-id - any other fields from the cert...)
But, it probably makes sense to not use these sub-classes unless/until they have been extended.
Neither am I, but it'll need cooperation from other developers. I can change interfaces and their implementations of SVN, but developers should be aware of potential problems (shouldn't be any in fact) and check their services. Until now I haven't get any response from developers' side (except Roman), so...
I would suggest announcing a time in the future that you intend to make the change unless there are dissenting opinions raised. (I recommend at least a week to give people enough time to respond. With time-zone issues and travel schedules less time than that can be a problem.)
As long as you make the change such that it does not 'break' code (by deprecating instead of removing for example), I think this is totally reasonable.
jeff
Hi Jeff,
Deprecating those classes is great idea, I don't know why I haven't thought about it before :)
Surely I don't want to 'break' the code, so I will mark all those classes as "deprecated" and then just change interfaces and their implementations. Then we may consider removing some Exceptions after some time.
I think the deadline for comments, suggestions etc. could be 6th of May. After this date I'll make changes.
Best regards
Maciej
Hi All,
As agreed on the mailing list and Salvador meeting I will be proceeding changes in interfaces (as described above) today (and next days). I'll try not to break the code by marking old exceptions as "deprecated", but you should be aware that the functionality of some of your services should be upgraded.
Best regards
Maciej
--
--------------------------------------------------------------------
| Maciej Glowiak Network Research and Development ||
|
Poznan Supercomputing and Networking Center ||
| (+48 61) 858 2024 -- skype_id: maciej_psnc GG: 4526858 ||
====================================================================
- Re: [pS-dev] Interface changes - deadline, Maciej Glowiak, 05/14/2007
- Re: [pS-dev] Interface changes - done, Maciej Glowiak, 05/15/2007
- Re: [pS-dev] Interface changes - done, Szymon Trocha, 05/15/2007
- Re: [pS-dev] Interface changes - done, Michael Bischoff, 05/17/2007
- Re: [pS-dev] Interface changes - done, Roman Lapacz, 05/18/2007
- Re: [pS-dev] Interface changes - done, Uros Juvan, 05/18/2007
- Re: [pS-dev] Interface changes - done, Michael Bischoff, 05/18/2007
- Re: [pS-dev] Interface changes - done, Uros Juvan, 05/18/2007
- Re: [pS-dev] Interface changes - done, Roman Lapacz, 05/18/2007
- Re: [pS-dev] Interface changes - done, Michael Bischoff, 05/17/2007
- Re: [pS-dev] Interface changes - done, Szymon Trocha, 05/15/2007
- Re: [pS-dev] Interface changes - done, Maciej Glowiak, 05/15/2007
Archive powered by MHonArc 2.6.16.