HCE Project Python language Distributed Tasks Manager Application, Distributed Crawler Application and client API bindings.  2.0.0-chaika
Hierarchical Cluster Engine Python language binding
app.Utils.PathMaker Class Reference
Inheritance diagram for app.Utils.PathMaker:
Collaboration diagram for app.Utils.PathMaker:

Public Member Functions

def __init__ (self, string, subdirLen=SUBDIR_LEVEL1_LEN)
 
def getDir (self)
 

Public Attributes

 string
 
 subdirLen
 

Static Public Attributes

int SUBDIR_LEVEL1_LEN = 2
 
string SUBDIR_CHAR = "/"
 

Detailed Description

Definition at line 152 of file Utils.py.

Constructor & Destructor Documentation

◆ __init__()

def app.Utils.PathMaker.__init__ (   self,
  string,
  subdirLen = SUBDIR_LEVEL1_LEN 
)

Definition at line 157 of file Utils.py.

157  def __init__(self, string, subdirLen=SUBDIR_LEVEL1_LEN):
158  super(PathMaker, self).__init__()
159 
160  self.string = string
161  self.subdirLen = subdirLen
162 
163  if "CONTENT_STORE_PATH" in os.environ and os.environ["CONTENT_STORE_PATH"] != "":
164  logger.debug("os.environ[CONTENT_STORE_PATH]: set to %s", os.environ["CONTENT_STORE_PATH"])
165  self.string += "/"
166  self.string += os.environ["CONTENT_STORE_PATH"]
167  else:
168  logger.debug("os.environ[CONTENT_STORE_PATH]: not set.")
169 
def __init__(self)
constructor
Definition: UIDGenerator.py:19

Member Function Documentation

◆ getDir()

def app.Utils.PathMaker.getDir (   self)

Definition at line 170 of file Utils.py.

170  def getDir(self):
171  if len(self.string) > self.subdirLen:
172  return self.string[:self.subdirLen] + self.SUBDIR_CHAR + self.string[self.subdirLen:]
173  else:
174  return self.string
175 
176 
177 # #The ConfigParamsList class
178 #
179 # This class purpose to use as object few options read from config
180 # @param initial_data - input dictionaries
181 # @param kwargs - keyword arguments
182 #
Here is the caller graph for this function:

Member Data Documentation

◆ string

app.Utils.PathMaker.string

Definition at line 160 of file Utils.py.

◆ SUBDIR_CHAR

string app.Utils.PathMaker.SUBDIR_CHAR = "/"
static

Definition at line 155 of file Utils.py.

◆ SUBDIR_LEVEL1_LEN

int app.Utils.PathMaker.SUBDIR_LEVEL1_LEN = 2
static

Definition at line 154 of file Utils.py.

◆ subdirLen

app.Utils.PathMaker.subdirLen

Definition at line 161 of file Utils.py.


The documentation for this class was generated from the following file: