|
||||||||||
| 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 | |
|---|---|
boolean |
addGroupChild(String groupName,
String childGroupName)
|
boolean |
addServersToGroup(String groupName,
Collection<String> serverIds)
|
boolean |
cancelUpdate(Long updateId)
Cancels manual update by id. |
boolean |
checkPrimaryAlive()
|
DiffResult |
compare(String applicationId,
String fromVersionId,
String toVersionId,
boolean full)
Compares two versions of the given application. |
int |
countSeats()
|
boolean |
createGroup(String name,
String description,
Collection<String> serverIds)
|
int |
deleteAllLicenses()
|
boolean |
deleteGroup(String name)
|
void |
deploy(String applicationId,
String versionId,
String ctxPath,
Collection<String> servers)
|
void |
deploy(String applicationId,
String versionId,
String ctxPath,
Collection<String> servers,
Collection<String> groups)
|
void |
deploy(String applicationId,
String versionId,
String ctxPath,
Collection<String> servers,
Collection<String> groups,
String virtualHostName)
Deploy application to specified servers. |
void |
deploy(String applicationId,
String versionId,
String ctxPath,
Collection<String> servers,
Collection<String> groups,
String virtualHost,
boolean disableScripts,
File scriptDescriptionFile)
|
ApplicationInfo |
enableNinjaMode(String serverId,
String appId)
Enables inplace edit mode (ninja) for given application on a given server |
List<ServerInfo> |
expandGroup(String groupName)
|
ApplicationInfo |
finishNinjaUpdate(String serverId,
String appId,
String verId)
Finishes inplace edit (ninja) update on given server for given application. |
ApplicationInfo |
getApplication(String applicationId)
Returns current info about an application. |
Map<String,ApplicationInfo> |
getApplications()
Lists all applications. |
CommandCenterUpdate |
getCommandCenterUpdate()
|
List<ServerGroup> |
getGroups(String name)
|
Date |
getLastFailoverSyncTime()
Returns date of last time when this servers synced with failover server. |
String |
getMetadata(String appId,
String versionId)
|
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. |
boolean |
getVerbose()
|
String |
getVersion()
|
boolean |
isAlive()
|
boolean |
registerAsFailover(String primaryHost,
int primaryPort,
String token)
Returns true is registration was OK. |
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 |
resumeUpdate(Long updateId)
Resumes manual update by id. |
void |
syncWithFailover()
If this server has failover slave - this will schedule synchronizing in 3s. |
void |
undeploy(String applicationId,
Collection<String> servers)
Undeploy application from specified servers. |
void |
undeploy(String applicationId,
Collection<String> servers,
Collection<String> groups)
Undeploy application from specified servers. |
void |
undeploy(String applicationId,
Collection<String> servers,
Collection<String> groups,
boolean disableScripts,
File scriptDescriptionFile)
|
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)
Uploads new version of an application. |
boolean |
uploadLicense(File license)
|
boolean |
uploadMetadata(File file,
String appId,
String versionId)
|
| 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.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.
UploadInfo upload(String applicationId,
String fromVersion,
File diff)
throws DuplicationException
applicationId - - application identificatorfromVersion - - version on which this diff is basedfile - archive file.
DuplicationException - if the given version already exists on the server.
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)
primaryHost - - primary server hostprimaryPort - - primary server porttoken - - primary server user auth-token that will be used for initial authentication
void syncWithFailover()
boolean checkPrimaryAlive()
boolean getVerbose()
void deploy(String applicationId,
String versionId,
String ctxPath,
Collection<String> servers)
deploy(String, String, String, Collection, Collection, String)
void deploy(String applicationId,
String versionId,
String ctxPath,
Collection<String> servers,
Collection<String> groups)
deploy(String, String, String, Collection, Collection, String)
void deploy(String applicationId,
String versionId,
String ctxPath,
Collection<String> servers,
Collection<String> groups,
String virtualHostName)
applicationId - - application idctxPath - - context path for serversservers - - server jvmid-svirtualHostName - - name of the virtual host to be used for deploying
void deploy(String applicationId,
String versionId,
String ctxPath,
Collection<String> servers,
Collection<String> groups,
String virtualHost,
boolean disableScripts,
File scriptDescriptionFile)
deploy(String, String, String, Collection, Collection, String)void remove(String applicationId)
app - - application id
void removeVersion(String appId,
String versionId)
appId - versionId -
void undeploy(String applicationId,
Collection<String> servers)
applicationId - - application idservers - - server jvmid-s
void undeploy(String applicationId,
Collection<String> servers,
Collection<String> groups)
applicationId - - application idservers - - server jvmid-s
void undeploy(String applicationId,
Collection<String> servers,
Collection<String> groups,
boolean disableScripts,
File scriptDescriptionFile)
Date getLastFailoverSyncTime()
boolean resumeUpdate(Long updateId)
updateId -
boolean cancelUpdate(Long updateId)
updateId -
List<Long> getRunningPausedUpdateIds()
ApplicationInfo enableNinjaMode(String serverId,
String appId)
ApplicationInfo finishNinjaUpdate(String serverId,
String appId,
String verId)
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> getGroups(String name)
List<ServerInfo> expandGroup(String groupName)
boolean deleteGroup(String name)
CommandCenterUpdate getCommandCenterUpdate()
AgentUpdate updateAgent()
boolean uploadMetadata(File file,
String appId,
String versionId)
String getMetadata(String appId,
String versionId)
String getVersion()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||