com.zeroturnaround.liverebel.api
Interface CommandCenter

All Known Implementing Classes:
CommandCenterImpl

public interface CommandCenter

LiveRebel Command Center API.

Author:
Rein Raudjärv
See Also:
CommandCenterFactory

Method Summary
 void addDatabaseConf(String serverId, Long databaseDriverId, String jdbcUrl, String schemaName)
          Deprecated. use #createDatabaseConf(String, Long, com.zeroturnaround.liverebel.util.DatabaseServerExecutionMode, String)
 boolean addGroupChild(String groupName, String childGroupName)
          Deprecated. use serverGroupOperations() to call ServerGroupOperations.moveGroupToGroup(String, String)
 boolean addServersToGroup(String groupName, Collection<String> serverIds)
          Deprecated. use serverGroupOperations() to call ServerGroupOperations.moveServersToGroup(String, Collection)
 boolean cancelUpdate(Long updateId)
          Cancels manual update by id.
 boolean checkPrimaryAlive()
          Deprecated. - use failoverOperations() to call FailoverOperations.checkPrimaryAlive()
 DiffResult compare(String applicationId, String fromVersionId, String toVersionId, boolean full)
          Compares two versions of the given application.
 int countSeats()
           
 String createDatabaseProxy(com.zeroturnaround.liverebel.util.DatabaseServerExecutionMode execMode, String targetServerId)
          Deprecated. 
 String createDatabaseProxyServer()
          Sets up database server proxy
 String createDatabaseProxyServer(Long serverGroupId)
          Sets up database server proxy
 Long createDatabaseSchema(String serverId, String jdbcUrl, String schemaName)
          Creates database schema for given server.
 boolean createGroup(String name, String description, Collection<String> serverIds)
          Deprecated. use serverGroupOperations() to call ServerGroupOperations.createGroup(String, String, Collection)
 Long createProxyDatabaseConf(String serverId, Long databaseDriverId, String executionServer)
          Creates configuration for proxy database server.
 Long createProxyPromptDatabaseConf(String serverId, Long databaseDriverId)
          Creates configuration for proxy prompt database server.
 Long createStandaloneDatabaseConf(String serverId, Long databaseDriverId)
          Creates configuration for standalone database server.
 int deleteAllLicenses()
           
 boolean deleteGroup(String name)
          Deprecated. use serverGroupOperations() to call ServerGroupOperations.deleteGroup(String)
 ConfigurableDeploy deploy(String applicationId, String versionId)
          Prepare to deploy a given application version.
 Long deploy(String applicationId, String versionId, String ctxPath, Collection<String> servers)
          Deprecated. instead use deploy(String, String).
 Long deploy(String applicationId, String versionId, String ctxPath, Collection<String> servers, Collection<String> groups)
          Deprecated. instead use deploy(String, String).
 Long deploy(String applicationId, String versionId, String ctxPath, Collection<String> servers, Collection<String> groups, String virtualHostName)
          Deprecated. instead use deploy(String, String).
 Long deploy(String applicationId, String versionId, String ctxPath, Collection<String> servers, Collection<String> groups, String virtualHost, boolean disableScripts, File scriptDescriptionFile)
          Deprecated. instead use deploy(String, String).
 Long deploy(String applicationId, String versionId, String ctxPath, Collection<String> servers, Collection<String> groups, String virtualHost, boolean disableScripts, File scriptDescriptionFile, File scriptEntriesArchive)
          Deprecated. instead use deploy(String, String).
 Long deploy(String applicationId, String versionId, String ctxPath, Collection<String> servers, String proxyTargetServerId, List<Long> schemaIds)
          Deprecated. instead use deploy(String, String).
 Long deploy(String applicationId, String versionId, String ctxPath, String fileServerDeploymentPath, Collection<String> servers, Collection<String> groups, String virtualHostName, boolean disableScripts, File scriptDescriptionFile, File scriptEntriesArchive)
          Deprecated. instead use deploy(String, String).
 Long deploy(String applicationId, String versionId, String ctxPath, String fileServerDeploymentPath, Collection<String> servers, Collection<String> groups, String virtualHost, boolean disableScripts, File scriptDescriptionFile, File scriptEntriesArchive, String proxyTargetServerId, List<Long> schemaIds)
          Deprecated. instead use deploy(String, String).
 Long deployToFileServers(String applicationId, String versionId, String fileServerDeploymentPath)
          Deprecated. instead use deploy(String, String).
 ApplicationInfo enableNinjaMode(String serverId, String appId)
          Deprecated. use startEditMode(String, String)
 List<ServerInfo> expandGroup(String groupName)
          Deprecated. use serverGroupOperations() to call ServerGroupOperations.expandGroup(String)
 FailoverOperations failoverOperations()
           
 ApplicationInfo finishEditMode(String serverId, String appId, String verId)
          Finishes in-place edit mode on given server for given application.
 ApplicationInfo finishNinjaUpdate(String serverId, String appId, String verId)
          Deprecated. use finishEditMode(String, String, String)
 Map<Long,SchemaInfo> getAllDatabaseSchemas()
           
 List<ServerGroup> getAllGroups()
          Deprecated. use serverGroupOperations() to call ServerGroupOperations.getAllGroups()
 ApplicationInfo getApplication(String applicationId)
          Returns current info about an application.
 Map<String,ApplicationInfo> getApplications()
          Lists all applications.
 CommandCenterUpdate getCommandCenterUpdate()
           
 Long getDatabaseServerSchemaId(String serverId)
          Deprecated. 
 Long getDatabaseServerSchemaId(String serverId, String schemaName)
           
 List<ServerGroup> getGroups(String groupName)
          Deprecated. use serverGroupOperations() to call ServerGroupOperations.getGroups(String)
 Collection<InstallerExecution> getInstallerExecutions()
           
 Date getLastFailoverSyncTime()
          Deprecated. - use failoverOperations() to call FailoverOperations.checkPrimaryAlive()
 Collection<String> getLogLines(Long taskId)
          Retrieved the log for given task.
 String getMetadata(String appId, String versionId)
          Deprecated. 
 PausedUpdate getPausedUpdate(Long id)
          Returns a paused update by its Id.
 List<Long> getRunningPausedUpdateIds()
           
 ServerInfo getServer(String serverIdOrName)
          Returns current info about a server.
 Map<String,ServerInfo> getServers()
          Lists all servers.
 String getTrace(String appId, String versionId)
           
 boolean getVerbose()
           
 String getVersion()
           
 boolean isAlive()
           
 ManagedConfOperations manageConfiguration()
           
 boolean registerAsFailover(String primaryHost, int primaryPort, String token)
          Deprecated. - use failoverOperations() to call FailoverOperations.registerAsFailover(String, int, String)
 void reloadServers(Collection<String> servers, int timeout, String updateMode)
           
 void remove(String applicationId)
          Removes app from command center.
 boolean removeGroupChild(String groupName, String childGroupName)
          Deprecated. use serverGroupOperations() to call ServerGroupOperations.moveGroupOutOfParentGroup(String)
 void removeServer(String serverId)
          Removes a server.
 boolean removeServersFromGroup(String groupName, Collection<String> serverIds)
          Deprecated. use serverGroupOperations() to call ServerGroupOperations.moveServersOutOfParentGroups(String, Collection)
 void removeVersion(String appId, String versionId)
          Removes application version from command center.
 ServerInfo renameServer(String serverId, String newName)
           
 boolean restartServer(String serverId)
          Restart server (asynchronously)
 boolean resumeUpdate(Long updateId)
          Resumes manual update by id.
 void resyncApplicationsData(Collection<String> serverIds)
          Refreshes application data from servers given by ids and overwrites current info in CC by the actual one that came from servers.
 ServerGroupOperations serverGroupOperations()
           
 boolean setHotpatchingEnabled(String serverId, boolean enabled)
          Enable/disable hotpatching update for specified server
 ApplicationInfo startEditMode(String serverId, String appId)
          Enables in-place edit mode for given application on a given server
 void syncWithFailover()
          Deprecated. - use failoverOperations() to call FailoverOperations.syncWithFailover()
 ConfigurableUndeploy undeploy(String applicationId)
          Prepare to undeploy a given application.
 Long undeploy(String applicationId, Collection<String> servers)
          Deprecated. instead use undeploy(String).
 Long undeploy(String applicationId, Collection<String> servers, Collection<String> groups)
          Deprecated. instead use undeploy(String).
 Long undeploy(String applicationId, Collection<String> servers, Collection<String> groups, boolean disableScripts, File scriptDescriptionFile)
          Deprecated. instead use undeploy(String).
 Long undeploy(String applicationId, Collection<String> servers, Collection<String> groups, boolean disableScripts, File scriptDescriptionFile, File scriptEntriesArchive)
          Deprecated. instead use undeploy(String).
 Long undeploy(String applicationId, Collection<String> servers, Collection<String> groups, boolean disableScripts, File scriptDescriptionFile, File scriptEntriesArchive, String proxyTargetServerId, List<Long> schemaIds)
          Deprecated. instead use undeploy(String).
 Long undeploy(String applicationId, Collection<String> servers, String proxyTargetServerId, List<Long> schemaIds)
          Deprecated. instead use undeploy(String).
 ConfigurableUpdate update(String applicationId, String versionId)
          Start updating an application to a given version.
 AgentUpdate updateAgent()
           
 DatabaseConfiguration updateDatabaseConfiguration(Long databaseConfigurationId)
          Update existing database configuration.
 SchemaConfiguration updateDatabaseSchema(Long schemaId)
          Update existing database schema.
 UploadInfo upload(File file)
          Uploads new version of an application.
 UploadInfo upload(String applicationId, String fromVersion, File diff)
          Deprecated. replaced by uploadVersion(File) and Upload.execute()
 Long uploadDatabaseDriver(File jar)
           
 boolean uploadLicense(File license)
           
 boolean uploadMetadata(File file, String appId, String versionId)
          Deprecated. 
 boolean uploadTrace(File file, String appId, String versionId)
           
 Upload uploadVersion(File file)
          Prepares the upload of new version of an application.
 

Method Detail

serverGroupOperations

ServerGroupOperations serverGroupOperations()

manageConfiguration

ManagedConfOperations manageConfiguration()
Returns:
interface that provides operations related to managed configuration

failoverOperations

FailoverOperations failoverOperations()
Returns:
interface that provides operations related to failover Command Center

isAlive

boolean isAlive()
Returns:
true if the Command Center is alive.

getServers

Map<String,ServerInfo> getServers()
Lists all servers.

Returns:
all servers by their Id.

getServer

ServerInfo getServer(String serverIdOrName)
Returns current info about a server.

Parameters:
serverIdOrName - id or name of the server.
Returns:
server info.

renameServer

ServerInfo renameServer(String serverId,
                        String newName)
Parameters:
serverId -
newName - - new name for the server
Returns:
information about the server after name has changed

removeServer

void removeServer(String serverId)
Removes a server.

Parameters:
serverId - server Id.

restartServer

boolean restartServer(String serverId)
Restart server (asynchronously)

Parameters:
serverId - server id
Returns:
true if request successes

reloadServers

void reloadServers(Collection<String> servers,
                   int timeout,
                   String updateMode)
Parameters:
servers - ids
timeout - - the same meaning as for update
updateMode - - OFFLINE or ROLLING (currently only offline :))

setHotpatchingEnabled

boolean setHotpatchingEnabled(String serverId,
                              boolean enabled)
Enable/disable hotpatching update for specified server

Parameters:
serverId - server id
enabled - true to enable hotpatching, false to disable it
Returns:
true if request success

getApplications

Map<String,ApplicationInfo> getApplications()
Lists all applications.

Returns:
all applications by their Id.

getApplication

ApplicationInfo getApplication(String applicationId)
Returns current info about an application.

Parameters:
applicationId - application Id.
Returns:
application info.

upload

UploadInfo upload(File file)
                  throws DuplicationException
Uploads new version of an application.

Parameters:
file - archive file.
Returns:
uploaded application version.
Throws:
DuplicationException - if the given version already exists on the server.

upload

@Deprecated
UploadInfo upload(String applicationId,
                             String fromVersion,
                             File diff)
                  throws DuplicationException
Deprecated. replaced by uploadVersion(File) and Upload.execute()

Uploads new version of an application.

Parameters:
applicationId - - application identificator
fromVersion - - version on which this diff is based
diff - archive file.
Returns:
uploaded application version.
Throws:
DuplicationException - if the given version already exists on the server.

uploadVersion

Upload uploadVersion(File file)
Prepares the upload of new version of an application.

Parameters:
file - archive file
Returns:
an object for configuring the upload

compare

DiffResult compare(String applicationId,
                   String fromVersionId,
                   String toVersionId,
                   boolean full)
Compares two versions of the given application.

Parameters:
applicationId - application Id.
fromVersionId - current version Id.
toVersionId - new version Id.
full - include all differences (otherwise only warnings and errors are included).

update

ConfigurableUpdate update(String applicationId,
                          String versionId)
Start updating an application to a given version.

Parameters:
applicationId - application Id.
versionId - version Id.

getPausedUpdate

PausedUpdate getPausedUpdate(Long id)
Returns a paused update by its Id.

Parameters:
id - update Id.
Returns:
the paused update or null if no such update found.
See Also:
PreparedPausableUpdate.executeWithPause()

registerAsFailover

boolean registerAsFailover(String primaryHost,
                           int primaryPort,
                           String token)
Deprecated. - use failoverOperations() to call FailoverOperations.registerAsFailover(String, int, String)


syncWithFailover

void syncWithFailover()
Deprecated. - use failoverOperations() to call FailoverOperations.syncWithFailover()


checkPrimaryAlive

boolean checkPrimaryAlive()
Deprecated. - use failoverOperations() to call FailoverOperations.checkPrimaryAlive()


getVerbose

boolean getVerbose()

deploy

ConfigurableDeploy deploy(String applicationId,
                          String versionId)
Prepare to deploy a given application version. Configure additional parameters using the returned ConfigurableDeploy object. The deploy will be executed once PreparedDeploy.execute() is invoked. The archive of the given version must be available in the Command Center before this operation.


deploy

Long deploy(String applicationId,
            String versionId,
            String ctxPath,
            Collection<String> servers)
Deprecated. instead use deploy(String, String).


deploy

Long deploy(String applicationId,
            String versionId,
            String ctxPath,
            Collection<String> servers,
            String proxyTargetServerId,
            List<Long> schemaIds)
Deprecated. instead use deploy(String, String).


deployToFileServers

Long deployToFileServers(String applicationId,
                         String versionId,
                         String fileServerDeploymentPath)
Deprecated. instead use deploy(String, String).


deploy

Long deploy(String applicationId,
            String versionId,
            String ctxPath,
            Collection<String> servers,
            Collection<String> groups)
Deprecated. instead use deploy(String, String).


deploy

Long deploy(String applicationId,
            String versionId,
            String ctxPath,
            Collection<String> servers,
            Collection<String> groups,
            String virtualHostName)
Deprecated. instead use deploy(String, String).

Deploy application to specified servers. Using initial deploy.

Parameters:
applicationId - - application id
ctxPath - - context path for servers
servers - - server jvmid-s
virtualHostName - - name of the virtual host to be used for deploying
Returns:
task ID

deploy

Long deploy(String applicationId,
            String versionId,
            String ctxPath,
            Collection<String> servers,
            Collection<String> groups,
            String virtualHost,
            boolean disableScripts,
            File scriptDescriptionFile)
Deprecated. instead use deploy(String, String).


deploy

Long deploy(String applicationId,
            String versionId,
            String ctxPath,
            Collection<String> servers,
            Collection<String> groups,
            String virtualHost,
            boolean disableScripts,
            File scriptDescriptionFile,
            File scriptEntriesArchive)
Deprecated. instead use deploy(String, String).


deploy

Long deploy(String applicationId,
            String versionId,
            String ctxPath,
            String fileServerDeploymentPath,
            Collection<String> servers,
            Collection<String> groups,
            String virtualHostName,
            boolean disableScripts,
            File scriptDescriptionFile,
            File scriptEntriesArchive)
Deprecated. instead use deploy(String, String).


deploy

Long deploy(String applicationId,
            String versionId,
            String ctxPath,
            String fileServerDeploymentPath,
            Collection<String> servers,
            Collection<String> groups,
            String virtualHost,
            boolean disableScripts,
            File scriptDescriptionFile,
            File scriptEntriesArchive,
            String proxyTargetServerId,
            List<Long> schemaIds)
Deprecated. instead use deploy(String, String).


remove

void remove(String applicationId)
Removes app from command center.

Parameters:
app - - application id

removeVersion

void removeVersion(String appId,
                   String versionId)
Removes application version from command center.

Parameters:
appId -
versionId -

undeploy

ConfigurableUndeploy undeploy(String applicationId)
Prepare to undeploy a given application. Configure additional parameters using the returned ConfigurableUndeploy object. The undeploy will be executed once PreparedUndeploy.execute() is invoked.


undeploy

Long undeploy(String applicationId,
              Collection<String> servers)
Deprecated. instead use undeploy(String).

Undeploy application from specified servers.

Parameters:
applicationId - - application id
servers - - server jvmid-s
Returns:
task ID

undeploy

Long undeploy(String applicationId,
              Collection<String> servers,
              Collection<String> groups)
Deprecated. instead use undeploy(String).

Undeploy application from specified servers.

Parameters:
applicationId - - application id
servers - - server jvmid-s
groups - - server groups
Returns:
task ID

undeploy

Long undeploy(String applicationId,
              Collection<String> servers,
              String proxyTargetServerId,
              List<Long> schemaIds)
Deprecated. instead use undeploy(String).

Undeploy application from specified servers and schemas

Parameters:
applicationId - - application id
servers - - server jvmid-s
proxyTargetServerId - - proxy target server id
schemaIds - - schema ids
Returns:
task ID

undeploy

Long undeploy(String applicationId,
              Collection<String> servers,
              Collection<String> groups,
              boolean disableScripts,
              File scriptDescriptionFile)
Deprecated. instead use undeploy(String).

file and archive type scripts are expected to be in the local filesystem


undeploy

Long undeploy(String applicationId,
              Collection<String> servers,
              Collection<String> groups,
              boolean disableScripts,
              File scriptDescriptionFile,
              File scriptEntriesArchive)
Deprecated. instead use undeploy(String).


undeploy

Long undeploy(String applicationId,
              Collection<String> servers,
              Collection<String> groups,
              boolean disableScripts,
              File scriptDescriptionFile,
              File scriptEntriesArchive,
              String proxyTargetServerId,
              List<Long> schemaIds)
Deprecated. instead use undeploy(String).


getLastFailoverSyncTime

Date getLastFailoverSyncTime()
Deprecated. - use failoverOperations() to call FailoverOperations.checkPrimaryAlive()


resumeUpdate

boolean resumeUpdate(Long updateId)
Resumes manual update by id. Throws NotFound if no update with such id is found.

Parameters:
updateId -
Returns:
boolean if update was successful.

cancelUpdate

boolean cancelUpdate(Long updateId)
Cancels manual update by id. Throws NotFound if no update with such id is found.

Parameters:
updateId -
Returns:
if update cancellation was successful.

getRunningPausedUpdateIds

List<Long> getRunningPausedUpdateIds()
Returns:
List of ids of all paused updates that are currently in Command Center

startEditMode

ApplicationInfo startEditMode(String serverId,
                              String appId)
Enables in-place edit mode for given application on a given server


finishEditMode

ApplicationInfo finishEditMode(String serverId,
                               String appId,
                               String verId)
Finishes in-place edit mode on given server for given application. The resulted version is given verId.


enableNinjaMode

ApplicationInfo enableNinjaMode(String serverId,
                                String appId)
Deprecated. use startEditMode(String, String)

Enables inplace edit mode (ninja) for given application on a given server


finishNinjaUpdate

ApplicationInfo finishNinjaUpdate(String serverId,
                                  String appId,
                                  String verId)
Deprecated. use finishEditMode(String, String, String)

Finishes inplace edit (ninja) update on given server for given application. The resulted version is given verId.


countSeats

int countSeats()
Returns:
licenses soft-limit, how many servers can connect.

uploadLicense

boolean uploadLicense(File license)
Parameters:
File - - license file
Returns:
true if the license is uploaded and verified and working

deleteAllLicenses

int deleteAllLicenses()
Returns:
number of license files deleted

createGroup

boolean createGroup(String name,
                    String description,
                    Collection<String> serverIds)
Deprecated. use serverGroupOperations() to call ServerGroupOperations.createGroup(String, String, Collection)


addServersToGroup

boolean addServersToGroup(String groupName,
                          Collection<String> serverIds)
Deprecated. use serverGroupOperations() to call ServerGroupOperations.moveServersToGroup(String, Collection)


removeServersFromGroup

boolean removeServersFromGroup(String groupName,
                               Collection<String> serverIds)
Deprecated. use serverGroupOperations() to call ServerGroupOperations.moveServersOutOfParentGroups(String, Collection)


addGroupChild

boolean addGroupChild(String groupName,
                      String childGroupName)
Deprecated. use serverGroupOperations() to call ServerGroupOperations.moveGroupToGroup(String, String)


removeGroupChild

boolean removeGroupChild(String groupName,
                         String childGroupName)
Deprecated. use serverGroupOperations() to call ServerGroupOperations.moveGroupOutOfParentGroup(String)


getAllGroups

List<ServerGroup> getAllGroups()
Deprecated. use serverGroupOperations() to call ServerGroupOperations.getAllGroups()


getGroups

List<ServerGroup> getGroups(String groupName)
Deprecated. use serverGroupOperations() to call ServerGroupOperations.getGroups(String)


expandGroup

List<ServerInfo> expandGroup(String groupName)
Deprecated. use serverGroupOperations() to call ServerGroupOperations.expandGroup(String)


deleteGroup

boolean deleteGroup(String name)
Deprecated. use serverGroupOperations() to call ServerGroupOperations.deleteGroup(String)


getCommandCenterUpdate

CommandCenterUpdate getCommandCenterUpdate()
Returns:
API for updating Command Center.

updateAgent

AgentUpdate updateAgent()
Returns:
API for updating Agents.

uploadTrace

boolean uploadTrace(File file,
                    String appId,
                    String versionId)
Returns:
whether trace existed before and was replaced or not.

getTrace

String getTrace(String appId,
                String versionId)

getLogLines

Collection<String> getLogLines(Long taskId)
Retrieved the log for given task.

Parameters:
taskId - the task ID
Returns:
the task log splitted into lines

uploadMetadata

@Deprecated
boolean uploadMetadata(File file,
                                  String appId,
                                  String versionId)
Deprecated. 

Replaced with uploadTrace(File, String, String)


getMetadata

@Deprecated
String getMetadata(String appId,
                              String versionId)
Deprecated. 

Replaced with getTrace(String, String)


getVersion

String getVersion()

getInstallerExecutions

Collection<InstallerExecution> getInstallerExecutions()

addDatabaseConf

@Deprecated
void addDatabaseConf(String serverId,
                                Long databaseDriverId,
                                String jdbcUrl,
                                String schemaName)
Deprecated. use #createDatabaseConf(String, Long, com.zeroturnaround.liverebel.util.DatabaseServerExecutionMode, String)

Creates configuration and its schema.

Note! In case one want's to use proxy database server, one must call createDatabaseProxy(DatabaseServerExecutionMode, String) before adding configuration.

Parameters:
serverId - - database server id
databaseDriverId - - database driver id
jdbcUrl - - JDBC url
schemaName - - name of the schema

createDatabaseProxy

@Deprecated
String createDatabaseProxy(com.zeroturnaround.liverebel.util.DatabaseServerExecutionMode execMode,
                                      String targetServerId)
Deprecated. 

Sets up database server proxy.

Note! Must be called before addDatabaseConf(String, Long, String, String).

Parameters:
execMode - execution mode, DatabaseServerExecutionMode.PROXY or DatabaseServerExecutionMode.PROXY_PROMPT
targetServerId - target server id
Returns:
id of the created proxy server

uploadDatabaseDriver

Long uploadDatabaseDriver(File jar)
Parameters:
jar - JDBC driver jar
Returns:
id of the uploaded driver

getDatabaseServerSchemaId

@Deprecated
Long getDatabaseServerSchemaId(String serverId)
Deprecated. 

Parameters:
serverId - id of the database server
Returns:
first schema id associated with given database server

getDatabaseServerSchemaId

Long getDatabaseServerSchemaId(String serverId,
                               String schemaName)
Parameters:
serverId - id of the database server
schemaName - name of the schema
Returns:
schema id associated with given database server and has given schema name

createStandaloneDatabaseConf

Long createStandaloneDatabaseConf(String serverId,
                                  Long databaseDriverId)

Creates configuration for standalone database server.

Parameters:
serverId - server id
databaseDriverId - database driver id
Returns:
Id of the created database configuration

createProxyPromptDatabaseConf

Long createProxyPromptDatabaseConf(String serverId,
                                   Long databaseDriverId)

Creates configuration for proxy prompt database server.

Note! One must call createDatabaseProxyServer(Long) before adding configuration.

Parameters:
serverId - server id
databaseDriverId - database driver id
Returns:
Id of the created database configuration

createProxyDatabaseConf

Long createProxyDatabaseConf(String serverId,
                             Long databaseDriverId,
                             String executionServer)

Creates configuration for proxy database server.

Note! One must call createDatabaseProxyServer(Long) before adding configuration.

Parameters:
serverId - server id
databaseDriverId - database driver id
executionServer - execution server id, also know as proxy target
Returns:
Id of the created database configuration

updateDatabaseConfiguration

DatabaseConfiguration updateDatabaseConfiguration(Long databaseConfigurationId)

Update existing database configuration.

Parameters:
databaseConfigurationId - id of the database configuration to update

createDatabaseSchema

Long createDatabaseSchema(String serverId,
                          String jdbcUrl,
                          String schemaName)

Creates database schema for given server.

Note! Server must have configuration before adding schemas.

Parameters:
serverId - server id
jdbcUrl - JDBC url
schemaName - schema name
Returns:
Id of the created database schema.

updateDatabaseSchema

SchemaConfiguration updateDatabaseSchema(Long schemaId)

Update existing database schema.

Parameters:
schemaId - Id of the database schema to update

createDatabaseProxyServer

String createDatabaseProxyServer()

Sets up database server proxy

Returns:
created database proxy server id

createDatabaseProxyServer

String createDatabaseProxyServer(Long serverGroupId)

Sets up database server proxy

Parameters:
serverGroupId -
Returns:
created database proxy server id

getAllDatabaseSchemas

Map<Long,SchemaInfo> getAllDatabaseSchemas()
Returns:
all schemas defined on all database servers by their Id

resyncApplicationsData

void resyncApplicationsData(Collection<String> serverIds)
Refreshes application data from servers given by ids and overwrites current info in CC by the actual one that came from servers.

Parameters:
serverIds - - serverIds of servers to sync, if empty, will resync all servers.


Copyright © 2013. All Rights Reserved.