mondrian.olap4j
Class MondrianInprocProxy

java.lang.Object
  extended by mondrian.olap4j.MondrianInprocProxy
All Implemented Interfaces:
XmlaOlap4jProxy

public class MondrianInprocProxy
extends Object
implements XmlaOlap4jProxy

Proxy which implements XMLA requests by talking to mondrian in-process. This is more convenient to debug than an inter-process request using HTTP.

Author:
jhyde

Constructor Summary
MondrianInprocProxy(Map<String,String> catalogNameUrls, String urlString)
          Creates and initializes a MondrianInprocProxy.
 
Method Summary
 byte[] get(XmlaOlap4jServerInfos infos, String request)
           
 String getEncodingCharsetName()
           
 Future<byte[]> submit(XmlaOlap4jServerInfos infos, String request)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MondrianInprocProxy

public MondrianInprocProxy(Map<String,String> catalogNameUrls,
                           String urlString)
Creates and initializes a MondrianInprocProxy.

Parameters:
catalogNameUrls - Collection of catalog names and the URL where their catalog is to be found. For testing purposes, this should contain a catalog called "FoodMart".
urlString - JDBC connect string; must begin with "jdbc:mondrian:"
Method Detail

get

public byte[] get(XmlaOlap4jServerInfos infos,
                  String request)
Specified by:
get in interface XmlaOlap4jProxy

submit

public Future<byte[]> submit(XmlaOlap4jServerInfos infos,
                             String request)
Specified by:
submit in interface XmlaOlap4jProxy

getEncodingCharsetName

public String getEncodingCharsetName()
Specified by:
getEncodingCharsetName in interface XmlaOlap4jProxy

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