com.zeroturnaround.liverebel.api.impl
Class CommandCenterUpdateImpl

java.lang.Object
  extended by com.zeroturnaround.liverebel.api.impl.CommandCenterUpdateImpl
All Implemented Interfaces:
CommandCenterUpdate

public class CommandCenterUpdateImpl
extends Object
implements CommandCenterUpdate


Field Summary
protected  RestConnection con
           
protected  JsonParser parser
           
 
Constructor Summary
CommandCenterUpdateImpl(RestConnection con, JsonParser parser)
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

con

protected final RestConnection con

parser

protected final JsonParser parser
Constructor Detail

CommandCenterUpdateImpl

public CommandCenterUpdateImpl(RestConnection con,
                               JsonParser parser)
Method Detail

getInfo

public LiveRebelInfo getInfo()
Specified by:
getInfo in interface CommandCenterUpdate
Returns:
current info about LiveRebel versions.

upload

public LiveRebelVersionInfo upload(File file)
Description copied from interface: CommandCenterUpdate
Uploads new version archive.

Specified by:
upload in interface CommandCenterUpdate
Returns:
info about the uploaded version.

download

public LiveRebelVersionInfo download(String id)
Description copied from interface: CommandCenterUpdate
Downloads new version archive (throws error if there's are no new version to download).

Specified by:
download in interface CommandCenterUpdate
Parameters:
id - version Id.
Returns:
info about the downloaded version.

remove

public void remove(String id)
Description copied from interface: CommandCenterUpdate
Removes the given version.

Specified by:
remove in interface CommandCenterUpdate
Parameters:
id - version Id.

execute

public void execute(String id)
Description copied from interface: CommandCenterUpdate
Executes the update (extract the archive). This updates only the Command Center.

Specified by:
execute in interface CommandCenterUpdate
Parameters:
id - version Id.

update

public void update(String id)
Description copied from interface: CommandCenterUpdate
Update LiveRebel and Agents to the given version. This method initalizes a two step process that will first update the Command Center and then when it comes back up, will automatically proceed with the second step, which is to update LiveRebel Agents.

Specified by:
update in interface CommandCenterUpdate
Parameters:
id - version Id.


Copyright © 2012. All Rights Reserved.