MCPcopy Create free account
hub / github.com/apache/cloudstack / getSysConfigFactory

Method getSysConfigFactory

python/lib/cloudutils/syscfg.py:21–31  ·  view source on GitHub ↗
(glbEnv)

Source from the content-addressed store, hash-verified

19class sysConfigFactory:
20 @staticmethod
21 def getSysConfigFactory(glbEnv):
22 if glbEnv.mode == "Agent":
23 return sysConfigAgentFactory.getAgent(glbEnv)
24 elif glbEnv.mode == "Server":
25 return sysConfigServerFactory.getServer(glbEnv)
26 elif glbEnv.mode == "HttpsServer":
27 return sysConfigServerFactory.getServer(glbEnv)
28 elif glbEnv.mode == "Db":
29 return sysConfigDbFactory.getDb(glbEnv)
30 else:
31 raise CloudInternalException("Need to specify which mode are u running: Agent/Server/Db")
32
33class sysConfigAgentFactory:
34 @staticmethod

Callers

nothing calls this directly

Calls 4

getAgentMethod · 0.80
getDbMethod · 0.80
getServerMethod · 0.45

Tested by

no test coverage detected