From: Tony Mack Date: Thu, 5 Nov 2009 01:43:04 +0000 (+0000) Subject: initial checkin of component server X-Git-Tag: sfa-0.9-6~57 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=c6bdb13934a317f893b929cbf8c7890bf799f5a3;p=sfa.git initial checkin of component server --- diff --git a/sfacomponent/server/__init__.py b/sfacomponent/server/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/sfacomponent/server/component.py b/sfacomponent/server/component.py new file mode 100644 index 00000000..21ba944a --- /dev/null +++ b/sfacomponent/server/component.py @@ -0,0 +1,35 @@ +# +# Component is a GeniServer that implements the Component interface +# +### $Id: +### $URL: +# + +import tempfile +import os +import time +import sys + +from sfa.util.geniserver import GeniServer + +# GeniLight client support is optional +try: + from egeni.geniLight_client import * +except ImportError: + GeniClientLight = None + +## +# Component is a GeniServer that serves component operations. + +class Registry(GeniServer): + ## + # Create a new registry object. + # + # @param ip the ip address to listen on + # @param port the port to listen on + # @param key_file private key filename of registry + # @param cert_file certificate filename containing public key (could be a GID file) + + def __init__(self, ip, port, key_file, cert_file): + GeniServer.__init__(self, ip, port, key_file, cert_file) + self.server.interface = 'component'