-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodule.py
64 lines (52 loc) · 1.63 KB
/
module.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/usr/bin/python
import logTime
rootPath = '/home/edrop/edrop-trunk-singleton/'
modules = []
moduleDict = {}
moduleRelation = [
['mas', 'metaserver']
]
def findRelationModules(name):
ret = []
for names in moduleRelation:
if names.count(name) != 0:
for name in names:
print name
ret.append(moduleDict[name])
return ret
class module(object):
def __init__(self):
super(module, self).__init__()
self.name = ''
self.path = ''
self.fileMatch = ''
self.taskStart = ''
self.taskEnd = ''
self.errorEnd = 'Send Error Response'
self.logTime = logTime.logTime1
class test(module):
def __init__(self):
super(test, self).__init__()
self.name = 'test'
self.taskStart = 'MetaServerDispatcher( 72)'
self.fileMatch = 'metaserver-edrop*.log*'
self.path = 'E:/test'
class metaserver(module):
def __init__(self):
super(metaserver, self).__init__()
self.name = 'metaserver'
self.taskStart = 'MetaServerDispatcher( 72)'
self.taskEnd = 'task.Task(202)'
self.errorEnd = 'Send Error Response'
self.fileMatch = 'metaserver-edrop*.log*'
self.path = rootPath + 'happ/metaserver/logs'
self.logTime = logTime.logTime2
class mas(module):
def __init__(self):
super(mas, self).__init__()
self.name = 'mas'
self.taskStart = 'ExecuteThread( 53)'
self.taskEnd = 'Task(142)'
self.errorEnd='Send error response'
self.fileMatch = 'mas-edrop*.log*'
self.path = rootPath + 'happ/mas/logs'