com.zeroturnaround.liverebel.api.update
Interface ConfigurableUpdate

All Superinterfaces:
PreparedPausableUpdate, PreparedUpdate
All Known Implementing Classes:
UpdateImpl

public interface ConfigurableUpdate
extends PreparedPausableUpdate

Update which can be chosen its servers.

Author:
Rein Raudjärv

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.
 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.
 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 interface com.zeroturnaround.liverebel.api.update.PreparedPausableUpdate
executeWithPause, startWithPause
 
Methods inherited from interface com.zeroturnaround.liverebel.api.update.PreparedUpdate
execute, start
 

Method Detail

on

ConfigurableUpdate on(String serverId)
Change the version only on the given server.

Parameters:
serverId - server Id.

on

ConfigurableUpdate on(Collection<String> serverIds)
Change the version only on the given servers.

Parameters:
serverIds - server Ids.

withTimeout

ConfigurableUpdate withTimeout(int seconds)
Change the timeout value for:

Parameters:
seconds - timeout value (in seconds).

enableOffline

ConfigurableUpdate enableOffline()
Use the off-line version update mode.


enableRolling

ConfigurableUpdate enableRolling()
Use the rolling restart update mode.


enableAutoStrategy

ConfigurableUpdate enableAutoStrategy(boolean ignoreWarnings)
Use whatever-is-clever for given update. Ignore warnings shows if we want to hotpatch when compatible-with-warnings.



Copyright © 2012. All Rights Reserved.