Solaris_ProcessStatistics.java revision 9a70fc3be3b1e966bf78825cdb8d509963a6f0a1
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2001-2002 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/**
* Provider of the Solaris_ProcessStatistics class. This class represents
* an association linking a Solaris_Process and its
* Solaris_ProcessStatisticalInformation instance a raw resource utilization
* measurements for a process.
* @author Sun Microsystems, Inc.
*/
public class Solaris_ProcessStatistics extends SRMProvider {
/**
* The name of the provider implemented by this class
*/
/**
* Get the name of the provider implemented by this class.
* @returns String provider name
*/
protected String getProviderName() {
return providerName;
}
/**
* Returns a specific instance.
* @param op - the name of the instance to be retrieved. This must include
* all of the keys and values for the instance.
* @param localOnly - if true, only the local properties of the class are
* returned, otherwise all properties are required
* @param includeQualifiers - if true, the qualifiers are returned as part
* of of the returned instancei, otherwise no qualifiers will be returned
* @param includeClassOrigin - if true, the class origin of each property
* will be returned
* @param String[] - if null, all properties are returned, otherwise only
* the properties specified will be returned. Any duplicate properties will
* be ignored.
* @param cc - the class reference
*
* @return CIMInstance the retrieved instance.
* @exception CIMException - the method getInstance throws a CIMException
* if the CIMObjectPath is incorrect or does not exist.
*/
boolean localOnly,
boolean includeQualifiers,
boolean includeClassOrigin,
throws CIMException {
try {
while (e.hasMoreElements()) {
getValue();
}
getValue();
}
}
} catch (Exception e) {
}
return ci;
} // end getInstance
/**
* Returns all instances of Solaris_ProcessStatistics.
* @param op - the object path specifies the class to be enumerated
* localOnly - if true, only the local properties of the class are returned,
* otherwise all properties are required
* @param includeQualifiers - if true, the qualifiers are returned as part
* of of the returned instancei, otherwise no qualifiers will be returned
* @param includeClassOrigin - if true, the class origin of each property
* will be returned
* @param String[] - if null, all properties are returned, otherwise only
* the properties specified will be
* returned. Any duplicate properties will be ignored.
* @param cc - the class reference
* @return An array of CIMInstance
* @exception CIMException - if the CIMObjectPath is incorrect or does not
* exist.
*/
boolean localOnly,
boolean includeQualifiers,
boolean includeClassOrigin,
throws CIMException {
try {
while (i.hasNext()) {
}
} catch (Exception e) {
}
return ciArray;
} // end enumerateInstances
/**
* Returns the names of all Solaris_ProcessUtilizationInformation instances.
*
* @param op - the class name to enumerate the instances
* @param cc - the class reference passed to the provider
* @return an array of CIMObjectPath containing names of the enumerated
* instances.
* @exception CIMException - if the classname is null or does not exist.
*/
public synchronized CIMObjectPath[]
throws CIMException {
try {
while (i.hasNext()) {
op.getNameSpace());
}
} catch (Exception e) {
}
return copArray;
} // end enumerateInstanceNames
} // end class Solaris_ProcessStatistics