edu.sdsc.inca.depot.util
Class DowntimeFilter

java.lang.Object
  extended by edu.sdsc.inca.depot.util.ReportFilter
      extended by edu.sdsc.inca.depot.util.DowntimeFilter

public class DowntimeFilter
extends ReportFilter

Prefixes error messages in depot reports with "DOWNTIME: +optionalString+: " if the resource the report ran on is in downtime. Resources are determined to be in downtime if they are listed in a downtime properties file. In order to reduce overhead, the downtime properties file is retrieved and cached at a refresh interval in the getDowntimes() method instead of being retrieved for each filter instance.

Author:
Kate Ericson <kericson@sdsc.edu>, Shava Smallen <ssmallen@sdsc.edu>

Field Summary
 
Fields inherited from class edu.sdsc.inca.depot.util.ReportFilter
context, resource, stderr, stdout, sysusage
 
Constructor Summary
DowntimeFilter()
           
 
Method Summary
 java.lang.String getStdout()
          Writes new report with modified error message to depot if resource is down
 
Methods inherited from class edu.sdsc.inca.depot.util.ReportFilter
getContext, getResource, getStderr, getSysusage, setContext, setResource, setStderr, setStdout, setSysusage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DowntimeFilter

public DowntimeFilter()
Method Detail

getStdout

public java.lang.String getStdout()
Writes new report with modified error message to depot if resource is down

Overrides:
getStdout in class ReportFilter
Returns:
string with depot report (reporter Stdout)