com.zeroturnaround.liverebel.api.impl
Class UndeployImpl

java.lang.Object
  extended by com.zeroturnaround.liverebel.api.impl.update.AppOperation
      extended by com.zeroturnaround.liverebel.api.impl.UndeployImpl
All Implemented Interfaces:
ConfigurableUndeploy, PreparedUndeploy

public class UndeployImpl
extends AppOperation
implements ConfigurableUndeploy

Author:
Rein Raudjärv

Field Summary
 
Fields inherited from class com.zeroturnaround.liverebel.api.impl.update.AppOperation
applicationId, con, executeScripts, groupNames, parser, proxyTargetServerId, schemaIds, scriptDescriptionFile, scriptEntriesArchive, serverIds, versionId
 
Constructor Summary
UndeployImpl(RestConnection con, JsonParser parser, String applicationId)
           
 
Method Summary
 ConfigurableUndeploy disableScriptExecution()
          Disables script execution steps for this deploy.
 ConfigurableUndeploy disableScriptExecution(boolean disable)
           
 Long execute()
          Execute this undeploy operation and wait until it's finished.
 ConfigurableUndeploy on(Collection<String> serverIds)
          Change the version only on the given servers.
 ConfigurableUndeploy on(String serverId)
          Change the version only on the given server.
 ConfigurableUndeploy onGroup(String groupName)
          Change the version only on the given group.
 ConfigurableUndeploy onGroups(Collection<String> groupNames)
          Change the version only on the given groups.
 ConfigurableUndeploy setProxyTargetServerId(String id)
           
 ConfigurableUndeploy setSchemaIds(Collection<Long> schemaIds)
           
 ConfigurableUndeploy setScriptEntriesArchive(File scriptEntriesArchive)
           
 ConfigurableUndeploy setScriptExecutionDescription(File scriptDescription)
           
 String toString()
           
 
Methods inherited from class com.zeroturnaround.liverebel.api.impl.update.AppOperation
_disableScriptExecution, _disableScriptExecution, _on, _on, _onGroup, _onGroups, _setProxyTargetServerId, _setSchemaIds, _setScriptEntriesArchive, _setScriptExecutionDescription
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UndeployImpl

public UndeployImpl(RestConnection con,
                    JsonParser parser,
                    String applicationId)
Method Detail

on

public ConfigurableUndeploy on(String serverId)
Description copied from interface: ConfigurableUndeploy
Change the version only on the given server.

Specified by:
on in interface ConfigurableUndeploy
Parameters:
serverId - server Id.

on

public ConfigurableUndeploy on(Collection<String> serverIds)
Description copied from interface: ConfigurableUndeploy
Change the version only on the given servers.

Specified by:
on in interface ConfigurableUndeploy
Parameters:
serverIds - server Ids.

onGroup

public ConfigurableUndeploy onGroup(String groupName)
Description copied from interface: ConfigurableUndeploy
Change the version only on the given group.

Specified by:
onGroup in interface ConfigurableUndeploy
Parameters:
groupName - group's name.

onGroups

public ConfigurableUndeploy onGroups(Collection<String> groupNames)
Description copied from interface: ConfigurableUndeploy
Change the version only on the given groups.

Specified by:
onGroups in interface ConfigurableUndeploy
Parameters:
groupNames - groups' names.

disableScriptExecution

public ConfigurableUndeploy disableScriptExecution()
Description copied from interface: ConfigurableUndeploy
Disables script execution steps for this deploy. Same as ConfigurableUndeploy.disableScriptExecution(boolean) with true.

Specified by:
disableScriptExecution in interface ConfigurableUndeploy

disableScriptExecution

public ConfigurableUndeploy disableScriptExecution(boolean disable)
Specified by:
disableScriptExecution in interface ConfigurableUndeploy
Parameters:
disable - if true disables script execution steps for this deploy.

setScriptExecutionDescription

public ConfigurableUndeploy setScriptExecutionDescription(File scriptDescription)
Specified by:
setScriptExecutionDescription in interface ConfigurableUndeploy
Parameters:
scriptDescription - - file with a description of which scripts to run

setScriptEntriesArchive

public ConfigurableUndeploy setScriptEntriesArchive(File scriptEntriesArchive)
Specified by:
setScriptEntriesArchive in interface ConfigurableUndeploy

setProxyTargetServerId

public ConfigurableUndeploy setProxyTargetServerId(String id)
Specified by:
setProxyTargetServerId in interface ConfigurableUndeploy

setSchemaIds

public ConfigurableUndeploy setSchemaIds(Collection<Long> schemaIds)
Specified by:
setSchemaIds in interface ConfigurableUndeploy
Parameters:
schemaIds - list of schema id's that need updating

execute

public Long execute()
Description copied from interface: PreparedUndeploy
Execute this undeploy operation and wait until it's finished.

Specified by:
execute in interface PreparedUndeploy
Returns:
task ID

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013. All Rights Reserved.