|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CommandCenter
LiveRebel Command Center API.
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. |
| Methods inherited from interface java.io.Closeable |
|---|
close |
| Method Detail |
|---|
ServerGroupOperations serverGroupOperations()
ManagedConfOperations manageConfiguration()
FailoverOperations failoverOperations()
boolean isAlive()
true if the Command Center is alive.Map<String,ServerInfo> getServers()
ServerInfo getServer(String serverIdOrName)
serverIdOrName - id or name of the server.
ServerInfo renameServer(String serverId,
String newName)
serverId - newName - - new name for the server
void removeServer(String serverId)
serverId - server Id.boolean restartServer(String serverId)
serverId - server id
void reloadServers(Collection<String> servers,
int timeout,
String updateMode)
servers - idstimeout - - the same meaning as for updateupdateMode - - OFFLINE or ROLLING (currently only offline :))
boolean setHotpatchingEnabled(String serverId,
boolean enabled)
serverId - server idenabled - true to enable hotpatching, false to disable it
Map<String,ApplicationInfo> getApplications()
ApplicationInfo getApplication(String applicationId)
applicationId - application Id.
UploadInfo upload(File file)
throws DuplicationException
file - archive file.
DuplicationException - if the given version already exists on the server.
@Deprecated
UploadInfo upload(String applicationId,
String fromVersion,
File diff)
throws DuplicationException
uploadVersion(File) and
Upload.execute()
applicationId - - application identificatorfromVersion - - version on which this diff is baseddiff - archive file.
DuplicationException - if the given version already exists on the server.Upload uploadVersion(File file)
file - archive file
DiffResult compare(String applicationId,
String fromVersionId,
String toVersionId,
boolean full)
applicationId - application Id.fromVersionId - current version Id.toVersionId - new version Id.full - include all differences (otherwise only warnings and errors are included).
ConfigurableUpdate update(String applicationId,
String versionId)
applicationId - application Id.versionId - version Id.PausedUpdate getPausedUpdate(Long id)
id - update Id.
null if no such update found.PreparedPausableUpdate.executeWithPause()
boolean registerAsFailover(String primaryHost,
int primaryPort,
String token)
failoverOperations() to call FailoverOperations.registerAsFailover(String, int, String)
void syncWithFailover()
failoverOperations() to call FailoverOperations.syncWithFailover()
boolean checkPrimaryAlive()
failoverOperations() to call FailoverOperations.checkPrimaryAlive()
boolean getVerbose()
ConfigurableDeploy deploy(String applicationId,
String versionId)
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.
Long deploy(String applicationId,
String versionId,
String ctxPath,
Collection<String> servers)
deploy(String, String).
Long deploy(String applicationId,
String versionId,
String ctxPath,
Collection<String> servers,
String proxyTargetServerId,
List<Long> schemaIds)
deploy(String, String).
Long deployToFileServers(String applicationId,
String versionId,
String fileServerDeploymentPath)
deploy(String, String).
Long deploy(String applicationId,
String versionId,
String ctxPath,
Collection<String> servers,
Collection<String> groups)
deploy(String, String).
Long deploy(String applicationId,
String versionId,
String ctxPath,
Collection<String> servers,
Collection<String> groups,
String virtualHostName)
deploy(String, String).
applicationId - - application idctxPath - - context path for serversservers - - server jvmid-svirtualHostName - - name of the virtual host to be used for deploying
Long deploy(String applicationId,
String versionId,
String ctxPath,
Collection<String> servers,
Collection<String> groups,
String virtualHost,
boolean disableScripts,
File scriptDescriptionFile)
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)
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)
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)
deploy(String, String).
void remove(String applicationId)
app - - application id
void removeVersion(String appId,
String versionId)
appId - versionId - ConfigurableUndeploy undeploy(String applicationId)
ConfigurableUndeploy object.
The undeploy will be executed once PreparedUndeploy.execute() is invoked.
Long undeploy(String applicationId,
Collection<String> servers)
undeploy(String).
applicationId - - application idservers - - server jvmid-s
Long undeploy(String applicationId,
Collection<String> servers,
Collection<String> groups)
undeploy(String).
applicationId - - application idservers - - server jvmid-sgroups - - server groups
Long undeploy(String applicationId,
Collection<String> servers,
String proxyTargetServerId,
List<Long> schemaIds)
undeploy(String).
applicationId - - application idservers - - server jvmid-sproxyTargetServerId - - proxy target server idschemaIds - - schema ids
Long undeploy(String applicationId,
Collection<String> servers,
Collection<String> groups,
boolean disableScripts,
File scriptDescriptionFile)
undeploy(String).
Long undeploy(String applicationId,
Collection<String> servers,
Collection<String> groups,
boolean disableScripts,
File scriptDescriptionFile,
File scriptEntriesArchive)
undeploy(String).
Long undeploy(String applicationId,
Collection<String> servers,
Collection<String> groups,
boolean disableScripts,
File scriptDescriptionFile,
File scriptEntriesArchive,
String proxyTargetServerId,
List<Long> schemaIds)
undeploy(String).
Date getLastFailoverSyncTime()
failoverOperations() to call FailoverOperations.checkPrimaryAlive()
boolean resumeUpdate(Long updateId)
updateId -
boolean cancelUpdate(Long updateId)
updateId -
List<Long> getRunningPausedUpdateIds()
ApplicationInfo startEditMode(String serverId,
String appId)
ApplicationInfo finishEditMode(String serverId,
String appId,
String verId)
ApplicationInfo enableNinjaMode(String serverId,
String appId)
startEditMode(String, String)
ApplicationInfo finishNinjaUpdate(String serverId,
String appId,
String verId)
finishEditMode(String, String, String)
int countSeats()
boolean uploadLicense(File license)
File - - license file
int deleteAllLicenses()
boolean createGroup(String name,
String description,
Collection<String> serverIds)
serverGroupOperations() to call ServerGroupOperations.createGroup(String, String, Collection)
boolean addServersToGroup(String groupName,
Collection<String> serverIds)
serverGroupOperations() to call ServerGroupOperations.moveServersToGroup(String, Collection)
boolean removeServersFromGroup(String groupName,
Collection<String> serverIds)
serverGroupOperations() to call ServerGroupOperations.moveServersOutOfParentGroups(String, Collection)
boolean addGroupChild(String groupName,
String childGroupName)
serverGroupOperations() to call ServerGroupOperations.moveGroupToGroup(String, String)
boolean removeGroupChild(String groupName,
String childGroupName)
serverGroupOperations() to call ServerGroupOperations.moveGroupOutOfParentGroup(String)
List<ServerGroup> getAllGroups()
serverGroupOperations() to call ServerGroupOperations.getAllGroups()
List<ServerGroup> getGroups(String groupName)
serverGroupOperations() to call ServerGroupOperations.getGroups(String)
List<ServerInfo> expandGroup(String groupName)
serverGroupOperations() to call ServerGroupOperations.expandGroup(String)
boolean deleteGroup(String name)
serverGroupOperations() to call ServerGroupOperations.deleteGroup(String)
CommandCenterUpdate getCommandCenterUpdate()
AgentUpdate updateAgent()
boolean uploadTrace(File file,
String appId,
String versionId)
String getTrace(String appId,
String versionId)
Collection<String> getLogLines(Long taskId)
taskId - the task ID
@Deprecated
boolean uploadMetadata(File file,
String appId,
String versionId)
uploadTrace(File, String, String)
@Deprecated
String getMetadata(String appId,
String versionId)
getTrace(String, String)
String getVersion()
Collection<InstallerExecution> getInstallerExecutions()
@Deprecated
void addDatabaseConf(String serverId,
Long databaseDriverId,
String jdbcUrl,
String schemaName)
#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.
serverId - - database server iddatabaseDriverId - - database driver idjdbcUrl - - JDBC urlschemaName - - name of the schema
@Deprecated
String createDatabaseProxy(com.zeroturnaround.liverebel.util.DatabaseServerExecutionMode execMode,
String targetServerId)
Sets up database server proxy.
Note! Must be called before addDatabaseConf(String, Long, String, String).
execMode - execution mode, DatabaseServerExecutionMode.PROXY or DatabaseServerExecutionMode.PROXY_PROMPTtargetServerId - target server id
Long uploadDatabaseDriver(File jar)
jar - JDBC driver jar
@Deprecated Long getDatabaseServerSchemaId(String serverId)
serverId - id of the database server
Long getDatabaseServerSchemaId(String serverId,
String schemaName)
serverId - id of the database serverschemaName - name of the schema
Long createStandaloneDatabaseConf(String serverId,
Long databaseDriverId)
Creates configuration for standalone database server.
serverId - server iddatabaseDriverId - database driver id
Long createProxyPromptDatabaseConf(String serverId,
Long databaseDriverId)
Creates configuration for proxy prompt database server.
Note! One must call
createDatabaseProxyServer(Long)
before adding configuration.
serverId - server iddatabaseDriverId - database driver id
Long createProxyDatabaseConf(String serverId,
Long databaseDriverId,
String executionServer)
Creates configuration for proxy database server.
Note! One must call
createDatabaseProxyServer(Long)
before adding configuration.
serverId - server iddatabaseDriverId - database driver idexecutionServer - execution server id, also know as proxy target
DatabaseConfiguration updateDatabaseConfiguration(Long databaseConfigurationId)
Update existing database configuration.
databaseConfigurationId - id of the database configuration to update
Long createDatabaseSchema(String serverId,
String jdbcUrl,
String schemaName)
Creates database schema for given server.
Note! Server must have configuration before adding schemas.
serverId - server idjdbcUrl - JDBC urlschemaName - schema name
SchemaConfiguration updateDatabaseSchema(Long schemaId)
Update existing database schema.
schemaId - Id of the database schema to updateString createDatabaseProxyServer()
Sets up database server proxy
String createDatabaseProxyServer(Long serverGroupId)
Sets up database server proxy
serverGroupId -
Map<Long,SchemaInfo> getAllDatabaseSchemas()
void resyncApplicationsData(Collection<String> serverIds)
serverIds - - serverIds of servers to sync, if empty, will resync all servers.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||