text: /***************************************************************
   *
   * Copyright (C) 1990-2007, Condor Team, Computer Sciences Department,
   * University of Wisconsin-Madison, WI.
   * 
   * Licensed under the Apache License, Version 2.0 (the "License"); you
   * may not use this file except in compliance with the License.  You may
   * obtain a copy of the License at
   * 
   *    http://www.apache.org/licenses/LICENSE-2.0
   * 
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   *
   ***************************************************************/
  
  
  #ifndef JOB_REPORT_H
  #define JOB_REPORT_H
  
  #include "condor_common.h"
  #include "condor_classad.h"
  #include "condor_attributes.h"
  #include "condor_qmgr.h"
  #include "metric_units.h"
  #include "structproc.h"
  
  /*
  This module serves to store and recall job summary info that will be
  given back to the user, either by text or through a ClassAd.
  
  The job_report_store_* functions record information
  about the job as it is available.
  
  The job_report_display_* functions produce text output according to the
  stored data.
  
  The job_report_update_queue function transmits the same stored data
  to the currently open ClassAd Q.
  */
  
  #define JOB_REPORT_RECORD_MAX 2048
  
  int  job_report_store_call( int call );
  int  job_report_store_error( const char *message, const char * context );
  void job_report_store_file_info( char *name, long long oc, long long rc, long long wc, long long sc, long long rb, long long wb );
  
  void job_report_display_calls( FILE *f );
  void job_report_display_errors( FILE *f );
  void job_report_display_file_info( FILE *f, int total_time );
  
  void job_report_update_queue( PROC *proc );
  
  #endif
  