Package mondrian.server
Class MondrianServerRegistry
- java.lang.Object
-
- 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
Fields Modifier and Type Field Description static MondrianServerRegistry
INSTANCE
(package private) LockBox
lockBox
Registry of all servers.static org.apache.log4j.Logger
logger
(package private) MondrianServer
staticServer
The one and only one server that does not have a repository.
-
Constructor Summary
Constructors Constructor Description MondrianServerRegistry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MondrianServer
createWithRepository(RepositoryContentFinder contentFinder, CatalogLocator catalogLocator)
String
getCopyrightYear()
String
getProductVersion()
MondrianServer.MondrianVersion
getVersion()
MondrianServer
serverForId(String instanceId)
Looks up a server with a given id.
-
-
-
Field Detail
-
logger
public static final org.apache.log4j.Logger logger
-
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.
-
-
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
-
getCopyrightYear
public String getCopyrightYear()
-
getProductVersion
public String getProductVersion()
-
getVersion
public MondrianServer.MondrianVersion getVersion()
-
createWithRepository
public MondrianServer createWithRepository(RepositoryContentFinder contentFinder, CatalogLocator catalogLocator)
-
-