public interface HasSupportedPerformanceDataType extends ExecutesMethod
Modifier and Type | Method and Description |
---|---|
default java.util.List<java.util.List<java.lang.Object>> |
getPerformanceData(java.lang.String packageName,
java.lang.String dataType,
int dataReadTimeout)
returns the resource usage information of the application. the resource is one of the system state
which means cpu, memory, network traffic, and battery.
|
default java.util.List<java.lang.String> |
getSupportedPerformanceDataTypes()
returns the information type of the system state which is supported to read
as like cpu, memory, network traffic, and battery.
|
execute, execute
default java.util.List<java.lang.String> getSupportedPerformanceDataTypes()
default java.util.List<java.util.List<java.lang.Object>> getPerformanceData(java.lang.String packageName, java.lang.String dataType, int dataReadTimeout) throws java.lang.Exception
packageName
- the package name of the applicationdataType
- the type of system state which wants to read.
It should be one of the supported performance data types,
the return value of the function "getSupportedPerformanceDataTypes"dataReadTimeout
- the number of attempts to readjava.lang.Exception
- if the performance data type is not supported, thows Error