initial checkin of component server
authorTony Mack <tmack@cs.princeton.edu>
Thu, 5 Nov 2009 01:43:04 +0000 (01:43 +0000)
committerTony Mack <tmack@cs.princeton.edu>
Thu, 5 Nov 2009 01:43:04 +0000 (01:43 +0000)
sfacomponent/server/__init__.py [new file with mode: 0644]
sfacomponent/server/component.py [new file with mode: 0644]

diff --git a/sfacomponent/server/__init__.py b/sfacomponent/server/__init__.py
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/sfacomponent/server/component.py b/sfacomponent/server/component.py
new file mode 100644 (file)
index 0000000..21ba944
--- /dev/null
@@ -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'