Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 01-10-2007
mwilson mwilson is offline
Registered User
 
Name: Mark Wilson
Organization: University of Rochester
Project: Omega EP laser
 
Join Date: Jul 2005
Location: Rochester, NY
Posts: 74
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
Reply With Quote
  #2 (permalink)  
Old 01-10-2007
marc's Avatar
marc marc is offline
ZeroC Staff
 
Name: Marc Laukien
Organization: ZeroC, Inc.
Project: The Internet Communications Engine
 
Join Date: Feb 2003
Location: Florida
Posts: 1,781
I don't really understand what you mean with session facades. In any case, Slice local interfaces simply define a base class or interface that you must then implement locally. There is nothing else to it. In particular, Slice local interfaces can not be used to implement servants, and therefore they can also not be used to implement Ice objects. They are simply an aid to construct local programming language objects using the standard Slice language mapping rules.
Reply With Quote
  #3 (permalink)  
Old 01-10-2007
mwilson mwilson is offline
Registered User
 
Name: Mark Wilson
Organization: University of Rochester
Project: Omega EP laser
 
Join Date: Jul 2005
Location: Rochester, NY
Posts: 74
Quote:
Originally Posted by marc View Post
I don't really understand what you mean with session facades. In any case, Slice local interfaces simply define a base class or interface that you must then implement locally. There is nothing else to it. In particular, Slice local interfaces can not be used to implement servants, and therefore they can also not be used to implement Ice objects. They are simply an aid to construct local programming language objects using the standard Slice language mapping rules.
Sorry, this is in relation to: Servant Locator implementation

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
Reply With Quote
  #4 (permalink)  
Old 01-10-2007
marc's Avatar
marc marc is offline
ZeroC Staff
 
Name: Marc Laukien
Organization: ZeroC, Inc.
Project: The Internet Communications Engine
 
Join Date: Feb 2003
Location: Florida
Posts: 1,781
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?
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT -4. The time now is 12:46 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.