eu.planets_project.ifr.core.techreg.properties
Class ServiceProperties
java.lang.Object
eu.planets_project.ifr.core.techreg.properties.ServiceProperties
public class ServiceProperties
- extends java.lang.Object
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ENV_JAVA_SYS_PROP
public static final java.net.URI ENV_JAVA_SYS_PROP
- A standard environment identifier for the Java System.getProperties.
JAVA_MEM_TOTAL_PROP
public static final java.net.URI JAVA_MEM_TOTAL_PROP
SERVICE_WALLCLOCK_PROP
public static final java.net.URI SERVICE_WALLCLOCK_PROP
- A standard Planets identifier for the wall-clock time a process takes to execute.
SERVICE_WALLCLOCK_TRANSFER_PROP
public static final java.net.URI SERVICE_WALLCLOCK_TRANSFER_PROP
SERVICE_WALLCLOCK_LOAD_PROP
public static final java.net.URI SERVICE_WALLCLOCK_LOAD_PROP
SERVICE_CPU_TIME_PROP
public static final java.net.URI SERVICE_CPU_TIME_PROP
SERVICE_USER_TIME_PROP
public static final java.net.URI SERVICE_USER_TIME_PROP
SERVICE_COMPILE_TIME_PROP
public static final java.net.URI SERVICE_COMPILE_TIME_PROP
SERVICE_CLASSES_LOADED_PROP
public static final java.net.URI SERVICE_CLASSES_LOADED_PROP
SERVICE_PEAK_HEAP_PROP
public static final java.net.URI SERVICE_PEAK_HEAP_PROP
SERVICE_PEAK_NONHEAP_PROP
public static final java.net.URI SERVICE_PEAK_NONHEAP_PROP
SERVICE_TOOL_RUNNER_TIME_PROP
public static final java.net.URI SERVICE_TOOL_RUNNER_TIME_PROP
ServiceProperties
public ServiceProperties()
listAllProperties
public static java.util.List<Property> listAllProperties()
- Returns:
- A list of all known service properties, including some values.
main
public static void main(java.lang.String[] argv)
- Parameters:
argv
-
createWallclockTimeProperty
public static Property createWallclockTimeProperty(double elapsedMillis)
- Parameters:
elapsedMillis
- time in milliseconds
- Returns:
- A Property for this value.
createWallclockTransferTimeProperty
public static Property createWallclockTransferTimeProperty(double elapsedMillis)
- Parameters:
elapsedMillis
-
- Returns:
- A property representing the given elapsed transfer time
createWallclockLoadTimeProperty
public static Property createWallclockLoadTimeProperty(double elapsedMillis)
- Parameters:
elapsedMillis
-
- Returns:
- A property representing the given elapsed load time
createCpuTimeProperty
public static Property createCpuTimeProperty(double elapsedMillis)
- Parameters:
elapsedMillis
-
createUserTimeProperty
public static Property createUserTimeProperty(double elapsedMillis)
- Parameters:
elapsedMillis
-
createCompilationTimeProperty
public static Property createCompilationTimeProperty(double elapsedMillis)
- Parameters:
elapsedMillis
-
createClassesLoadedProperty
public static Property createClassesLoadedProperty(long loaded)
createTotalJavaMemoryProperty
public static Property createTotalJavaMemoryProperty(long bytes)
createToolRunnerTimeProperty
public static Property createToolRunnerTimeProperty(double elapsedMillis)
createPeakHeapMemoryProperty
public static Property createPeakHeapMemoryProperty(long bytes)
- Parameters:
bytes
-
createPeakNonHeapMemoryProperty
public static Property createPeakNonHeapMemoryProperty(long bytes)
- Parameters:
bytes
-
collectSystemProperties
public static java.util.List<Property> collectSystemProperties()
- TODO Decide which of these to store.
- Returns:
- A list of useful system properties, stored in standard property definitions.
printProperties
public static void printProperties(java.io.PrintStream ps,
java.util.List<Property> props)
- Util to print out a list properties.
- Parameters:
ps
- props
-
Copyright © 2007-2010 The Planets Consortium. All Rights Reserved.