2004-05-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
[mono.git] / mcs / class / System / System.Diagnostics / PerformanceCounterCategory.cs
1 //
2 // System.Diagnostics.PerformanceCounterCategory.cs
3 //
4 // Authors:
5 //   Jonathan Pryor (jonpryor@vt.edu)
6 //
7 // (C) 2002
8 //
9
10 using System;
11 using System.Diagnostics;
12
13 namespace System.Diagnostics 
14 {
15
16         public sealed class PerformanceCounterCategory 
17         {
18                 private string categoryName;
19                 private string machineName;
20
21                 public PerformanceCounterCategory ()
22                         : this ("", ".")
23                 {
24                 }
25
26                 // may throw ArgumentException (""), ArgumentNullException
27                 public PerformanceCounterCategory (string categoryName)
28                         : this (categoryName, ".")
29                 {
30                 }
31
32                 // may throw ArgumentException (""), ArgumentNullException
33                 [MonoTODO]
34                 public PerformanceCounterCategory (string categoryName,
35                         string machineName)
36                 {
37                         // TODO checks and whatever else is needed
38                         this.categoryName = categoryName;
39                         this.machineName = machineName;
40                         throw new NotImplementedException ();
41                 }
42
43                 // may throw InvalidOperationException, Win32Exception
44                 [MonoTODO]
45                 public string CategoryHelp {
46                         get {throw new NotImplementedException ();}
47                 }
48
49                 // may throw ArgumentException (""), ArgumentNullException
50                 [MonoTODO]
51                 public string CategoryName {
52                         get {return categoryName;}
53                         set {
54                                 // TODO needs validity checks
55                                 categoryName = value;
56                         }
57                 }
58
59                 // may throw ArgumentException
60                 [MonoTODO]
61                 public string MachineName {
62                         get {return machineName;}
63                         set {
64                                 // TODO needs validity checks
65                                 machineName = value;
66                         }
67                 }
68
69                 // may throw ArgumentNullException, InvalidOperationException
70                 // (categoryName isn't set), Win32Exception
71                 [MonoTODO]
72                 public bool CounterExists (string counterName)
73                 {
74                         throw new NotImplementedException ();
75                 }
76
77                 // may throw ArgumentNullException, InvalidOperationException
78                 // (categoryName is ""), Win32Exception
79                 [MonoTODO]
80                 public static bool CounterExists (string counterName, 
81                         string categoryName)
82                 {
83                         throw new NotImplementedException ();
84                 }
85
86                 // may throw ArgumentNullException, InvalidOperationException
87                 // (categoryName is "", machine name is bad), Win32Exception
88                 [MonoTODO]
89                 public static bool CounterExists (string counterName, 
90                         string categoryName,
91                         string machineName)
92                 {
93                         throw new NotImplementedException ();
94                 }
95
96                 [MonoTODO]
97                 public static PerformanceCounterCategory Create (
98                         string categoryName,
99                         string categoryHelp,
100                         CounterCreationDataCollection counterData)
101                 {
102                         throw new NotImplementedException ();
103                 }
104
105                 [MonoTODO]
106                 public static PerformanceCounterCategory Create (
107                         string categoryName,
108                         string categoryHelp,
109                         string counterName,
110                         string counterHelp)
111                 {
112                         throw new NotImplementedException ();
113                 }
114
115                 [MonoTODO]
116                 public static void Delete (string categoryName)
117                 {
118                         throw new NotImplementedException ();
119                 }
120
121                 [MonoTODO]
122                 public static bool Exists (string categoryName)
123                 {
124                         throw new NotImplementedException ();
125                 }
126
127                 [MonoTODO]
128                 public static bool Exists (string categoryName, 
129                         string machineName)
130                 {
131                         throw new NotImplementedException ();
132                 }
133
134                 [MonoTODO]
135                 public static PerformanceCounterCategory[] GetCategories ()
136                 {
137                         throw new NotImplementedException ();
138                 }
139
140                 [MonoTODO]
141                 public static PerformanceCounterCategory[] GetCategories (
142                         string machineName)
143                 {
144                         throw new NotImplementedException ();
145                 }
146
147                 [MonoTODO]
148                 public PerformanceCounter[] GetCounters ()
149                 {
150                         throw new NotImplementedException ();
151                 }
152
153                 [MonoTODO]
154                 public PerformanceCounter[] GetCounters (string instanceName)
155                 {
156                         throw new NotImplementedException ();
157                 }
158
159                 [MonoTODO]
160                 public string[] GetInstanceNames ()
161                 {
162                         throw new NotImplementedException ();
163                 }
164
165                 [MonoTODO]
166                 public bool InstanceExists (string instanceName)
167                 {
168                         throw new NotImplementedException ();
169                 }
170
171                 [MonoTODO]
172                 public static bool InstanceExists (string instanceName, 
173                         string categoryName)
174                 {
175                         throw new NotImplementedException ();
176                 }
177
178                 [MonoTODO]
179                 public static bool InstanceExists (string instanceName, 
180                         string categoryName,
181                         string machineName)
182                 {
183                         throw new NotImplementedException ();
184                 }
185
186                 [MonoTODO]
187                 public InstanceDataCollectionCollection ReadCategory ()
188                 {
189                         throw new NotImplementedException ();
190                 }
191         }
192 }
193