X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fserver%2Fcomponent.py;h=df91917b6e75790fa64cf2836c81282feb88ddeb;hb=65866811e8df57c89f3487db047b5653f306a3c8;hp=e811a2d4a216c0eae196445f6a1686d139da31be;hpb=86aab78b5301548d457bae4ad5fa0c252ea75fb0;p=sfa.git diff --git a/sfa/server/component.py b/sfa/server/component.py index e811a2d4..df91917b 100644 --- a/sfa/server/component.py +++ b/sfa/server/component.py @@ -1,27 +1,24 @@ # -# Component is a GeniServer that implements the Component interface +# Component is a SfaServer that implements the Component interface # -### $Id: -### $URL: -# - import tempfile import os import time import sys -from sfa.util.componentserver import ComponentServer - +from sfa.server.sfaserver import SfaServer + # GeniLight client support is optional try: from egeni.geniLight_client import * except ImportError: - GeniClientLight = None + GeniClientLight = None ## -# Component is a GeniServer that serves component operations. +# Component is a SfaServer that serves component operations. + -class Component(GeniServer): +class Component(SfaServer): ## # Create a new registry object. # @@ -31,5 +28,5 @@ class Component(GeniServer): # @param cert_file certificate filename containing public key (could be a GID file) def __init__(self, ip, port, key_file, cert_file): - ComponentServer.__init__(self, ip, port, key_file, cert_file) - self.server.interface = 'component' + SfaServer.__init__(self, ip, port, key_file, + cert_file, interface='component')