Package mondrian.server

Examples of mondrian.server.Locus


        String sql = makeLevelMemberCountSql(level, dataSource, mustCount);
        final SqlStatement stmt =
            RolapUtil.executeQuery(
                dataSource,
                sql,
                new Locus(
                    Locus.peek().execution,
                    "SqlMemberSource.getLevelMemberCount",
                    "while counting members of level '" + level));
        try {
            ResultSet resultSet = stmt.getResultSet();
View Full Code Here


                // segment. First thing we do is to add it to the index.
                // Then we insert the segment body into the SlotFuture.
                // This has to be done on the SegmentCacheManager's
                // Actor thread to ensure thread safety.
                if (!MondrianProperties.instance().DisableCaching.get()) {
                    final Locus locus = Locus.peek();
                    cacheMgr.execute(
                        new SegmentCacheManager.Command<Void>() {
                            public Void call() throws Exception {
                                SegmentCacheIndex index =
                                    cacheMgr.getIndexRegistry()
View Full Code Here

            DataSource dataSource = getAggStar().getStar().getDataSource();
            SqlStatement stmt =
                RolapUtil.executeQuery(
                    dataSource,
                    query.toString(),
                    new Locus(
                        new Execution(
                            star.getSchema().getInternalConnection()
                                .getInternalStatement(),
                            0),
                        "AggStar.FactTable.makeNumberOfRows",
View Full Code Here

    {
        RolapStar star = groupingSetsList.getStar();
        Pair<String, List<SqlStatement.Type>> pair =
            AggregationManager.generateSql(
                groupingSetsList, compoundPredicateList);
        final Locus locus =
            new SqlStatement.StatementLocus(
                Locus.peek().execution,
                "Segment.load",
                "Error while loading segment",
                SqlStatementEvent.Purpose.CELL_SEGMENT,
View Full Code Here

                    1000);
            final AggregationManager aggMgr =
                execution.getMondrianStatement()
                    .getMondrianConnection()
                    .getServer().getAggregationManager();
            final Locus locus =
                new Locus(
                    execution,
                    "BatchTestCase",
                    "BatchTestCase");
            try {
                FastBatchingCellReader fbcr =
View Full Code Here

                Execution.NONE,
                "AsyncCacheListener.handle",
                new Locus.Action<Void>() {
                    public Void execute() {
                        final SegmentCacheManager.Command<Void> command;
                        final Locus locus = Locus.peek();
                        switch (e.getEventType()) {
                        case ENTRY_CREATED:
                            command =
                                new Command<Void>() {
                                    public Void call() {
View Full Code Here

        RolapSchemaPool.instance().clear();

        final RolapConnection conn = (RolapConnection) getConnection();
        final Statement statement = conn.getInternalStatement();
        final Execution execution = new Execution(statement, 0);
        locus = new Locus(execution, getName(), null);
        Locus.push(locus);
    }
View Full Code Here

    public void loadSucceeded(
        RolapStar star,
        SegmentHeader header,
        SegmentBody body)
    {
        final Locus locus = Locus.peek();
        ACTOR.event(
            handler,
            new SegmentLoadSucceededEvent(
                System.currentTimeMillis(),
                locus.getServer().getMonitor(),
                locus.getServer().getId(),
                locus.execution.getMondrianStatement()
                    .getMondrianConnection().getId(),
                locus.execution.getMondrianStatement().getId(),
                locus.execution.getId(),
                star,
View Full Code Here

    public void loadFailed(
        RolapStar star,
        SegmentHeader header,
        Throwable throwable)
    {
        final Locus locus = Locus.peek();
        ACTOR.event(
            handler,
            new SegmentLoadFailedEvent(
                System.currentTimeMillis(),
                locus.getServer().getMonitor(),
                locus.getServer().getId(),
                locus.execution.getMondrianStatement()
                    .getMondrianConnection().getId(),
                locus.execution.getMondrianStatement().getId(),
                locus.execution.getId(),
                star,
View Full Code Here

     */
    public void remove(
        RolapStar star,
        SegmentHeader header)
    {
        final Locus locus = Locus.peek();
        ACTOR.event(
            handler,
            new SegmentRemoveEvent(
                System.currentTimeMillis(),
                locus.getServer().getMonitor(),
                locus.getServer().getId(),
                locus.execution.getMondrianStatement()
                    .getMondrianConnection().getId(),
                locus.execution.getMondrianStatement().getId(),
                locus.execution.getId(),
                this,
View Full Code Here

TOP

Related Classes of mondrian.server.Locus

Copyright © 2018 www.massapicom. 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.