Table of contents Index
class AbstractService - Encapsulates an abstract service.
Declared in module Service
Synopsis
class AbstractService:
def Service.AbstractService.__init__(self, name) # Initializes an AbstractService instance or a derivative.
def Service.AbstractService.__str__(self)
def Service.AbstractService.startInstance(self, session) # Function to start an instance of this service.
Description
A service is something Zorp provides to its environment.
Attributes:
-
name
- The name of the service
-
instance_id
- the session serviced by the service
Service.AbstractService.__init__(self, name)
Initializes an AbstractService instance or a derivative.
- self
- this instance
- name
- The name of the service
Sets attributes based on arguments.
Service.AbstractService.__str__(self)
None
Service.AbstractService.startInstance(self, session)
Function to start an instance of this service.
- self
- this instance
- session
- start service within this session
Abstract method to be implemented in derived classes.
Should start an instance of the given service.
Copyright © 2000 BalaBit IT Ltd.
Written by: Balázs Scheidler