|
|
|
|||||
|
Local interface
I'm wondering if it makes sense to create a local interface. I plan to create session facades for a servant that controls a camera. I don't want the camera object to be visible across the network; access should only be via the facades. I know I could just use a C++ interface locally, but then I have to translate exceptions thrown by the C++ class into Ice exceptions, and also translate enums, and perhaps other data types. Maybe not a big deal, but I don't like having to do it.
My thought was that if I define an Ice local interface for the camera, implementations of it can have an interface that is compatible with the session facades, yet those objects will be invisible to other Ice entities. Is this a reasonable use of local interface? Thanks.
__________________
Mark E. Wilson Lead Programmer/Analyst Omega EP Project Laboratory for Laser Energetics (www.lle.rochester.edu) University of Rochester Rochester, NY 14623 |
|
|||||
|
Quote:
I understand that local interfaces can't be implemented as remote Ice servants. The idea is that a facade is an Ice servant that is visible over the network and controls access to the local Ice object using the same data types and exceptions as are exposed over the network in the servants. I don't want the local object visible on the network, but I want it to be compatible with the facade servants.
__________________
Mark E. Wilson Lead Programmer/Analyst Omega EP Project Laboratory for Laser Energetics (www.lle.rochester.edu) University of Rochester Rochester, NY 14623 |
|
||||||
|
Yes, you could use local interfaces for that. However, I'm not sure if this would be of any benefit to your application. You can use the Slice data types and exceptions that you define for your facade in your programming language objects, regardless of whether you use local interfaces. What value would local interfaces add?
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| local exception / C++ | daniell | Bug Reports | 7 | 11-08-2005 01:56 PM |
| Using Ice with non-local hosts | lahiatt | Help Center | 1 | 06-27-2005 02:50 PM |
| Security on local network | andre | Help Center | 0 | 11-23-2004 11:02 PM |
| Performance in local operations | wolfram | Comments | 4 | 08-26-2004 07:47 PM |
| Ice doesn't build correctly when OpenSSL is in /usr/local/ssl | dthomson | Bug Reports | 2 | 02-21-2003 08:39 AM |