|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD |
java.lang.Object org.zirbes.grails.deploy.DeployerService
class DeployerService
This service is a groovy wrapper for a lot of the cargo factory classes and for common deployment commands. It uses configuration Maps that are returned by the static ConfigurationBuilder.loadConfiguration() method, but will work with any kind of Map as long as the proper attributes are included. More information about cargo can be found at http://cargo.codehaus.org
Property Summary | |
---|---|
java.lang.Object |
log
|
Constructor Summary | |
DeployerService()
|
Method Summary | |
---|---|
java.lang.Object
|
checkConfiguration(java.lang.Object configuration)
Checks to ensure a configuration supports deployment of a WAR file |
java.lang.Object
|
getConfig(java.lang.Object configuration)
Returns a Configuration object for the specific configuration destination you are using. |
java.lang.Object
|
getContainer(java.lang.Object configuration)
Returns a Container object for the specific configuration destination you are using. |
java.lang.Object
|
getDeployedApps(java.lang.Object deployer)
Returns a list of deployed applications from a tomcat application server. |
java.lang.Object
|
getDeployer(java.lang.Object configuration)
Returns a Deployer object for the specific configuration destination you are using. |
java.lang.Object
|
getSettingConstantsLink()
Returns a URL listing all the available propertySet values you can use within a deployment destination |
java.lang.Object
|
getWar(java.lang.Object configuration, java.io.File warFile)
Returns a Deployable object for the specific containerId you have configured. |
java.lang.Object
|
runAction(java.lang.Object configuration, java.io.File warFile, java.lang.String action)
Runs an option on a particular deployment destination for the specific configuraiton destination that you are using. |
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Property Detail |
---|
java.lang.Object log
Constructor Detail |
---|
DeployerService()
Method Detail |
---|
java.lang.Object checkConfiguration(java.lang.Object configuration)
java.lang.Object getConfig(java.lang.Object configuration)
configuration
- a configuration object as returned by the ConfigurationBuilder.
java.lang.Object getContainer(java.lang.Object configuration)
configuration
- a configuration object as returned by the ConfigurationBuilder.
java.lang.Object getDeployedApps(java.lang.Object deployer)
deployer a
- Deployer object that supports the .list() method.
java.lang.Object getDeployer(java.lang.Object configuration)
configuration
- a configuration object as returned by the ConfigurationBuilder.
java.lang.Object getSettingConstantsLink()
java.lang.Object getWar(java.lang.Object configuration, java.io.File warFile)
configuration
- a configuration object as returned by the ConfigurationBuilder.warFile a
- File object representing the WAR file you wish to deploy.
java.lang.Object runAction(java.lang.Object configuration, java.io.File warFile, java.lang.String action)
configuration a
- configuration object as returned by the ConfigurationBuilder.warFile a
- File object representing the WAR file you wish to deploy.action a
- String containing one of the supported actions of your Deployer. The available options are 'deploy', 'redeploy', 'start', 'stop', 'undeploy', and 'list'. List is only supported on a small set of containers, one of which is Tomcat.
Groovy Documentation