ProcessDataModel.java revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (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
*/
/*
* ident "%Z%%M% %I% %E% SMI"
*
* Copyright (c) 2001 by Sun Microsystems, Inc.
* All rights reserved.
*
*/
/**
* Data model of Process Utilization. It encapsulates a CIM instance of
* a Solaris_ProcessStatisticalInformation class.
* @author Sun Microsystems
* @version %I% %G%
*/
public class ProcessDataModel extends SRMProviderDataModel
implements SRMProviderProperties,
/**
* Object path to the Solaris_Process instance
*/
protected CIMObjectPath opForProc;
int pid;
public ProcessDataModel() {
super();
}
public ProcessDataModel(int pid) {
}
/**
* Get a CIM object path to a Solaris_Process object.
* @returns object path to the Solaris_Process instance.
*/
public CIMObjectPath getCIMObjectPathForProc() {
new CIMValue(SOLARIS_COMPUTERSYSTEM)));
new CIMProperty(CSNAME,
new CIMValue(SOLARIS_OPERATINGSYSTEM)));
new CIMProperty(OSNAME,
new CIMProperty(HANDLE,
}
return opForProc;
}
}
protected void setOpPropertiesVector() {
new CIMValue(SOLARIS_COMPUTERSYSTEM)));
new CIMProperty(CSNAME,
new CIMValue(SOLARIS_OPERATINGSYSTEM)));
new CIMProperty(OSNAME,
new CIMProperty(NAME,
}
protected void setCIMInstance(boolean newInstance) {
csName);
"");
"");
NAME,
}
protected void initKeyValTable() {
new SetReal64Prop(WAITCPUTIME));
new SetReal64Prop(USERMODETIME));
new SetReal64Prop(SYSTEMMODETIME));
new SetReal64Prop(SYSTEMTRAPTIME));
new SetReal64Prop(OTHERSLEEPTIME));
new SetReal64Prop(STOPPEDTIME));
new SetUI64Prop(MINORPAGEFAULTS));
new SetUI64Prop(MAJORPAGEFAULTS));
new SetUI64Prop(SWAPOPERATIONS));
new SetUI64Prop(BLOCKSREAD));
new SetUI64Prop(BLOCKSWRITTEN));
new SetUI64Prop(MESSAGESSENT));
new SetUI64Prop(MESSAGESRECEIVED));
new SetUI64Prop(SIGNALSRECEIVED));
new SetUI64Prop(SYSTEMCALLSMADE));
new SetUI64Prop(CHARACTERIOUSAGE));
new SetUI64Prop(PROCESSHEAPSIZE));
new SetUI64Prop(PROCESSVMSIZE));
new SetReal32Prop(PERCENTCPUTIME));
new SetReal32Prop(PERCENTMEMORYSIZE));
new SetUI64Prop(USERSYSTEMMODETIME));
new SetUI64Prop(NUMTHREADS));
new SetUI64Prop(TIMESTAMP));
}
}