public class CommandCenterUpdateImpl extends Object implements CommandCenterUpdate
| Modifier and Type | Field and Description |
|---|---|
protected RestConnection |
con |
protected JsonParser |
parser |
| Constructor and Description |
|---|
CommandCenterUpdateImpl(RestConnection con,
JsonParser parser) |
| Modifier and Type | Method and Description |
|---|---|
LiveRebelVersionInfo |
download(String id)
Downloads new version archive (throws error if there's are no new version to download).
|
void |
execute(String id)
Executes the update (extract the archive).
|
LiveRebelInfo |
getInfo() |
void |
remove(String id)
Removes the given version.
|
void |
update(String id)
Update LiveRebel and Agents to the given version.
|
LiveRebelVersionInfo |
upload(File file)
Uploads new version archive.
|
protected final RestConnection con
protected final JsonParser parser
public CommandCenterUpdateImpl(RestConnection con, JsonParser parser)
public LiveRebelInfo getInfo()
getInfo in interface CommandCenterUpdatepublic LiveRebelVersionInfo upload(File file)
CommandCenterUpdateupload in interface CommandCenterUpdatepublic LiveRebelVersionInfo download(String id)
CommandCenterUpdatedownload in interface CommandCenterUpdateid - version Id.public void remove(String id)
CommandCenterUpdateremove in interface CommandCenterUpdateid - version Id.public void execute(String id)
CommandCenterUpdateexecute in interface CommandCenterUpdateid - version Id.public void update(String id)
CommandCenterUpdateupdate in interface CommandCenterUpdateid - version Id.Copyright © 2012. All Rights Reserved.