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 restart()
          Execute restart (new version becomes active).
 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).

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

restart

public void restart()
Description copied from interface: CommandCenterUpdate
Execute restart (new version becomes active).

Specified by:
restart in interface CommandCenterUpdate


Copyright © 2012. All Rights Reserved.