Bug 1031432

Summary: Consider lazy loading of ResourceContext.dataDirectory and .temporaryDirectory
Product: [Other] RHQ Project Reporter: Heiko W. Rupp <hrupp>
Component: Plugin Container, PerformanceAssignee: Heiko W. Rupp <hrupp>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Foley <mfoley>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.9CC: hrupp
Target Milestone: ---   
Target Release: RHQ 4.10   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-04-23 12:29:26 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1069642    
Attachments:
Description Flags
Screenshot none

Description Heiko W. Rupp 2013-11-17 21:11:03 UTC
The ResourceContext allocates two file objects backed by a String for the path for each Resource no matter if that resource actually uses them or not.

We should either lazily provide those entries (i.e. initialize on first read access) or get them from a common place like the ResourceContainer of the root server type.

Comment 1 Heiko W. Rupp 2013-12-02 20:53:47 UTC
Created attachment 831774 [details]
Screenshot

Comment 2 Heiko W. Rupp 2014-02-05 09:57:23 UTC
master 2e8dcfc

Comment 3 Heiko W. Rupp 2014-04-23 12:29:26 UTC
Bulk closing of 4.10 issues.

If an issue is not solved for you, please open a new BZ (or clone the existing one) with a version designator of 4.10.