public class ACpuUtilizationMeasurer extends Object implements AScalarMeasurer
AScalarMeasurer.EvaluatedValue| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_ALL_USED |
static String |
KEY_AVAILABLE |
static String |
KEY_MEMENTO |
static String |
KEY_PREFIX |
static String |
KEY_PREFIX_MHZ |
static String |
KEY_SELF_KERNEL |
static com.ajjpj.afoundation.io.AFile |
PROC_CPUINFO_FILE |
static com.ajjpj.afoundation.io.AFile |
PROC_STAT_FILE |
static com.ajjpj.afoundation.io.AFile |
PROC_STAT_FILE_MACOS_ |
KEY_CONFIGURATION_ACTIVE, KEY_CONFIGURATION_HIGH, KEY_CONFIGURATION_MEDIUM| Constructor and Description |
|---|
ACpuUtilizationMeasurer() |
| Modifier and Type | Method and Description |
|---|---|
void |
contributeMeasurements(Map<String,AScalarDataPoint> data,
long timestamp,
Map<String,Object> mementos) |
List<String> |
getConfigurationParameters() |
com.ajjpj.afoundation.collection.immutable.AOption<Long> |
getTimeoutInMilliSeconds() |
void |
prepareMeasurements(Map<String,Object> mementos) |
void |
shutdown() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDescriptionOfMeasurement, getGroupnameOfMeasurement, isResponsibleForMeasurementpublic static final com.ajjpj.afoundation.io.AFile PROC_STAT_FILE
public static final com.ajjpj.afoundation.io.AFile PROC_STAT_FILE_MACOS_
public static final com.ajjpj.afoundation.io.AFile PROC_CPUINFO_FILE
public static final String KEY_PREFIX
public static final String KEY_MEMENTO
public static final String KEY_AVAILABLE
public static final String KEY_ALL_USED
public static final String KEY_PREFIX_MHZ
public static final String KEY_SELF_KERNEL
public void prepareMeasurements(Map<String,Object> mementos) throws IOException
prepareMeasurements in interface AScalarMeasurerIOExceptionpublic void contributeMeasurements(Map<String,AScalarDataPoint> data, long timestamp, Map<String,Object> mementos) throws IOException
contributeMeasurements in interface AScalarMeasurerIOExceptionpublic void shutdown()
throws Exception
shutdown in interface AShutdownableExceptionpublic com.ajjpj.afoundation.collection.immutable.AOption<Long> getTimeoutInMilliSeconds()
getTimeoutInMilliSeconds in interface AScalarMeasurerpublic List<String> getConfigurationParameters()
getConfigurationParameters in interface AScalarMeasurerCopyright © 2017. All rights reserved.