The freezer.scheduler.daemon Module

Copyright 2015 Hewlett-Packard

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

class freezer.scheduler.daemon.Daemon(daemonizable=None, pid_fname=None)[source]

Bases: object

A class to manage all the daemon-related stuff

exit_flag = False
static handle_program_exit(signum, frame)[source]
static handle_reload(signum, frame)[source]
instance = None
pid
pid_fname
reload()[source]
signal_map
start(dump_stack_trace=False)[source]
status()[source]
stop()[source]
class freezer.scheduler.daemon.NoDaemon(daemonizable)[source]

Bases: object

A class which shares the same interface as the Daemon class, but is used to execute the scheduler as a foreground process

exit_flag = False
static handle_program_exit(signum, frame)[source]
static handle_reload(signum, frame)[source]
instance = None
signal_map
start(dump_stack_trace=False)[source]
status()[source]
stop()[source]
freezer.scheduler.daemon.get_filenos(logger)[source]

Get a list of file no from logger