import logging


class TaskAction(object):
    """The abstract father of all actions"""

    def __init__(self, config, server, resturl):
        self.logger = logging.getLogger(type(self).__name__)
        self.config = config
        self.jobtypeMapper = { "Analysis" : "Processing",
                               "PrivateMC" : "Production",
                               "Generic" : "Generic",}
        self.server = server
        self.resturl = resturl

    def execute(self):
        raise NotImplementedError
