Package com.sun.jna.platform.unix.aix
Interface Perfstat
- 
- All Superinterfaces:
- Library
 
 public interface Perfstat extends Library 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 Class SummaryNested Classes Modifier and Type Interface Description static classPerfstat.perfstat_cpu_tstatic classPerfstat.perfstat_cpu_total_tstatic classPerfstat.perfstat_disk_tstatic classPerfstat.perfstat_id_tstatic classPerfstat.perfstat_memory_total_tstatic classPerfstat.perfstat_netinterface_tstatic classPerfstat.perfstat_partition_config_tstatic classPerfstat.perfstat_process_tstatic classPerfstat.perfstat_protocol_tstatic classPerfstat.perfstat_value_t- 
Nested classes/interfaces inherited from interface com.sun.jna.LibraryLibrary.Handler
 
- 
 - 
Field SummaryFields Modifier and Type Field Description static intIDENTIFIER_LENGTHstatic PerfstatINSTANCE- 
Fields inherited from interface com.sun.jna.LibraryOPTION_ALLOW_OBJECTS, OPTION_CALLING_CONVENTION, OPTION_CLASSLOADER, OPTION_FUNCTION_MAPPER, OPTION_INVOCATION_MAPPER, OPTION_OPEN_FLAGS, OPTION_STRING_ENCODING, OPTION_STRUCTURE_ALIGNMENT, OPTION_TYPE_MAPPER
 
- 
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description intperfstat_cpu(Perfstat.perfstat_id_t name, Perfstat.perfstat_cpu_t[] cpu, int sizeof_struct, int desired_number)Retrieves individual processor usage metricsintperfstat_cpu_total(Perfstat.perfstat_id_t name, Perfstat.perfstat_cpu_total_t cpu, int sizeof_struct, int desired_number)Retrieves total processor usage metricsintperfstat_disk(Perfstat.perfstat_id_t name, Perfstat.perfstat_disk_t[] disks, int sizeof_struct, int desired_number)Retrieves disk statisticsintperfstat_memory_total(Perfstat.perfstat_id_t name, Perfstat.perfstat_memory_total_t mem, int sizeof_struct, int desired_number)Retrieves total memory-related metricsintperfstat_netinterface(Perfstat.perfstat_id_t name, Perfstat.perfstat_netinterface_t[] netints, int sizeof_struct, int desired_number)Retrieves network interfacesintperfstat_partition_config(Perfstat.perfstat_id_t name, Perfstat.perfstat_partition_config_t config, int sizeof_struct, int desired_number)Retrieves total memory-related metricsintperfstat_process(Perfstat.perfstat_id_t name, Perfstat.perfstat_process_t[] procs, int sizeof_struct, int desired_number)Retrieves process-related metricsintperfstat_protocol(Perfstat.perfstat_id_t name, Perfstat.perfstat_protocol_t[] protocols, int sizeof_struct, int desired_number)Retrieves protocol data
 
- 
- 
- 
Field Detail- 
INSTANCEstatic final Perfstat INSTANCE 
 - 
IDENTIFIER_LENGTHstatic final int IDENTIFIER_LENGTH - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
perfstat_cpu_totalint perfstat_cpu_total(Perfstat.perfstat_id_t name, Perfstat.perfstat_cpu_total_t cpu, int sizeof_struct, int desired_number) Retrieves total processor usage metrics- Parameters:
- name- Reserved for future use, must be NULL
- cpu- Populated with structure
- sizeof_struct- Should be set to sizeof(perfstat_cpu_total_t)
- desired_number- Reserved for future use, must be set to 0 or 1
- Returns:
- The return value is -1 in case of errors. Otherwise, the number of structures copied is returned. This is always 1.
 
 - 
perfstat_cpuint perfstat_cpu(Perfstat.perfstat_id_t name, Perfstat.perfstat_cpu_t[] cpu, int sizeof_struct, int desired_number) Retrieves individual processor usage metrics- Parameters:
- name- Structure containing empty string when collecting all cpu stats, or null to count CPUs
- cpu- Populated with structures, or null to count CPUs
- sizeof_struct- Should be set to sizeof(perfstat_cpu_t)
- desired_number- Set to 0 to count CPUs, set to number of cpus to return otherwise
- Returns:
- The return value is -1 in case of errors. Otherwise, the number of structures copied is returned.
 
 - 
perfstat_memory_totalint perfstat_memory_total(Perfstat.perfstat_id_t name, Perfstat.perfstat_memory_total_t mem, int sizeof_struct, int desired_number) Retrieves total memory-related metrics- Parameters:
- name- Reserved for future use, must be NULL
- mem- Populated with structure
- sizeof_struct- Should be set to sizeof(perfstat_memory_total_t)
- desired_number- Reserved for future use, must be set to 0 or 1
- Returns:
- The return value is -1 in case of errors. Otherwise, the number of structures copied is returned. This is always 1.
 
 - 
perfstat_processint perfstat_process(Perfstat.perfstat_id_t name, Perfstat.perfstat_process_t[] procs, int sizeof_struct, int desired_number) Retrieves process-related metrics- Parameters:
- name- Structure containing empty string when collecting all process stats, or null to count processes
- procs- Populated with structure
- sizeof_struct- Should be set to sizeof(perfstat_process_t)
- desired_number- Set to 0 to count processes, set to number of processes to return otherwise
- Returns:
- The return value is -1 in case of errors. Otherwise, the number of structures copied is returned.
 
 - 
perfstat_diskint perfstat_disk(Perfstat.perfstat_id_t name, Perfstat.perfstat_disk_t[] disks, int sizeof_struct, int desired_number) Retrieves disk statistics- Parameters:
- name- Structure containing empty string when collecting all disk stats, or null to count block disks
- disks- Populated with structures, or null to count disks
- sizeof_struct- Should be set to sizeof(perfstat_disk_t)
- desired_number- Set to 0 to count disks, set to number of disks to return otherwise
- Returns:
- The return value is -1 in case of errors. Otherwise, the number of structures copied is returned.
 
 - 
perfstat_partition_configint perfstat_partition_config(Perfstat.perfstat_id_t name, Perfstat.perfstat_partition_config_t config, int sizeof_struct, int desired_number) Retrieves total memory-related metrics- Parameters:
- name- Reserved for future use, must be NULL
- config- Populated with structure
- sizeof_struct- Should be set to sizeof(perfstat_partition_config_t)
- desired_number- Reserved for future use, must be set to 0 or 1
- Returns:
- The return value is -1 in case of errors. Otherwise, the number of structures copied is returned. This is always 1.
 
 - 
perfstat_netinterfaceint perfstat_netinterface(Perfstat.perfstat_id_t name, Perfstat.perfstat_netinterface_t[] netints, int sizeof_struct, int desired_number) Retrieves network interfaces- Parameters:
- name- Structure containing empty string when collecting all interface stats, or null to count interfaces
- netints- Populated with structures, or null to count interfaces
- sizeof_struct- Should be set to sizeof(perfstat_netinterface_t)
- desired_number- Set to 0 to count network interfaces, set to number of interfaces to return otherwise
- Returns:
- The return value is -1 in case of errors. Otherwise, the number of structures copied is returned.
 
 - 
perfstat_protocolint perfstat_protocol(Perfstat.perfstat_id_t name, Perfstat.perfstat_protocol_t[] protocols, int sizeof_struct, int desired_number) Retrieves protocol data- Parameters:
- name- Structure containing empty string when collecting all protocol stats, or null to count stats
- protocols- Populated with structures, or null to count protocols
- sizeof_struct- Should be set to sizeof(perfstat_protocol_t)
- desired_number- Set to 0 to count protocols, set to number of protocols to return otherwise
- Returns:
- The return value is -1 in case of errors. Otherwise, the number of structures copied is returned.
 
 
- 
 
-