本文整理匯總了Python中Server.makeServer方法的典型用法代碼示例。如果您正苦於以下問題:Python Server.makeServer方法的具體用法?Python Server.makeServer怎麽用?Python Server.makeServer使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Server
的用法示例。
在下文中一共展示了Server.makeServer方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: print
# 需要導入模塊: import Server [as 別名]
# 或者: from Server import makeServer [as 別名]
if 'DiskParms' in tests and tests['DiskParms']:
print("Data Device Characteristics")
SimDisk.diskparms(myDDisk)
# fio to the raw data devices
SimDisk.tptest(myDDisk, tests, descr="Raw data device")
# instantiate and test the data file system
import SimFS
myData = SimFS.makefs(myDDisk, data)
data_desc = "%s (on %s)" % (myData.desc, myDDisk.desc)
SimFS.fstest(myData, tests, descr=data_desc)
# instantiate and test the data server
import Server
myServer = Server.makeServer(myData, server)
msg = "%dx%s, %dx%s, %dx%s, %dx%s" % (
myServer.num_cpus, myServer.cpu.desc,
myServer.num_disks, data_desc,
myServer.num_nics, myServer.nic.desc,
myServer.num_hbas, myServer.hba.desc)
Server.servertest(myServer, tests, descr=msg)
# instantiate a DLM
import Dlm
myDlm = Dlm.makeDLM(dlm)
# instantiate and test the gateway server
import Gateway
myGate = Gateway.makeGateway(myServer, myDlm, gateway)
msg = "%dx%s, front=%dx%s, back=%dx%s" % (