From: Emmanuel P. <emm...@in...> - 2012-06-21 20:33:48
|
zgrviewer was not designed to let you instantiate multiple views like this. Technically speaking it is possible to instantiate multiple views in zvtm; we do that all the time actually. But the zgrviewer code was not written with this in mind. Which means that there might be stuff in the code like static methods/vars that make the code misbehave. I know of several projects that have instantiated multiple zgrviewer in separate JVMs, and that works fine (there is no reason for it not to work). But multiple instances within the same JVM, I make no guarantee. Would it be possible for you to send a screencast (video) of the behavior you're experiencing? -- Emmanuel Pietriga INRIA Saclay - In Situ http://pages.saclay.inria.fr/emmanuel.pietriga On 21 juin 2012, at 04:27, Mrunal Gawade wrote: > Thank you very much for the reply. > > Sorry for my late reply. I was busy with some other things. I will explain you the functionality behind the need first. The database server generates dot files for a query operator flow, before actual query execution begins. A single query plan based on its design, could generate multiple dot files as query executes. In order to do the online tracing, server first sends all dot files first on the trace, and then when the query execution begins, actual query instruction trace is sent, which is mapped to dot files and in turn to the graph for rendering. > > Each dot file is rendered in a separate instance of zgrviewer as below. I maintain a arrayList of zgrviewer objects created once a dot file is received in trace as explained above. I maintain similarly separate array lists for each trace part corresponding to each dot file for mapping dot to trace. The below piece explains the zgrviewer object creation and addition in arrayList. > > I am running this in a single JVM process. > > if(index>0) > { > arrZgrViewer.add(new ZGRViewer(true)); > > // indexing starts from "index-1" as otherwise index 0 will always stay empty > arrZgrViewer.get(index-1).dotMngr.load(dotFile, DOTManager.DOT_PROGRAM, false, true); > arrZgrViewer.get(index-1).parseMngr.setupDisplay(dotFile); > > }else if(index==0) > { > dotMngr.load(dotFile, DOTManager.DOT_PROGRAM, false, true); > setupDisplay(dotFile); > } > > I chose this design, as initially when I started this, I developed entire code base as if there was a single dot file that needed to be rendered. However, as the requirements changed, and became more clear, multiple dot files had to be detected, parsed and rendered online. Since I already had entire codebase ready, and all I needed was to have multiple windows, where I could parallelly render multiple dot files, I decided to use the above approach as it kept my entire code base intact, and scalability was achieved using multiple instances of zgrviewer instances with state maintenance across multiple classes, which I did by keeping arrayList for multiple objects. > > > Regards, > Mrunal > > On Mon, Jun 18, 2012 at 1:15 AM, Emmanuel Pietriga <emm...@in...> wrote: > How are you creating those different mainView instances? Are they running as part of the same JVM process? Or are they running in separate JVMs? > > -- > Emmanuel Pietriga > INRIA Saclay - In Situ > http://pages.saclay.inria.fr/emmanuel.pietriga > > On 2 juin 2012, at 09:49, Mrunal Gawade wrote: > > > Hello, > > > > I am creating multiple instances of ZGRviewer mainView (frameView) to render multiple graphs on line. > > > > In a single mainView (frameView) version I do not get any flickr or blackening of the view. However, as soon as I create two instances of the mainView and two graphs are rendered online to highlight each node as it is traversed, there is huge flickr and at the end the view blackens out. If I take curson on it, there is flickr and I can for a split second see the original white background with colored nodes, and then it again goes black. > > > > What could be this problem and how to fix it? > > > > > > thanks, > > Mrunal > > ------------------------------------------------------------------------------ > > Live Security Virtual Conference > > Exclusive live event will cover all the ways today's security and > > threat landscape has changed and how IT managers can respond. Discussions > > will include endpoint security, mobile security and the latest in malware > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/_______________________________________________ > > zvtm-devel mailing list > > zvt...@li... > > https://lists.sourceforge.net/lists/listinfo/zvtm-devel > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > zvtm-devel mailing list > zvt...@li... > https://lists.sourceforge.net/lists/listinfo/zvtm-devel > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/_______________________________________________ > zvtm-devel mailing list > zvt...@li... > https://lists.sourceforge.net/lists/listinfo/zvtm-devel |