java.lang.Object
de.iip_ecosphere.platform.services.environment.metricsProvider.LogRunnable
All Implemented Interfaces:
Runnable

public class LogRunnable extends Object implements Runnable
A simple log runnable to log experimental results.
Author:
Holger Eichelberger, SSE
  • Field Details

  • Constructor Details

    • LogRunnable

      public LogRunnable(File file) throws IOException
      Creates a logging runnable for the given file.
      Parameters:
      file - the file
      Throws:
      IOException - if the log file cannot be created
  • Method Details

    • run

      public void run()
      Specified by:
      run in interface Runnable
    • log

      public void log(String activity, long duration)
      Logs an activity.
      Parameters:
      activity - the activity name
      duration - the duration
    • stop

      public void stop()
      Stops the runnable.