com.zeroturnaround.liverebel.api.impl
Class DeployImpl

java.lang.Object
  extended by com.zeroturnaround.liverebel.api.impl.update.AppOperation
      extended by com.zeroturnaround.liverebel.api.impl.DeployImpl
All Implemented Interfaces:
ConfigurableDeploy, PreparedDeploy

public class DeployImpl
extends AppOperation
implements ConfigurableDeploy

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
DeployImpl(RestConnection con, JsonParser parser, String applicationId, String versionId)
           
 
Method Summary
 ConfigurableDeploy disableScriptExecution()
          Disables script execution steps for this deploy.
 ConfigurableDeploy disableScriptExecution(boolean disable)
           
 Long execute()
          Execute this deploy operation and wait until it's finished.
 ConfigurableDeploy on(Collection<String> serverIds)
          Change the version only on the given servers.
 ConfigurableDeploy on(String serverId)
          Change the version only on the given server.
 ConfigurableDeploy onGroup(String groupName)
          Change the version only on the given group.
 ConfigurableDeploy onGroups(Collection<String> groupNames)
          Change the version only on the given groups.
 ConfigurableDeploy setContextPath(String ctxPath)
           
 ConfigurableDeploy setFileServerDeploymentPath(String path)
           
 ConfigurableDeploy setProxyTargetServerId(String id)
           
 ConfigurableDeploy setSchemaIds(Collection<Long> schemaIds)
           
 ConfigurableDeploy setScriptEntriesArchive(File scriptEntriesArchive)
           
 ConfigurableDeploy setScriptExecutionDescription(File scriptDescription)
           
 ConfigurableDeploy setVirtualHostName(String virtualHostName)
           
 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

DeployImpl

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

on

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

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

on

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

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

onGroup

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

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

onGroups

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

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

disableScriptExecution

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

Specified by:
disableScriptExecution in interface ConfigurableDeploy

disableScriptExecution

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

setScriptExecutionDescription

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

setScriptEntriesArchive

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

setProxyTargetServerId

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

setSchemaIds

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

setContextPath

public ConfigurableDeploy setContextPath(String ctxPath)
Specified by:
setContextPath in interface ConfigurableDeploy
Parameters:
ctxPath - context path for deploying onto application servers.

setVirtualHostName

public ConfigurableDeploy setVirtualHostName(String virtualHostName)
Specified by:
setVirtualHostName in interface ConfigurableDeploy
Parameters:
virtualHostName - name of the virtual host to be used for deploying onto application servers.

setFileServerDeploymentPath

public ConfigurableDeploy setFileServerDeploymentPath(String path)
Specified by:
setFileServerDeploymentPath in interface ConfigurableDeploy
Parameters:
path - relative or absolute path used for file servers.

execute

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

Specified by:
execute in interface PreparedDeploy
Returns:
task ID

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013. All Rights Reserved.