Class FTSLocalLogViewer

Description

This class allows to read a log file located on a local or remote file system.

Located in /ftslocallogviewer.php (line 41)

FTSLogViewer
   |
   --FTSLocalLogViewer
Method Summary
 FTSLocalLogViewer __construct ([string $root = '/var/tmp/'])
 Array retrieveLog ()
Variables

Inherited Variables

Inherited from FTSLogViewer

FTSLogViewer::$log
FTSLogViewer::$root
Methods
Constructor __construct (line 47)

Constructor

  • access: public
FTSLocalLogViewer __construct ([string $root = '/var/tmp/'])
  • string $root: : the root path of the file to read ('/var/tmp/' by default)

Redefinition of:
FTSLogViewer::__construct()
Constructor
retrieveLog (line 67)

This method reads the log in a file located in the local file system

The root directory <ROOT> is defined in the configuration file. It is "/var/tmp" by default The relative log file will be:

  • if transfer is in state 'Processing': "<ROOT>/glite-url-copy-edguser/<IDENTIFIER>.log"
  • if transfer is in state 'Aborted': "<ROOT>/glite-url-copy-edguser/<CHANNEL>failed/<IDENTIFIER>.log"
  • otherwise: "<ROOT>/glite-url-copy-edguser/<CHANNEL><STATE_IN_LOWERCASE>/<IDENTIFIER>.log"
Or the log file can be found in an archive named like:
  • if transfer is in state 'Aborted' or 'Failed': "<ROOT>/transfer_failed/glite-[url|srm]-copy-<CHANNEL>failed-<DATEHOUR>-\d+.tar.gz"
  • if transfer is in state 'Completed': <ROOT>/transfer_completed/glite-[url|srm]-copy-completed-<DATEHOUR>-\d+.tar.gz"

  • return: : an array with each row containg a line of the log file
  • see: FTSLog
  • access: public
Array retrieveLog ()

Redefinition of:
FTSLogViewer::retrieveLog()
Retrives the log as an array

Inherited Methods

Inherited From FTSLogViewer

 FTSLogViewer::__construct()
 FTSLogViewer::getLog()
 FTSLogViewer::retrieveLog()

Documentation generated on Tue, 09 Nov 2010 10:21:10 +0100 by phpDocumentor 1.4.3