mondrian.server
Class Locus

java.lang.Object
  extended by mondrian.server.Locus
Direct Known Subclasses:
SqlStatement.StatementLocus

public class Locus
extends Object

Point of execution from which a service is invoked.


Nested Class Summary
static interface Locus.Action<T>
           
 
Field Summary
 String component
           
 Execution execution
           
 String message
           
 
Constructor Summary
Locus(Execution execution, String component, String message)
          Creates a Locus.
 
Method Summary
static
<T> T
execute(Execution execution, String component, Locus.Action<T> action)
           
static
<T> T
execute(RolapConnection connection, String component, Locus.Action<T> action)
           
 MondrianServer getServer()
           
static Locus peek()
           
static void pop(Locus locus)
           
static void push(Locus locus)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

execution

public final Execution execution

message

public final String message

component

public final String component
Constructor Detail

Locus

public Locus(Execution execution,
             String component,
             String message)
Creates a Locus.

Parameters:
execution - Execution context
component - Description of a the component executing the query, generally a method name, e.g. "SqlTupleReader.readTuples"
message - Description of the purpose of this statement, to be printed if there is an error
Method Detail

pop

public static void pop(Locus locus)

push

public static void push(Locus locus)

peek

public static Locus peek()

execute

public static <T> T execute(RolapConnection connection,
                            String component,
                            Locus.Action<T> action)

execute

public static <T> T execute(Execution execution,
                            String component,
                            Locus.Action<T> action)

getServer

public final MondrianServer getServer()

Get Mondrian at SourceForge.net. Fast, secure and free Open Source software downloads