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 disableScriptExecution()
          Enables script execution steps for this update.
 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 onGroup(String groupName)
          Change the version only on the given group.
 ConfigurableUpdate onGroups(Collection<String> groupNames)
          Change the version only on the given groups.
 ConfigurableUpdate setProxyTargetServerId(String id)
           
 ConfigurableUpdate setSchemaIds(Collection<Long> schemaIds)
           
 ConfigurableUpdate setScriptEntriesArchive(File scriptEntriesArchive)
           
 ConfigurableUpdate setScriptExecutionDescription(File scriptDescription)
           
 ConfigurableUpdate setSkipSingleRootDirectory(boolean skipSingleRootDirectory)
           
 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.

onGroup

ConfigurableUpdate onGroup(String groupName)
Change the version only on the given group.

Parameters:
groupName - group's name.

onGroups

ConfigurableUpdate onGroups(Collection<String> groupNames)
Change the version only on the given groups.

Parameters:
groupNames - groups' names.

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.


disableScriptExecution

ConfigurableUpdate disableScriptExecution()
Enables script execution steps for this update.


enableAutoStrategy

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


setScriptExecutionDescription

ConfigurableUpdate setScriptExecutionDescription(File scriptDescription)
Parameters:
scriptDescription - - file with a description of which scripts to run

setScriptEntriesArchive

ConfigurableUpdate setScriptEntriesArchive(File scriptEntriesArchive)
Parameters:
entryArchive - - file, where are accumulated all entries used in scriptExecutionDescription, this file can be forwarded to the CC and nodes, so they'll have access to the scripts.

setProxyTargetServerId

ConfigurableUpdate setProxyTargetServerId(String id)
Parameters:
proxy - target server id

setSchemaIds

ConfigurableUpdate setSchemaIds(Collection<Long> schemaIds)
Parameters:
schemaIds - list of schema id's that need updating

setSkipSingleRootDirectory

ConfigurableUpdate setSkipSingleRootDirectory(boolean skipSingleRootDirectory)


Copyright © 2013. All Rights Reserved.