Esempio n. 1
0
# have received a copy of LGPLv2 along with this software; if not, see
# http://www.gnu.org/licenses/old-licenses/lgpl-2.0.txt.
#
# Jeff Ortel <*****@*****.**>
#

import sys
import os
import logging

from time import sleep
from getopt import getopt, GetoptError

from gofer.agent.logutil import LogHandler

LogHandler.install()

from gofer import NAME
from gofer.common import Thread, released
from gofer.config import get_bool
from gofer.agent.plugin import Plugin, PluginLoader
from gofer.agent.manager import Manager
from gofer.agent.lock import Lock, LockFailed
from gofer.agent.config import AgentConfig

log = logging.getLogger(__name__)


class ActionThread(Thread):
    """
    Run actions independently of main thread.
Esempio n. 2
0
File: main.py Progetto: jortel/gofer
# have received a copy of LGPLv2 along with this software; if not, see
# http://www.gnu.org/licenses/old-licenses/lgpl-2.0.txt.
#
# Jeff Ortel <*****@*****.**>
#

import sys
import os
import logging

from time import sleep
from getopt import getopt, GetoptError

from gofer.agent.logutil import LogHandler

LogHandler.install()

from gofer import NAME
from gofer.common import Thread, released
from gofer.config import get_bool
from gofer.agent.plugin import Plugin, PluginLoader
from gofer.agent.manager import Manager
from gofer.agent.lock import Lock, LockFailed
from gofer.agent.config import AgentConfig

log = logging.getLogger(__name__)


class ActionThread(Thread):
    """
    Run actions independently of main thread.
Esempio n. 3
0
 def tearDown(self):
     LogHandler.uninstall()
Esempio n. 4
0
 def setUp(self):
     LogHandler.install()
Esempio n. 5
0
 def tearDown(self):
     LogHandler.uninstall()
Esempio n. 6
0
 def setUp(self):
     LogHandler.install()