summaryrefslogtreecommitdiffstats
path: root/mof/30_LMI_Jobs.mof
diff options
context:
space:
mode:
authorMichal Minar <miminar@redhat.com>2013-04-18 16:03:19 +0200
committerMichal Minar <miminar@redhat.com>2013-04-22 18:59:04 +0200
commitcb3913a5177f998acb503691fb1908f82c7f890b (patch)
tree819f60359938871c0e728432623ea4151f607d8f /mof/30_LMI_Jobs.mof
parent6c3ca07f99bb8eeb0ef8aae5d72682d2f860c2a1 (diff)
downloadopenlmi-providers-cb3913a5177f998acb503691fb1908f82c7f890b.tar.gz
openlmi-providers-cb3913a5177f998acb503691fb1908f82c7f890b.tar.xz
openlmi-providers-cb3913a5177f998acb503691fb1908f82c7f890b.zip
renamed mof files according to LMI convention
Mof files prefixed with digits ensuring their correct order of parsing upon their installation. This avoids problems with sfcbmof compiler, which can not handle dependent classes being parsed before their antecedents. Convention is specified in mof/README. Removed inclusion of LMI_Qualifiers in LMI_Jobs. LMI_Qualifiers should be registered in cimom instead of included in dependent mof files. This allows it to be used by any other providers simultaneously. Modified references to mof files in cmake build files.
Diffstat (limited to 'mof/30_LMI_Jobs.mof')
-rw-r--r--mof/30_LMI_Jobs.mof125
1 files changed, 125 insertions, 0 deletions
diff --git a/mof/30_LMI_Jobs.mof b/mof/30_LMI_Jobs.mof
new file mode 100644
index 0000000..6c8ddd1
--- /dev/null
+++ b/mof/30_LMI_Jobs.mof
@@ -0,0 +1,125 @@
+/*
+ * Copyright (C) 2012-2013 Red Hat, Inc. All rights reserved.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ * Authors:
+ * Jan Safranek <jsafrane@redhat.com>
+ * Michal Minar <miminar@redhat.com
+ */
+
+[Association]
+class LMI_AffectedJobElement : CIM_AffectedJobElement
+{
+};
+
+[Association]
+class LMI_AssociatedJobMethodResult : CIM_AssociatedJobMethodResult
+{
+};
+
+[Association]
+class LMI_OwningJobElement : CIM_OwningJobElement
+{
+};
+
+class LMI_MethodResult : CIM_MethodResult
+{
+};
+
+class LMI_ConcreteJob : CIM_ConcreteJob
+{
+ [ Implemented(true), Override("DeleteOnCompletion") ]
+ boolean DeleteOnCompletion;
+ [ Implemented(true), Override("ElapsedTime") ]
+ datetime ElapsedTime;
+ [ Implemented(true), Override("JobState") ]
+ uint16 JobState;
+ [ Implemented(true), Override("LocalOrUtcTime") ]
+ uint16 LocalOrUtcTime;
+ [ Implemented(true), Override("Name") ]
+ string Name;
+ [ Implemented(true), Override("OperationalStatus")]
+ uint16 OperationalStatus[];
+ [ Implemented(true), Override("PercentComplete") ]
+ uint16 PercentComplete;
+ [ Implemented(true), Override("StartTime") ]
+ datetime StartTime;
+ [ Implemented(true), Override("TimeBeforeRemoval") ]
+ datetime TimeBeforeRemoval;
+ [ Implemented(true), Override("TimeOfLastStateChange") ]
+ datetime TimeOfLastStateChange;
+ [ Implemented(true), Override("TimeSubmitted")]
+ datetime TimeSubmitted;
+
+ [ Implemented(true), Override("GetError"),
+ Deprecated{"CIM_ConcreteJob.GetErrors"} ]
+ uint32 GetError(
+ [OUT, Description (
+ "If the OperationalStatus on the Job is not \"OK\", "
+ "then this method will return a CIM Error instance. "
+ "Otherwise, when the Job is \"OK\", null is "
+ "returned." ),
+ EmbeddedInstance ( "CIM_Error" )]
+ string Error);
+
+ [Implemented(true), Override("GetErrors")]
+ uint32 GetErrors(
+ [OUT, Description (
+ "If the OperationalStatus on the Job is not \"OK\", "
+ "then this method will return one or more CIM Error "
+ "instance(s). Otherwise, when the Job is \"OK\", "
+ "null is returned." ),
+ EmbeddedInstance ( "CIM_Error" )]
+ string Errors[]);
+
+ [Implemented(true), Override("RequestStateChange")]
+ uint32 RequestStateChange(
+ [IN, Description (
+ "RequestStateChange changes the state of a job. The "
+ "possible values are as follows: \n"
+ "Start (2) changes the state to \'Running\'. \n"
+ "Suspend (3) stops the job temporarily. The "
+ "intention is to subsequently restart the job with "
+ "\'Start\'. It might be possible to enter the "
+ "\'Service\' state while suspended. (This is "
+ "job-specific.) \n"
+ "Terminate (4) stops the job cleanly, saving data, "
+ "preserving the state, and shutting down all "
+ "underlying processes in an orderly manner. \n"
+ "Kill (5) terminates the job immediately with no "
+ "requirement to save data or preserve the state. \n"
+ "Service (6) puts the job into a vendor-specific "
+ "service state. It might be possible to restart the "
+ "job." ),
+ ValueMap { "2", "3", "4", "5", "6", "7..32767",
+ "32768..65535" },
+ Values { "Start", "Suspend", "Terminate", "Kill",
+ "Service", "DMTF Reserved", "Vendor Reserved" }]
+ uint16 RequestedState,
+ [IN, Description (
+ "A timeout period that specifies the maximum amount "
+ "of time that the client expects the transition to "
+ "the new state to take. The interval format must be "
+ "used to specify the TimeoutPeriod. A value of 0 or "
+ "a null parameter indicates that the client has no "
+ "time requirements for the transition. \n"
+ "If this property does not contain 0 or null and "
+ "the implementation does not support this "
+ "parameter, a return code of \'Use Of Timeout "
+ "Parameter Not Supported\' must be returned." )]
+ datetime TimeoutPeriod);
+
+};