|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.zeroturnaround.liverebel.api.impl.update.UpdateImpl
public class UpdateImpl
| Constructor Summary | |
|---|---|
UpdateImpl(RestConnection con,
JsonParser parser,
String applicationId,
String versionId)
|
|
| Method Summary | |
|---|---|
ConfigurableUpdate |
enableAutoStrategy(boolean ignoreWarnings)
Use whatever-is-clever for given update. |
ConfigurableUpdate |
enableOffline()
Use the off-line version update mode. |
ConfigurableUpdate |
enableRolling()
Use the rolling restart update mode. |
void |
execute()
Execute this update and wait until it's finished. |
PausedUpdate |
executeWithPause()
Execute this update with a pause. |
boolean |
isOffline()
|
boolean |
isRolling()
|
ConfigurableUpdate |
on(Collection<String> serverIds)
Change the version only on the given servers. |
ConfigurableUpdate |
on(String serverId)
Change the version only on the given server. |
RunningUpdate |
start()
Start this update. |
PausingUpdate |
startWithPause()
Start this update with a pause. |
String |
toString()
|
ConfigurableUpdate |
withTimeout(int seconds)
Change the timeout value for: in case of HOTPATCH: waiting for current requests to finish in case of ROLLING: waiting for session drain to finish in case of OFFLINE: waiting for current socket connections to close |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public UpdateImpl(RestConnection con,
JsonParser parser,
String applicationId,
String versionId)
| Method Detail |
|---|
public ConfigurableUpdate on(String serverId)
ConfigurableUpdate
on in interface ConfigurableUpdateserverId - server Id.public ConfigurableUpdate on(Collection<String> serverIds)
ConfigurableUpdate
on in interface ConfigurableUpdateserverIds - server Ids.public ConfigurableUpdate withTimeout(int seconds)
ConfigurableUpdate
withTimeout in interface ConfigurableUpdateseconds - timeout value (in seconds).public ConfigurableUpdate enableOffline()
ConfigurableUpdate
enableOffline in interface ConfigurableUpdatepublic boolean isOffline()
public ConfigurableUpdate enableRolling()
ConfigurableUpdate
enableRolling in interface ConfigurableUpdatepublic boolean isRolling()
public void execute()
PreparedUpdate
execute in interface PreparedUpdatepublic PausedUpdate executeWithPause()
PreparedPausableUpdate
While all incoming requests are blocked user can e.g. update the database
and then invoke PausedUpdate.resume() when ready to finish this update.
executeWithPause in interface PreparedPausableUpdatepublic RunningUpdate start()
PreparedUpdate
start in interface PreparedUpdatepublic PausingUpdate startWithPause()
PreparedPausableUpdate
startWithPause in interface PreparedPausableUpdatepublic ConfigurableUpdate enableAutoStrategy(boolean ignoreWarnings)
ConfigurableUpdate
enableAutoStrategy in interface ConfigurableUpdatepublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||