updating to the latest module.
[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 //
11 // Permission is hereby granted, free of charge, to any person obtaining
12 // a copy of this software and associated documentation files (the
13 // "Software"), to deal in the Software without restriction, including
14 // without limitation the rights to use, copy, modify, merge, publish,
15 // distribute, sublicense, and/or sell copies of the Software, and to
16 // permit persons to whom the Software is furnished to do so, subject to
17 // the following conditions:
18 // 
19 // The above copyright notice and this permission notice shall be
20 // included in all copies or substantial portions of the Software.
21 // 
22 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
25 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
26 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
27 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
28 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29 //
30
31 using System;
32 using System.Diagnostics;
33
34 namespace System.Diagnostics 
35 {
36
37         public sealed class PerformanceCounterCategory 
38         {
39                 private string categoryName;
40                 private string machineName;
41
42                 public PerformanceCounterCategory ()
43                         : this ("", ".")
44                 {
45                 }
46
47                 // may throw ArgumentException (""), ArgumentNullException
48                 public PerformanceCounterCategory (string categoryName)
49                         : this (categoryName, ".")
50                 {
51                 }
52
53                 // may throw ArgumentException (""), ArgumentNullException
54                 [MonoTODO]
55                 public PerformanceCounterCategory (string categoryName,
56                         string machineName)
57                 {
58                         // TODO checks and whatever else is needed
59                         this.categoryName = categoryName;
60                         this.machineName = machineName;
61                         throw new NotImplementedException ();
62                 }
63
64                 // may throw InvalidOperationException, Win32Exception
65                 [MonoTODO]
66                 public string CategoryHelp {
67                         get {throw new NotImplementedException ();}
68                 }
69
70                 // may throw ArgumentException (""), ArgumentNullException
71                 [MonoTODO]
72                 public string CategoryName {
73                         get {return categoryName;}
74                         set {
75                                 // TODO needs validity checks
76                                 categoryName = value;
77                         }
78                 }
79
80                 // may throw ArgumentException
81                 [MonoTODO]
82                 public string MachineName {
83                         get {return machineName;}
84                         set {
85                                 // TODO needs validity checks
86                                 machineName = value;
87                         }
88                 }
89
90                 // may throw ArgumentNullException, InvalidOperationException
91                 // (categoryName isn't set), Win32Exception
92                 [MonoTODO]
93                 public bool CounterExists (string counterName)
94                 {
95                         throw new NotImplementedException ();
96                 }
97
98                 // may throw ArgumentNullException, InvalidOperationException
99                 // (categoryName is ""), Win32Exception
100                 [MonoTODO]
101                 public static bool CounterExists (string counterName, 
102                         string categoryName)
103                 {
104                         throw new NotImplementedException ();
105                 }
106
107                 // may throw ArgumentNullException, InvalidOperationException
108                 // (categoryName is "", machine name is bad), Win32Exception
109                 [MonoTODO]
110                 public static bool CounterExists (string counterName, 
111                         string categoryName,
112                         string machineName)
113                 {
114                         throw new NotImplementedException ();
115                 }
116
117                 [MonoTODO]
118                 public static PerformanceCounterCategory Create (
119                         string categoryName,
120                         string categoryHelp,
121                         CounterCreationDataCollection counterData)
122                 {
123                         throw new NotImplementedException ();
124                 }
125
126                 [MonoTODO]
127                 public static PerformanceCounterCategory Create (
128                         string categoryName,
129                         string categoryHelp,
130                         string counterName,
131                         string counterHelp)
132                 {
133                         throw new NotImplementedException ();
134                 }
135
136                 [MonoTODO]
137                 public static void Delete (string categoryName)
138                 {
139                         throw new NotImplementedException ();
140                 }
141
142                 [MonoTODO]
143                 public static bool Exists (string categoryName)
144                 {
145                         throw new NotImplementedException ();
146                 }
147
148                 [MonoTODO]
149                 public static bool Exists (string categoryName, 
150                         string machineName)
151                 {
152                         throw new NotImplementedException ();
153                 }
154
155                 [MonoTODO]
156                 public static PerformanceCounterCategory[] GetCategories ()
157                 {
158                         throw new NotImplementedException ();
159                 }
160
161                 [MonoTODO]
162                 public static PerformanceCounterCategory[] GetCategories (
163                         string machineName)
164                 {
165                         throw new NotImplementedException ();
166                 }
167
168                 [MonoTODO]
169                 public PerformanceCounter[] GetCounters ()
170                 {
171                         throw new NotImplementedException ();
172                 }
173
174                 [MonoTODO]
175                 public PerformanceCounter[] GetCounters (string instanceName)
176                 {
177                         throw new NotImplementedException ();
178                 }
179
180                 [MonoTODO]
181                 public string[] GetInstanceNames ()
182                 {
183                         throw new NotImplementedException ();
184                 }
185
186                 [MonoTODO]
187                 public bool InstanceExists (string instanceName)
188                 {
189                         throw new NotImplementedException ();
190                 }
191
192                 [MonoTODO]
193                 public static bool InstanceExists (string instanceName, 
194                         string categoryName)
195                 {
196                         throw new NotImplementedException ();
197                 }
198
199                 [MonoTODO]
200                 public static bool InstanceExists (string instanceName, 
201                         string categoryName,
202                         string machineName)
203                 {
204                         throw new NotImplementedException ();
205                 }
206
207                 [MonoTODO]
208                 public InstanceDataCollectionCollection ReadCategory ()
209                 {
210                         throw new NotImplementedException ();
211                 }
212         }
213 }
214