Sun::Solaris::Exacct::Object::Item - exacct item manipulation
use Sun::Solaris::Exacct::Object; my $ea_item = Sun::Solaris::Exacct::Object::Item->new( &EXT_UINT64 | &EXC_DEFAULT | &EXD_PROC_PID, $$);
This module is used for manipulating libexacct(3LIB) data Items. A libexacct Item is represented as an opaque reference blessed into the Sun::Solaris::Exacct::Object::Item class, which is a subclass of the Sun::Solaris::Exacct::Object class. The underlying libexacct data types are mapped onto Perl types as follows:
libexacct(3LIB)
Sun::Solaris::Exacct::Object::Item
Sun::Solaris::Exacct::Object
libexacct type Perl internal type
EXT_UINT8 IV (integer) EXT_UINT16 IV (integer) EXT_UINT32 IV (integer) EXT_UINT64 IV (integer) EXT_DOUBLE NV (double) EXT_STRING PV (string) EXT_RAW PV (string) EXT_EXACCT_OBJECT Sun::Solaris::Exacct::Object subclass
None.
Class methods include those inherited from the Sun::Solaris::Exacct::Object base class, plus the following:
new($catalog, $value)
This method creates and returns a new Sun::Solaris::Exacct::Object::Item. The catalog tag can be either an integer or a Sun::Solaris::Exacct::Catalog. This catalog tag controls the conversion of the Perl value to the corresponding Perl exacct data type as described in the table above. If the catalog tag has a type field of EXT_EXACCT_OBJECT, the value must be a reference to either an Item or a Group object and the passed object is recursively copied and stored inside the new Item. Because the returned Item is constant, it is impossible, for example, to create an Item representing CPU seconds and subsequently modify its value or change its catalog value. This behavior is intended to prevent mismatches between the catalog tag and the data value.
Sun::Solaris::Exacct::Catalog
EXT_EXACCT_OBJECT
Object methods are those inherited from the Sun::Solaris::Exacct::Object.
See attributes(5) for descriptions of the following attributes:
attributes(5)
___________________________________________________________ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | |_____________________________|_____________________________| | Availability | CPAN (http://www.cpan.org) | |_____________________________|_____________________________| | Interface Stability | Evolving | |_____________________________|_____________________________|
Sun::Solaris::Exacct(3), Sun::Solaris::Exacct::Catalog(3), Sun::Solaris::Exacct::File(3), Sun::Solaris::Exacct::Object(3), Sun::Solaris::Exacct::Object::Group(3), libexacct(3LIB), attributes(5)
Sun::Solaris::Exacct(3)
Sun::Solaris::Exacct::Catalog(3)
Sun::Solaris::Exacct::File(3)
Sun::Solaris::Exacct::Object(3)
Sun::Solaris::Exacct::Object::Group(3)
To install Sun::Solaris::Exacct, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Sun::Solaris::Exacct
CPAN shell
perl -MCPAN -e shell install Sun::Solaris::Exacct
For more information on module installation, please visit the detailed CPAN module installation guide.