Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 79017 - (MON) GLA - provide the log file size for progress indicator
Summary: (MON) GLA - provide the log file size for progress indicator
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Hyades (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 2000
: P1 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Dave Smith CLA
QA Contact:
URL:
Whiteboard: closed460
Keywords:
: 79009 (view as bug list)
Depends on:
Blocks: 67828 74900
  Show dependency tree
 
Reported: 2004-11-18 16:24 EST by Christine Knight CLA
Modified: 2012-02-15 13:48 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christine Knight CLA 2004-11-18 16:24:03 EST
In support of a providing an accurate progress indicator for import, it would 
be good if the GLA is able to provide in advance information about total size 
of a log file or the total number of CBE records within the log file before the 
import starts.

What is needed is a way to "guess" at how many CBEs
 would be produced from a log. If we could know the size of the
 log and the avg size of a record (based on say the first 10
 extracted), we could make a guess. With this info, we could
 use the loader to notify the UI after every x CBE are loaded
 and give the user some progress indication.

We would like to look at this for 3.1 i2 if at all possible.
Comment 1 Dave Smith CLA 2005-01-13 18:04:42 EST
Targetting this for 3.3 i1 because 74900 is targetted for i1.
Comment 2 Dave Smith CLA 2005-02-07 01:41:50 EST
Committed changes to Hyades Head CVS on Feb. 7, 2005

Files changed or added were:

o.e.h.logging.adapter.Adapter
o.e.h.logging.adapter.impl.Component
o.e.h.logging.adapter.impl.Context - comment only
o.e.h.logging.adapter.impl.Controller
o.e.h.logging.adapter.impl.Sensor
o.e.h.logging.adapter.impl.SensorStatus
o.e.h.logging.adapter.sensors.SingleOSFileSensor
o.e.h.logging.adapter.util.BufferedPeriodicReader
o.e.h.logging.adapter.plugin.properties
o.e.h.logging.adapter.config.StaticParserWrapper
o.e.h.logging.adapter.config.outputters.StaticParserOutputter
o.e.h.logging.adapter.config.sensors.StaticParserSensor
o.e.h.logging.commons.Logger
o.e.h.logging.commons.LoggerFactory
o.e.h.logging.parsers.GLALogger
o.e.h.logging.parsers.GLALoggerFactory
o.e.h.logging.parsers.MonitoringParser
o.e.h.logging.parsers.Parser
o.e.h.logging.parsers.RemoteLogParserLoader
o.e.h.logging.parsers.StatusMonitor

Also included changes for feature enhancement 79009 with this commit.
Comment 3 Dave Smith CLA 2005-02-07 01:45:43 EST
*** Bug 79009 has been marked as a duplicate of this bug. ***
Comment 4 Dave Smith CLA 2005-02-07 01:55:13 EST
The changes made for this feature included:

1) Added a SensorStatus class to record the Total Size of the log file and the 
number of bytes read from the file.

2) Added getStatus() method to StaticParserWrapper to return a status string 
indicating the values of the SensorStatus object for the adapter sensor.

3) For the Remote Import case, a Status Monitoring thread was added to the 
RemoteLogParserLoader class to poll the status of the StaticParserWrapper and 
return the status string via the error logging agent.

4) Added support to RemoteLogParserLoader to return the GLA messages via the 
error logging agent so that the UI can display them.
Comment 5 Dave Smith CLA 2005-02-10 00:05:39 EST
Committed changes to TPTP 4.0 Head CVS on February 9, 2005
Comment 6 Paul Slauenwhite CLA 2009-06-30 12:35:42 EDT
As of TPTP 4.6.0, TPTP is in maintenance mode and focusing on improving quality by resolving relevant enhancements/defects and increasing test coverage through test creation, automation, Build Verification Tests (BVTs), and expanded run-time execution. As part of the TPTP Bugzilla housecleaning process (see http://wiki.eclipse.org/Bugzilla_Housecleaning_Processes), this enhancement/defect is verified/closed by the Project Lead since this enhancement/defect has been resolved and unverified for more than 1 year and considered to be fixed. If this enhancement/defect is still unresolved and reproducible in the latest TPTP release (http://www.eclipse.org/tptp/home/downloads/), please re-open.