public class

RepositorySource

extends Object
java.lang.Object
   ↳ com.microstrategy.web.objects.admin.serverconfig.RepositorySource

Class Overview

This class is intended to support Repository Initialization.

Summary

Public Constructors
RepositorySource()
Public Methods
synchronized static RepositorySource getInstance()
Returns the singleton RepositorySource that should be used to initialize the Repository.
RepositorySettings getRepositorySettings()
Returns the RepositorySettings object that should be filled up before attempting to initialize a repository.
void initRepository(String serverName, Locale locale, boolean useRepository)
Ensures that a repository exists at the data source referred by the RepositorySettings.
void initRepository(String serverName, int portNumber, Locale locale, boolean useRepository)
Ensures that a repository exists at the data source referred by the RepositorySettings.
void initRepository(String serverName, boolean useRepository)
Ensures that a repository exists at the data source referred by the RepositorySettings.
void initRepository(String serverName, int portNumber, boolean useRepository)
Ensures that a repository exists at the data source referred by the RepositorySettings.
boolean isRepositoryInitialized(String serverName, int portNumber)
Checks if repository exists at the data source referred by the RepositorySettings.
boolean isRepositoryInitialized(String serverName, Locale locale)
Checks if repository exists at the data source referred by the RepositorySettings.
boolean isRepositoryInitialized(String serverName)
Checks if repository exists at the data source referred by the RepositorySettings.
boolean isRepositoryInitialized(String serverName, int portNumber, Locale locale)
Checks if repository exists at the data source referred by the RepositorySettings.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public RepositorySource ()

Public Methods

public static synchronized RepositorySource getInstance ()

Returns the singleton RepositorySource that should be used to initialize the Repository.

Returns
  • RepositorySource the singleton RepositorySource object.

public RepositorySettings getRepositorySettings ()

Returns the RepositorySettings object that should be filled up before attempting to initialize a repository.

Returns
  • RepositorySettings the repository settings object to be filled up.

public void initRepository (String serverName, Locale locale, boolean useRepository)

Ensures that a repository exists at the data source referred by the RepositorySettings. Also, if the useRepository flag is set to True, ensures that IServer starts using the repository.

Parameters
serverName The IServer name. The Default Port Number will be used to communicate with the IServer.
locale The locale for error messages
useRepository If set to True, IServer would start using the repository. A value of False for this means that we would not attempt to ensure that IServer uses this repository. Thus, setting the value to False would not affect, at all, the current repository used by IServer (if any).
Throws
ServerConfigException If the Repository Settings are not properly filled up or if there was an error encountered by IServer.

public void initRepository (String serverName, int portNumber, Locale locale, boolean useRepository)

Ensures that a repository exists at the data source referred by the RepositorySettings. Also, if the useRepository flag is set to True, ensures that IServer starts using the repository.

Parameters
serverName The IServer name
portNumber The port number to communicate with IServer
locale The locale for error messages
useRepository If set to True, IServer would start using the repository. A value of False for this means that we would not attempt to ensure that IServer uses this repository. Thus, setting the value to False would not affect the current repository used by IServer (if any).
Throws
ServerConfigException If the Repository Settings are not properly filled up or if there was an error encountered by IServer.

public void initRepository (String serverName, boolean useRepository)

Ensures that a repository exists at the data source referred by the RepositorySettings. Also, if the useRepository flag is set to True, ensures that IServer starts using the repository.

Parameters
serverName The IServer name. The Default Port Number will be used to communicate with the IServer.
useRepository If set to True, IServer would start using the repository. A value of False for this means that we would not attempt to ensure that IServer uses this repository. Thus, setting the value to False would not affect the current repository used by IServer (if any).
Throws
ServerConfigException If the Repository Settings are not properly filled up or if there was an error encountered by IServer.

public void initRepository (String serverName, int portNumber, boolean useRepository)

Ensures that a repository exists at the data source referred by the RepositorySettings. Also, if the useRepository flag is set to True, ensures that IServer starts using the repository.

Parameters
serverName The IServer name
portNumber The port number to communicate with IServer
useRepository If set to True, IServer would start using the repository. A value of False for this means that we would not attempt to ensure that IServer uses this repository. Thus, setting the value to False would not affect the current repository used by IServer (if any).
Throws
ServerConfigException If the Repository Settings are not properly filled up or if there was an error encountered by IServer.

public boolean isRepositoryInitialized (String serverName, int portNumber)

Checks if repository exists at the data source referred by the RepositorySettings.

Parameters
serverName The IServer name
portNumber The port number to communicate with IServer
Returns
  • boolean True if repository exists.
Throws
ServerConfigException If the Repository Settings are not properly filled up or if there was an error encountered by IServer.

public boolean isRepositoryInitialized (String serverName, Locale locale)

Checks if repository exists at the data source referred by the RepositorySettings.

Parameters
serverName The IServer name. Default Port Number is used.
locale The locale for error messages
Returns
  • boolean True if repository exists.
Throws
ServerConfigException If the Repository Settings are not properly filled up or if there was an error encountered by IServer.

public boolean isRepositoryInitialized (String serverName)

Checks if repository exists at the data source referred by the RepositorySettings.

Parameters
serverName The IServer name. Default Port Number is used.
Returns
  • boolean True if repository exists.
Throws
ServerConfigException If the Repository Settings are not properly filled up or if there was an error encountered by IServer.

public boolean isRepositoryInitialized (String serverName, int portNumber, Locale locale)

Checks if repository exists at the data source referred by the RepositorySettings.

Parameters
serverName The IServer name
portNumber The port number to communicate with IServer
locale The locale for error messages
Returns
  • boolean True if repository exists.
Throws
ServerConfigException If the Repository Settings are not properly filled up or if there was an error encountered by IServer.
IllegalArgumentException