mondrian.server
Class MondrianServerRegistry

java.lang.Object
  extended by mondrian.server.MondrianServerRegistry

public class MondrianServerRegistry
extends Object

Registry of all servers within this JVM, and also serves as a factory for servers.

This class is not a public API. User applications should use the methods in MondrianServer.

Author:
jhyde

Field Summary
static MondrianServerRegistry INSTANCE
           
(package private)  LockBox lockBox
          Registry of all servers.
(package private)  MondrianServer staticServer
          The one and only one server that does not have a repository.
 
Constructor Summary
MondrianServerRegistry()
           
 
Method Summary
 MondrianServer createWithRepository(RepositoryContentFinder contentFinder, CatalogLocator catalogLocator)
           
 MondrianServer.MondrianVersion getOrLoadVersion()
           
 MondrianServer serverForId(String instanceId)
          Looks up a server with a given id.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final MondrianServerRegistry INSTANCE

lockBox

final LockBox lockBox
Registry of all servers.


staticServer

final MondrianServer staticServer
The one and only one server that does not have a repository.

Constructor Detail

MondrianServerRegistry

public MondrianServerRegistry()
Method Detail

serverForId

public MondrianServer serverForId(String instanceId)
Looks up a server with a given id. If the id is null, returns the static server.

Parameters:
instanceId - Unique identifier of server instance
Returns:
Server
Throws:
RuntimeException - if no server instance exists

getOrLoadVersion

public MondrianServer.MondrianVersion getOrLoadVersion()

createWithRepository

public MondrianServer createWithRepository(RepositoryContentFinder contentFinder,
                                           CatalogLocator catalogLocator)

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