Public Member Functions | |
def | get_property |
def | includes_subdir |
def | exclude_directories |
def | exclude_from_conf |
def | __init__ |
def | parse_line |
def | is_sleeping |
def | unique_directories |
def | load |
def | args |
def | __str__ |
Data Fields | |
configurations | |
sleeping | |
conf |
Utility class to load configurations from properties files
Definition at line 56 of file fuse_kafka.py.
def fuse_kafka.Configuration.args | ( | self | ) |
Returns the fuse_kafka binary arguments based on the parsed configuration
Definition at line 161 of file fuse_kafka.py.
def fuse_kafka.Configuration.exclude_directories | ( | self, | |
paths, | |||
prefixes | |||
) |
Exclude directories from a list of directories based on prefixes paths - list of paths from which to exclude prefixs prefixes - list of prefixes to exclude Returns the path list with excluded directories
Definition at line 88 of file fuse_kafka.py.
def fuse_kafka.Configuration.get_property | ( | self, | |
path, | |||
name | |||
) |
Get a property from a well defined property file. path - configuration file path name - property name Returns the first property value found in the given path with the given name, None if it was not found
Definition at line 58 of file fuse_kafka.py.
def fuse_kafka.Configuration.includes_subdir | ( | self, | |
dirs, | |||
subdir | |||
) |
Checks if a subdirectory is included in a list of prefix. dirs - list of prefixes subdir - path to check for prefix Returns True if dirs contains a prefix of subdir, False otherwise.
Definition at line 75 of file fuse_kafka.py.
def fuse_kafka.Configuration.is_sleeping | ( | self, | |
var_run_path = "/var/run" |
|||
) |
Returns True if fuse_kafka is in sleep mode
Definition at line 132 of file fuse_kafka.py.
def fuse_kafka.Configuration.load | ( | self, | |
var_run_path = "/var/run" |
|||
) |
Loads configuration from configurations files
Definition at line 146 of file fuse_kafka.py.
def fuse_kafka.Configuration.parse_line | ( | self, | |
line, | |||
conf | |||
) |
Parse a configuration line line - the line to parse conf - a dictionary which will be updated based on the parsing Returns the configuration updated configuration based on the line
Definition at line 106 of file fuse_kafka.py.
def fuse_kafka.Configuration.unique_directories | ( | self, | |
conf_directories | |||
) |
return a list with duplicates removed (in absolute path) from conf_directories
Definition at line 135 of file fuse_kafka.py.