|
||||||||||
| 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)
Adds database configuration to given database server |
boolean |
addGroupChild(String groupName,
String childGroupName)
|
boolean |
addServersToGroup(String groupName,
Collection<String> serverIds)
|
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)
Sets up database server proxy. |
boolean |
createGroup(String name,
String description,
Collection<String> serverIds)
|
int |
deleteAllLicenses()
|
boolean |
deleteGroup(String name)
|
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)
|
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) |
List<ServerGroup> |
getAllGroups()
|
ApplicationInfo |
getApplication(String applicationId)
Returns current info about an application. |
Map<String,ApplicationInfo> |
getApplications()
Lists all applications. |
CommandCenterUpdate |
getCommandCenterUpdate()
|
Long |
getDatabaseServerSchemaId(String serverId)
|
List<ServerGroup> |
getGroups(String groupName)
|
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 serverId)
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 |
remove(String applicationId)
Removes app from command center. |
boolean |
removeGroupChild(String groupName,
String childGroupName)
|
void |
removeServer(String serverId)
Removes a server. |
boolean |
removeServersFromGroup(String groupName,
Collection<String> serverIds)
|
void |
removeVersion(String appId,
String versionId)
Removes application version from command center. |
boolean |
restartServer(String serverId)
Restart server (asynchronously) |
boolean |
resumeUpdate(Long updateId)
Resumes manual update by id. |
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()
|
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 |
|---|
boolean isAlive()
true if the Command Center is alive.Map<String,ServerInfo> getServers()
ServerInfo getServer(String serverId)
serverId - server Id.
void removeServer(String serverId)
serverId - server Id.boolean restartServer(String serverId)
serverId - server id
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()
FailoverOperations failoverOperations()
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)
boolean addServersToGroup(String groupName,
Collection<String> serverIds)
boolean removeServersFromGroup(String groupName,
Collection<String> serverIds)
boolean addGroupChild(String groupName,
String childGroupName)
boolean removeGroupChild(String groupName,
String childGroupName)
List<ServerGroup> getAllGroups()
List<ServerGroup> getGroups(String groupName)
groupName -
List<ServerInfo> expandGroup(String groupName)
boolean deleteGroup(String name)
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()
ManagedConfOperations manageConfiguration()
void addDatabaseConf(String serverId,
Long databaseDriverId,
String jdbcUrl,
String schemaName)
serverId - - database server iddatabaseDriverId - - database driver idjdbcUrl - - JDBC urlschemaName - - name of the schema
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
Long getDatabaseServerSchemaId(String serverId)
serverId - id of the database server
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||