Package mondrian.server

Examples of mondrian.server.Locus$Action


                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

            } while (phase());

            evaluator.restore(savepoint);

            // Get value for each Cell
            final Locus locus = new Locus(execution, null, "Loading cells");
            Locus.push(locus);
            try {
                executeBody(slicerEvaluator, query, new int[axes.length]);
            } finally {
                Locus.pop(locus);
View Full Code Here

                "coordinates should have dimension " + point.size());
        }

        for (int i = 0; i < pos.length; i++) {
            if (positionsHighCardinality.get(i)) {
                final Locus locus = new Locus(execution, null, "Loading cells");
                Locus.push(locus);
                try {
                    executeBody(evaluator, statement.getQuery(), pos);
                } finally {
                    Locus.pop(locus);
View Full Code Here

                if (connection == null) {
                    throw new IllegalArgumentException("Connection required");
                }
                execution = new Execution(connection.getInternalStatement(), 0);
            }
            final Locus locus = new Locus(
                execution,
                "CacheControlImpl.execute",
                "when modifying the member cache.");
            Locus.push(locus);
            try {
View Full Code Here

        final String sql = buf.toString();
        SqlStatement stmt =
            RolapUtil.executeQuery(
                dataSource,
                sql,
                new Locus(
                    execution,
                    "SqlStatisticsProvider.getTableCardinality",
                    "Reading row count from table "
                    + Arrays.asList(catalog, schema, table)));
        try {
View Full Code Here

        final String countSql = buf.toString();
        SqlStatement stmt =
            RolapUtil.executeQuery(
                dataSource,
                countSql,
                new Locus(
                    execution,
                    "SqlStatisticsProvider.getQueryCardinality",
                    "Reading row count from query [" + sql + "]"));
        try {
            ResultSet resultSet = stmt.getResultSet();
View Full Code Here

TOP

Related Classes of mondrian.server.Locus$Action

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.