public class

RepositorySettingsCache

extends CacheBase
java.lang.Object
   ↳ com.microstrategy.utils.cache.CacheBase
     ↳ com.microstrategy.webapi.RepositorySettingsCache

Summary

[Expand]
Inherited Constants
From class com.microstrategy.utils.cache.CacheBase
[Expand]
Inherited Fields
From class com.microstrategy.utils.cache.CacheBase
Protected Constructors
RepositorySettingsCache()
Public Methods
Map<String, String> get(CacheHint hint)
Finds and returns cached object based on the hint.
static RepositorySettingsCache getInstance()
Map<String, String> getSettings(WebIServerSession session)
Map<String, String> getSettings(String serverName, int port)
Protected Methods
Object getKey(CacheHint hint)
Overridable.
Object load(CacheHint hint)
Overridable.
[Expand]
Inherited Methods
From class com.microstrategy.utils.cache.CacheBase
From class java.lang.Object
From interface com.microstrategy.utils.cache.Cache

Protected Constructors

protected RepositorySettingsCache ()

Throws
IllegalArgumentException

Public Methods

public Map<String, String> get (CacheHint hint)

Finds and returns cached object based on the hint. If object does not exists in the memory it will be loaded from the persistent memory. Returns null if object does not exists in persistent memory either.

Parameters
hint the hint object.
Returns
  • cached object.

public static RepositorySettingsCache getInstance ()

public Map<String, String> getSettings (WebIServerSession session)

public Map<String, String> getSettings (String serverName, int port)

Protected Methods

protected Object getKey (CacheHint hint)

Overridable. Extracts from the hint object the key that shall be used to identify the cached object.

Parameters
hint the hint object.
Returns
  • the key

protected Object load (CacheHint hint)

Overridable. Creates a new cached object instance and populates it with data from the persistent storage. In case the object not found in the persistent storage the implementation can return either null or a dummy object.

Parameters
hint the hint object.
Returns
  • the object or null.