Package tod.core.database.browser

Examples of tod.core.database.browser.ILogBrowser.createBrowser()


        this.processManager.getMaster().flush();
        ILogBrowser browser = this.todSession.getLogBrowser();
       
        if (thread == null) {
            return browser.createBrowser().clone();
        }
       
        // Create a thread filter.
        IThreadInfo todThread = this.getTODSession().getThreadTracker().getByReference(thread).getTODThreadReference();
        if (todThread == null) {
View Full Code Here


            filter = browser.createIntersectionFilter(filter, tmpFilter);
        }
        //IEventFilter filter2 = browser.createUnionFilter(bcf, vwf, fwf);
        //filter = browser.createIntersectionFilter(filter, filter2);

        IEventBrowser clone = browser.createBrowser(filter).clone();
        return clone;
    }

    @Override
    public List<MethodInfo> getCallStack(ILogEvent event, boolean isStepInto, boolean isForward, boolean isLastEvent) {
View Full Code Here

        IThreadInfo todThread = this.getTODSession().getThreadTracker().getByReference(thread).getTODThreadReference();
        if (todThread == null) {
            return 0;
        }
        IEventFilter filter = browser.createThreadFilter(todThread);
        IEventBrowser events = browser.createBrowser(filter);
        return events.getEventCount();
    }

    @Override
    public IEventBrowser getChildrenBrowser(ICallerSideEvent parent) {
View Full Code Here

        IEventFilter depth1 = logBrowser.createDepthFilter(parent.getDepth());
        IEventFilter depth2 = logBrowser.createDepthFilter(parent.getDepth() + 1);
        IEventFilter depthFilter = logBrowser.createUnionFilter(depth1, depth2);
        IEventFilter childFilter = logBrowser.createIntersectionFilter(depthFilter,
                logBrowser.createThreadFilter(parent.getThread()));
        IEventBrowser events = logBrowser.createBrowser(childFilter);
        events.setPreviousEvent(parent);

        if (!events.hasNext()) {
            return events;
        }
View Full Code Here

    public IEventBrowser getStepIntoChildrenBrowser(ICallerSideEvent parent) {
        ILogBrowser logBrowser = this.todSession.getLogBrowser();
        IEventFilter depthFilter = logBrowser.createDepthFilter(parent.getDepth() + 1);
        IEventFilter childFilter = logBrowser.createIntersectionFilter(depthFilter,
                logBrowser.createThreadFilter(parent.getThread()));
        IEventBrowser events = logBrowser.createBrowser(childFilter);
        events.setPreviousEvent(parent);

        if (!events.hasNext()) {
            return events;
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.