2 # Component is a SfaServer that implements the Component interface
9 from sfa.server.sfaserver import SfaServer
11 # GeniLight client support is optional
13 from egeni.geniLight_client import *
15 GeniClientLight = None
18 # Component is a SfaServer that serves component operations.
20 # set SFA_GENERIC_FLAVOUR=plcm to get a PlcComponentApi instance in the request handler
21 class Component(SfaServer):
23 # Create a new registry object.
25 # @param ip the ip address to listen on
26 # @param port the port to listen on
27 # @param key_file private key filename of registry
28 # @param cert_file certificate filename containing public key (could be a GID file)
30 def __init__(self, ip, port, key_file, cert_file):
31 SfaServer.__init__(self, ip, port, key_file, cert_file)
32 self.server.interface = 'component'