2 # Component is a GeniServer that implements the Component interface
13 from sfa.util.componentserver import ComponentServer
15 # GeniLight client support is optional
17 from egeni.geniLight_client import *
19 GeniClientLight = None
22 # Component is a GeniServer that serves component operations.
24 class Component(ComponentServer):
26 # Create a new registry object.
28 # @param ip the ip address to listen on
29 # @param port the port to listen on
30 # @param key_file private key filename of registry
31 # @param cert_file certificate filename containing public key (could be a GID file)
33 def __init__(self, ip, port, key_file, cert_file):
34 ComponentServer.__init__(self, ip, port, key_file, cert_file)
35 self.server.interface = 'component'