Package sysmon :: Module null
[hide private]
[frames] | no frames]

Source Code for Module sysmon.null

 1  ######################################################################### 
 2  # YASMon - Yet Another System Monitor                                   # 
 3  # Copyright (C) 2010  Scott Lawrence                                    # 
 4  #                                                                       # 
 5  # This program is free software: you can redistribute it and/or modify  # 
 6  # it under the terms of the GNU General Public License as published by  # 
 7  # the Free Software Foundation, either version 3 of the License, or     # 
 8  # (at your option) any later version.                                   # 
 9  #                                                                       # 
10  # This program is distributed in the hope that it will be useful,       # 
11  # but WITHOUT ANY WARRANTY; without even the implied warranty of        # 
12  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         # 
13  # GNU General Public License for more details.                          # 
14  #                                                                       # 
15  # You should have received a copy of the GNU General Public License     # 
16  # along with this program.  If not, see <http://www.gnu.org/licenses/>. # 
17  ######################################################################### 
18   
19  """Provides an interface to the null machine. 
20   
21  """ 
22   
23  from system import *; 
24   
25 -def get_null():
26 """Returns an object representing the null system. 27 """ 28 system=NullSystem()
29
30 -class NullUptime(System):
31 """Represents the uptime on a null system. 32 """
33 - def __init__(self):
34 System.__init__(self)
35
36 -class NullSystem(System):
37 """Represents a null system. 38 39 """
40 - def __init__(self):
41 System.__init__(self)
42 43
44 -class NullProcessor(Processor):
45 """Represents a null processor 46 """ 47 pass
48 49
50 -class NullMemory(Memory):
51 """Represents a null memory (RAM) bank 52 """ 53 pass
54 55
56 -class NullFilesystem(Filesystem):
57 """Represents a null filesystem 58 """ 59 pass
60 61
62 -class NullDrive(Drive):
63 """Represents a null drive 64 """ 65 pass
66 67
68 -class NullProcessList(ProcessList):
69 """Represents a null list of processes 70 """ 71 pass
72 73
74 -class NullProcess(Process):
75 """Represents a single null process 76 """ 77 pass
78