eu.planets_project.ifr.core.techreg.properties
Class ServiceProperties

java.lang.Object
  extended by eu.planets_project.ifr.core.techreg.properties.ServiceProperties

public class ServiceProperties
extends java.lang.Object


Field Summary
static java.net.URI ENV_JAVA_SYS_PROP
          A standard environment identifier for the Java System.getProperties.
static java.net.URI JAVA_MEM_TOTAL_PROP
           
static java.net.URI SERVICE_CLASSES_LOADED_PROP
           
static java.net.URI SERVICE_COMPILE_TIME_PROP
           
static java.net.URI SERVICE_CPU_TIME_PROP
           
static java.net.URI SERVICE_PEAK_HEAP_PROP
           
static java.net.URI SERVICE_PEAK_NONHEAP_PROP
           
static java.net.URI SERVICE_TOOL_RUNNER_TIME_PROP
           
static java.net.URI SERVICE_USER_TIME_PROP
           
static java.net.URI SERVICE_WALLCLOCK_LOAD_PROP
           
static java.net.URI SERVICE_WALLCLOCK_PROP
          A standard Planets identifier for the wall-clock time a process takes to execute.
static java.net.URI SERVICE_WALLCLOCK_TRANSFER_PROP
           
 
Constructor Summary
ServiceProperties()
           
 
Method Summary
static java.util.List<Property> collectSystemProperties()
          TODO Decide which of these to store.
static Property createClassesLoadedProperty(long loaded)
           
static Property createCompilationTimeProperty(double elapsedMillis)
           
static Property createCpuTimeProperty(double elapsedMillis)
           
static Property createPeakHeapMemoryProperty(long bytes)
           
static Property createPeakNonHeapMemoryProperty(long bytes)
           
static Property createToolRunnerTimeProperty(double elapsedMillis)
           
static Property createTotalJavaMemoryProperty(long bytes)
           
static Property createUserTimeProperty(double elapsedMillis)
           
static Property createWallclockLoadTimeProperty(double elapsedMillis)
           
static Property createWallclockTimeProperty(double elapsedMillis)
           
static Property createWallclockTransferTimeProperty(double elapsedMillis)
           
static java.util.List<Property> listAllProperties()
           
static void main(java.lang.String[] argv)
           
static void printProperties(java.io.PrintStream ps, java.util.List<Property> props)
          Util to print out a list properties.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

ServiceProperties

public ServiceProperties()
Method Detail

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.