Top Description Inners Fields Methods
com.sun.jna.platform.unix.aix

public Interface Perfstat

extends Library
Imports
com.sun.jna.Library, .Native, .NativeLong, .Structure, .Structure.FieldOrder, .Union

The perfstat API uses the perfstat kernel extension to extract various AIX® performance metrics. System component information is also retrieved from the Object Data Manager (ODM) and returned with the performance metrics. The perfstat API is thread–safe, and does not require root authority.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
public static class
public static class
public static class
public static class
public static class
public static class
public static class
public static class
public static class

Field Summary

Modifier and TypeField and Description
public static final int
public static final Perfstat
Inherited from com.sun.jna.Library:
OPTION_ALLOW_OBJECTSOPTION_CALLING_CONVENTIONOPTION_CLASSLOADEROPTION_FUNCTION_MAPPEROPTION_INVOCATION_MAPPEROPTION_OPEN_FLAGSOPTION_STRING_ENCODINGOPTION_STRUCTURE_ALIGNMENTOPTION_SYMBOL_PROVIDEROPTION_TYPE_MAPPER

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

The return value is -1 in case of errors. Otherwise, the number of structures copied is returned.
perfstat_cpu
(Perfstat.perfstat_id_t
Structure containing empty string when collecting all cpu stats, or null to count CPUs
name
,
Perfstat.perfstat_cpu_t[]
Populated with structures, or null to count CPUs
cpu
,
int
Should be set to sizeof(perfstat_cpu_t)
sizeof_struct
,
int
Set to 0 to count CPUs, set to number of cpus to return otherwise
desired_number
)

Retrieves individual processor usage metrics

public int

Returns:

The return value is -1 in case of errors. Otherwise, the number of structures copied is returned. This is always 1.
perfstat_cpu_total
(Perfstat.perfstat_id_t
Reserved for future use, must be NULL
name
,
Perfstat.perfstat_cpu_total_t
Populated with structure
cpu
,
int
Should be set to sizeof(perfstat_cpu_total_t)
sizeof_struct
,
int
Reserved for future use, must be set to 0 or 1
desired_number
)

Retrieves total processor usage metrics

public int

Returns:

The return value is -1 in case of errors. Otherwise, the number of structures copied is returned.
perfstat_disk
(Perfstat.perfstat_id_t
Structure containing empty string when collecting all disk stats, or null to count block disks
name
,
Perfstat.perfstat_disk_t[]
Populated with structures, or null to count disks
disks
,
int
Should be set to sizeof(perfstat_disk_t)
sizeof_struct
,
int
Set to 0 to count disks, set to number of disks to return otherwise
desired_number
)

Retrieves disk statistics

public int

Returns:

The return value is -1 in case of errors. Otherwise, the number of structures copied is returned. This is always 1.
perfstat_memory_total
(Perfstat.perfstat_id_t
Reserved for future use, must be NULL
name
,
Perfstat.perfstat_memory_total_t
Populated with structure
mem
,
int
Should be set to sizeof(perfstat_memory_total_t)
sizeof_struct
,
int
Reserved for future use, must be set to 0 or 1
desired_number
)

Retrieves total memory-related metrics

public int

Returns:

The return value is -1 in case of errors. Otherwise, the number of structures copied is returned.
perfstat_netinterface
(Perfstat.perfstat_id_t
Structure containing empty string when collecting all interface stats, or null to count interfaces
name
,
Perfstat.perfstat_netinterface_t[]
Populated with structures, or null to count interfaces
netints
,
int
Should be set to sizeof(perfstat_netinterface_t)
sizeof_struct
,
int
Set to 0 to count network interfaces, set to number of interfaces to return otherwise
desired_number
)

Retrieves network interfaces

public int

Returns:

The return value is -1 in case of errors. Otherwise, the number of structures copied is returned. This is always 1.
perfstat_partition_config
(Perfstat.perfstat_id_t
Reserved for future use, must be NULL
name
,
Perfstat.perfstat_partition_config_t
Populated with structure
config
,
int
Should be set to sizeof(perfstat_partition_config_t)
sizeof_struct
,
int
Reserved for future use, must be set to 0 or 1
desired_number
)

Retrieves total memory-related metrics

public int

Returns:

The return value is -1 in case of errors. Otherwise, the number of structures copied is returned.
perfstat_process
(Perfstat.perfstat_id_t
Structure containing empty string when collecting all process stats, or null to count processes
name
,
Perfstat.perfstat_process_t[]
Populated with structure
procs
,
int
Should be set to sizeof(perfstat_process_t)
sizeof_struct
,
int
Set to 0 to count processes, set to number of processes to return otherwise
desired_number
)

Retrieves process-related metrics

public int

Returns:

The return value is -1 in case of errors. Otherwise, the number of structures copied is returned.
perfstat_protocol
(Perfstat.perfstat_id_t
Structure containing empty string when collecting all protocol stats, or null to count stats
name
,
Perfstat.perfstat_protocol_t[]
Populated with structures, or null to count protocols
protocols
,
int
Should be set to sizeof(perfstat_protocol_t)
sizeof_struct
,
int
Set to 0 to count protocols, set to number of protocols to return otherwise
desired_number
)

Retrieves protocol data