|
1 <?xml version="1.0" encoding="UTF-8" standalone="yes"?> |
|
2 <!-- |
|
3 Copyright (c) 2010, 2012, Oracle and/or its affiliates. All rights reserved. |
|
4 |
|
5 CDDL HEADER START |
|
6 |
|
7 The contents of this file are subject to the terms of the |
|
8 Common Development and Distribution License (the "License"). |
|
9 You may not use this file except in compliance with the License. |
|
10 |
|
11 You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
|
12 or http://www.opensolaris.org/os/licensing. |
|
13 See the License for the specific language governing permissions |
|
14 and limitations under the License. |
|
15 |
|
16 When distributing Covered Code, include this CDDL HEADER in each |
|
17 file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
|
18 If applicable, add the following below this CDDL HEADER, with the |
|
19 fields enclosed by brackets "[]" replaced with your own identifying |
|
20 information: Portions Copyright [yyyy] [name of copyright owner] |
|
21 |
|
22 CDDL HEADER END |
|
23 --> |
|
24 |
|
25 <api xmlns="http://xmlns.oracle.com/radadr" |
|
26 name="com.oracle.solaris.vp.panel.common.api.smf_old"> |
|
27 |
|
28 <struct name="Service"> |
|
29 <field type="string" name="fmri" /> |
|
30 <field type="name" name="objectName" /> |
|
31 <field name="instances"> |
|
32 <list type="string" /> |
|
33 </field> |
|
34 </struct> |
|
35 |
|
36 <enum name="SmfState"> |
|
37 <value name="NONE" /> |
|
38 <value name="UNINIT" /> |
|
39 <value name="MAINT" /> |
|
40 <value name="OFFLINE" /> |
|
41 <value name="DISABLED" /> |
|
42 <value name="ONLINE" /> |
|
43 <value name="DEGRADED" /> |
|
44 <value name="LEGACY" /> |
|
45 </enum> |
|
46 |
|
47 <struct name="Instance"> |
|
48 <field type="string" name="fmri" /> |
|
49 <field type="name" name="objectName" /> |
|
50 <field type="time" name="STime" /> <!-- %!@$!@ java --> |
|
51 <field typeref="SmfState" name="state" /> |
|
52 </struct> |
|
53 |
|
54 <struct name="Dependency"> |
|
55 <field type="string" name="name" /> |
|
56 <field name="target"> |
|
57 <list type="string" /> |
|
58 </field> |
|
59 <!-- Should be enums --> |
|
60 <field type="string" name="grouping" /> |
|
61 <field type="string" name="restartOn" /> |
|
62 </struct> |
|
63 |
|
64 <enum name="PropertyType"> |
|
65 <value name="UNKNOWN" value="0" /> <!-- INVALID --> |
|
66 <value name="BOOLEAN" /> |
|
67 <value name="COUNT" /> |
|
68 <value name="INTEGER" /> |
|
69 <value name="TIME" /> |
|
70 <value name="ASTRING" /> |
|
71 <value name="OPAQUE" /> |
|
72 <value name="USTRING" value="100" /> |
|
73 <value name="URI" value="200" /> |
|
74 <value name="FMRI" /> |
|
75 <value name="HOST" value="300" /> |
|
76 <value name="HOSTNAME" /> |
|
77 <value name="NET_ADDRESS_V4" /> |
|
78 <value name="NET_ADDRESS_V6" /> |
|
79 <value name="NET_ADDRESS" /> |
|
80 </enum> |
|
81 |
|
82 <struct name="Manpage"> |
|
83 <field type="string" name="title" /> |
|
84 <field type="string" name="section" /> |
|
85 <field type="string" name="path" /> |
|
86 </struct> |
|
87 |
|
88 <struct name="PropertyGroup"> |
|
89 <field type="string" name="name" /> |
|
90 <field type="string" name="type" /> |
|
91 </struct> |
|
92 |
|
93 <enum name="PropertyVisibility"> |
|
94 <value name="HIDDEN" /> |
|
95 <value name="READONLY" /> |
|
96 <value name="READWRITE" /> |
|
97 </enum> |
|
98 |
|
99 <struct name="Template"> |
|
100 <field type="string" name="name" nullable="true" /> |
|
101 <field type="string" name="description" nullable="true" /> |
|
102 <field type="string" name="units" nullable="true" /> |
|
103 <field typeref="PropertyVisibility" name="visibility" /> |
|
104 <field type="string" name="cardinality" nullable="true" /> |
|
105 <field name="separators" nullable="true" > |
|
106 <list type="string" /> |
|
107 </field> |
|
108 <field name="allowed" nullable="true" > |
|
109 <list type="string" /> |
|
110 </field> |
|
111 </struct> |
|
112 |
|
113 <struct name="StateChange"> |
|
114 <field type="name" name="source" /> |
|
115 <field typeref="SmfState" name="state" /> |
|
116 <field typeref="SmfState" name="nextState" /> |
|
117 <field type="string" name="auxState" nullable="true" /> |
|
118 <field type="time" name="stateTime" /> |
|
119 <field type="string" name="reason" nullable="true" /> |
|
120 <field type="boolean" name="anomaly" /> |
|
121 </struct> |
|
122 |
|
123 <enum name="SmfErrorCode"> |
|
124 <value name="NONE" value="1000" /> |
|
125 <value name="NOT_BOUND" /> |
|
126 <value name="NOT_SET" /> |
|
127 <value name="NOT_FOUND" /> |
|
128 <value name="TYPE_MISMATCH" /> |
|
129 <value name="IN_USE" /> |
|
130 <value name="CONNECTION_BROKEN" /> |
|
131 <value name="INVALID_ARGUMENT" /> |
|
132 <value name="NO_MEMORY" /> |
|
133 <value name="CONSTRAINT_VIOLATED" /> |
|
134 <value name="EXISTS" /> |
|
135 <value name="NO_SERVER" /> |
|
136 <value name="NO_RESOURCES" /> |
|
137 <value name="PERMISSION_DENIED" /> |
|
138 <value name="BACKEND_ACCESS" /> |
|
139 <value name="HANDLE_MISMATCH" /> |
|
140 <value name="HANDLE_DESTROYED" /> |
|
141 <value name="VERSION_MISMATCH" /> |
|
142 <value name="BACKEND_READONLY" /> |
|
143 <value name="DELETED" /> |
|
144 <value name="TEMPLATE_INVALID" /> |
|
145 <value name="CALLBACK_FAILED" value="1080" /> |
|
146 <value name="INTERNAL" value="1101" /> |
|
147 </enum> |
|
148 |
|
149 <struct name="LogInfo"> |
|
150 <field type="string" name="name" /> |
|
151 <field type="integer" name="size" /> |
|
152 <field type="time" name="MTime" /> |
|
153 <field type="opaque" name="contents" /> |
|
154 </struct> |
|
155 |
|
156 <struct name="SmfError"> |
|
157 <field typeref="SmfErrorCode" name="error" /> |
|
158 <field type="string" name="message" nullable="true" /> |
|
159 </struct> |
|
160 |
|
161 <interface name="Aggregator"> |
|
162 <version major="1" minor="0" stability="private" /> |
|
163 |
|
164 <property name="services" access="ro"> |
|
165 <list typeref="Service" /> |
|
166 <error typeref="SmfError" /> |
|
167 </property> |
|
168 |
|
169 <property name="instances" access="ro"> |
|
170 <list typeref="Instance" /> |
|
171 <error typeref="SmfError" /> |
|
172 </property> |
|
173 |
|
174 <event typeref="StateChange" name="statechange" /> |
|
175 </interface> |
|
176 |
|
177 <interface name="ServiceInfo"> |
|
178 <version major="1" minor="0" stability="private" /> |
|
179 |
|
180 <property type="string" name="fmri" access="ro"> |
|
181 <error typeref="SmfError" /> |
|
182 </property> |
|
183 |
|
184 <property name="methodNames" access="ro"> |
|
185 <list type="string" /> |
|
186 <error typeref="SmfError" /> |
|
187 </property> |
|
188 <property name="dependencyNames" access="ro"> |
|
189 <list type="string" /> |
|
190 <error typeref="SmfError" /> |
|
191 </property> |
|
192 |
|
193 <method name="getDependency"> |
|
194 <result typeref="Dependency" /> |
|
195 <error typeref="SmfError" /> |
|
196 <argument type="string" name="name" /> |
|
197 </method> |
|
198 |
|
199 <method name="getPropertyNames"> |
|
200 <result> |
|
201 <list type="string" /> |
|
202 </result> |
|
203 <error typeref="SmfError" /> |
|
204 <argument type="string" name="pg_name" /> |
|
205 </method> |
|
206 |
|
207 <method name="getPropertyType"> |
|
208 <result typeref="PropertyType" /> |
|
209 <error typeref="SmfError" /> |
|
210 <argument type="string" name="pg_name" /> |
|
211 <argument type="string" name="prop_name" /> |
|
212 </method> |
|
213 |
|
214 <method name="getPropertyValues"> |
|
215 <result> |
|
216 <list type="string" /> |
|
217 </result> |
|
218 <error typeref="SmfError" /> |
|
219 <argument type="string" name="pg_name" /> |
|
220 <argument type="string" name="prop_name" /> |
|
221 </method> |
|
222 |
|
223 <method name="getSnapshotPropertyValues"> |
|
224 <result> |
|
225 <list type="string" /> |
|
226 </result> |
|
227 <error typeref="SmfError" /> |
|
228 <argument type="string" name="snap_name" /> |
|
229 <argument type="string" name="pg_name" /> |
|
230 <argument type="string" name="prop_name" /> |
|
231 </method> |
|
232 |
|
233 <method name="setPropertyValues"> |
|
234 <error typeref="SmfError" /> |
|
235 <argument type="string" name="pg_name" /> |
|
236 <argument type="string" name="prop_name" /> |
|
237 <argument name="values"> |
|
238 <list type="string" /> |
|
239 </argument> |
|
240 </method> |
|
241 |
|
242 <method name="createPropertyGroup"> |
|
243 <error typeref="SmfError" /> |
|
244 <argument type="string" name="pg_name" /> |
|
245 <argument type="string" name="pg_type" /> |
|
246 </method> |
|
247 |
|
248 <method name="deletePropertyGroup"> |
|
249 <error typeref="SmfError" /> |
|
250 <argument type="string" name="pg_name" /> |
|
251 </method> |
|
252 |
|
253 <method name="createProperty"> |
|
254 <error typeref="SmfError" /> |
|
255 <argument type="string" name="pg_name" /> |
|
256 <argument type="string" name="prop_name" /> |
|
257 <argument typeref="PropertyType" name="type" /> |
|
258 </method> |
|
259 |
|
260 <method name="deleteProperty"> |
|
261 <error typeref="SmfError" /> |
|
262 <argument type="string" name="pg_name" /> |
|
263 <argument type="string" name="prop_name" /> |
|
264 </method> |
|
265 |
|
266 <property name="propertyGroups" access="ro"> |
|
267 <list typeref="PropertyGroup" /> |
|
268 <error typeref="SmfError" /> |
|
269 </property> |
|
270 |
|
271 <method name="getPropertyTemplate"> |
|
272 <result typeref="Template" /> |
|
273 <error typeref="SmfError" /> |
|
274 <argument type="string" name="pg_name" /> |
|
275 <argument type="string" name="prop_name" /> |
|
276 <argument type="string" name="locale" /> |
|
277 </method> |
|
278 |
|
279 <method name="getCommonName"> |
|
280 <result type="string" nullable="true" /> |
|
281 <error typeref="SmfError" /> |
|
282 <argument type="string" name="locale" /> |
|
283 </method> |
|
284 |
|
285 <method name="getDescription"> |
|
286 <result type="string" nullable="true" /> |
|
287 <error typeref="SmfError" /> |
|
288 <argument type="string" name="locale" /> |
|
289 </method> |
|
290 |
|
291 <method name="getLogInfo"> |
|
292 <result typeref="LogInfo" /> |
|
293 <error /> |
|
294 <argument type="integer" name="max_size" /> |
|
295 </method> |
|
296 |
|
297 <property name="manpages" access="ro"> |
|
298 <list typeref="Manpage" /> |
|
299 <error typeref="SmfError" /> |
|
300 </property> |
|
301 |
|
302 <property name="doclinks" access="ro"> |
|
303 <list type="string" /> |
|
304 <error typeref="SmfError" /> |
|
305 </property> |
|
306 |
|
307 <method name="delete"> |
|
308 <error typeref="SmfError" /> |
|
309 </method> |
|
310 |
|
311 <method name="clear"> |
|
312 <error typeref="SmfError" /> |
|
313 </method> |
|
314 |
|
315 <method name="degrade"> |
|
316 <error typeref="SmfError" /> |
|
317 <argument type="boolean" name="immediate" /> |
|
318 </method> |
|
319 |
|
320 <method name="maintain"> |
|
321 <error typeref="SmfError" /> |
|
322 <argument type="boolean" name="immediate" /> |
|
323 </method> |
|
324 |
|
325 <method name="restart"> |
|
326 <error typeref="SmfError" /> |
|
327 </method> |
|
328 |
|
329 <method name="refresh"> |
|
330 <error typeref="SmfError" /> |
|
331 </method> |
|
332 |
|
333 <property type="boolean" name="persistentlyEnabled" access="rw"> |
|
334 <error typeref="SmfError" /> |
|
335 </property> |
|
336 |
|
337 <property type="boolean" name="temporarilyEnabled" access="ro"> |
|
338 <error typeref="SmfError" /> |
|
339 </property> |
|
340 |
|
341 <property type="boolean" name="enabled" access="ro"> |
|
342 <error typeref="SmfError" /> |
|
343 </property> |
|
344 |
|
345 <property type="boolean" name="instance" access="ro"> |
|
346 <error typeref="SmfError" /> |
|
347 </property> |
|
348 |
|
349 <property type="string" name="restarter" access="ro"> |
|
350 <error typeref="SmfError" /> |
|
351 </property> |
|
352 |
|
353 <property typeref="SmfState" name="state" access="ro"> |
|
354 <error typeref="SmfError" /> |
|
355 </property> |
|
356 |
|
357 <property typeref="SmfState" name="nextState" access="ro"> |
|
358 <error typeref="SmfError" /> |
|
359 </property> |
|
360 |
|
361 <property type="string" name="auxiliaryState" access="ro" |
|
362 nullable="true"> |
|
363 <error typeref="SmfError" /> |
|
364 </property> |
|
365 |
|
366 <property type="time" name="stime" access="ro"> |
|
367 <error typeref="SmfError" /> |
|
368 </property> |
|
369 |
|
370 <!-- Should be ulong --> |
|
371 <property type="long" name="contractID" access="ro"> |
|
372 <error typeref="SmfError" /> |
|
373 </property> |
|
374 |
|
375 <property type="string" name="reason" access="ro" |
|
376 nullable="true"> |
|
377 <error typeref="SmfError" /> |
|
378 </property> |
|
379 |
|
380 <event typeref="StateChange" name="statechange" /> |
|
381 </interface> |
|
382 </api> |