linspector-old/linspector/tasks/task.py

35 lines
1 KiB
Python
Raw Normal View History

2013-06-18 02:58:40 +02:00
"""
2013-06-19 03:26:25 +02:00
The task class.
2013-10-08 00:08:47 +02:00
Copyright (c) 2011-2013 "Johannes Findeisen and Rafael Timmerberg"
This file is part of Linspector (http://linspector.org).
Linspector is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
2013-06-18 02:58:40 +02:00
"""
from logging import getLogger
logger = getLogger(__name__)
2013-06-18 01:50:01 +02:00
class Task:
def set_task_type(self, taskType):
2013-07-02 00:19:20 +02:00
self._taskType = taskType
2013-06-18 01:50:01 +02:00
def get_task_type(self):
return self._taskType
2013-07-02 00:19:20 +02:00
def execute(self, msg):
2013-07-02 00:19:20 +02:00
pass