org.terracotta.maven.plugins.tc
Class DsoTerminateMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.terracotta.maven.plugins.tc.AbstractDsoMojo
          extended by org.terracotta.maven.plugins.tc.DsoLifecycleMojo
              extended by org.terracotta.maven.plugins.tc.AbstractDsoRunMojo
                  extended by org.terracotta.maven.plugins.tc.DsoTerminateMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
DsoTerminateIntegrationMojo

public class DsoTerminateMojo
extends AbstractDsoRunMojo

Terminate running DSO processes.

This goal will only stops DSO-enabled web servers started with tc:run (these processes don't finish on their own and need to be brought down).

Author:
Eugene Kuleshov
See Also:
DsoRunMojo

Nested Class Summary
 
Nested classes/interfaces inherited from class org.terracotta.maven.plugins.tc.AbstractDsoMojo
AbstractDsoMojo.CargoStartable, AbstractDsoMojo.CmdStartable, AbstractDsoMojo.Startable
 
Field Summary
 
Fields inherited from class org.terracotta.maven.plugins.tc.AbstractDsoRunMojo
activeNodes
 
Fields inherited from class org.terracotta.maven.plugins.tc.DsoLifecycleMojo
overwriteBootjar, serverName, spawnServer, startServer, verbose
 
Fields inherited from class org.terracotta.maven.plugins.tc.AbstractDsoMojo
bootJar, classpathElements, config, CONTEXT_KEY_STARTABLES, debugPort, jvm, jvmargs, jvmdebug, localRepository, mode, modules, numberOfNodes, pluginArtifacts, processes, remoteRepositories, resolver, workingDirectory
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
DsoTerminateMojo()
           
 
Method Summary
protected  boolean generateBootJar()
           
protected  void onExecute()
           
protected  boolean startDsoServer()
           
protected  boolean stopDsoServer()
           
 
Methods inherited from class org.terracotta.maven.plugins.tc.AbstractDsoRunMojo
getActiveNodes, waitForCompletion
 
Methods inherited from class org.terracotta.maven.plugins.tc.DsoLifecycleMojo
execute
 
Methods inherited from class org.terracotta.maven.plugins.tc.AbstractDsoMojo
createCommandLine, createJvmArguments, createJvmArguments, createPluginClasspath, createPluginClasspathAsFile, createProjectClasspath, getAdditionalModules, getClientConfig, getJMXUrl, getModulesRepository, getServerConfig, getServerStatus, getStartables, getTerracottaArtifact, isCustomMode, quoteIfNeeded, resolveModuleArtifacts, resolveModuleArtifacts, setJvm, setJvmargs
 
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DsoTerminateMojo

public DsoTerminateMojo()
Method Detail

onExecute

protected void onExecute()
                  throws org.apache.maven.plugin.MojoExecutionException,
                         org.apache.maven.plugin.MojoFailureException
Specified by:
onExecute in class DsoLifecycleMojo
Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException

generateBootJar

protected boolean generateBootJar()
Overrides:
generateBootJar in class DsoLifecycleMojo

startDsoServer

protected boolean startDsoServer()
Overrides:
startDsoServer in class DsoLifecycleMojo

stopDsoServer

protected boolean stopDsoServer()
Overrides:
stopDsoServer in class DsoLifecycleMojo


Copyright © 2010 Terracotta, Inc.. All Rights Reserved.