|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
org.terracotta.maven.plugins.tc.AbstractDsoMojo
public abstract class AbstractDsoMojo
Nested Class Summary | |
---|---|
class |
AbstractDsoMojo.CargoStartable
|
class |
AbstractDsoMojo.CmdStartable
|
static interface |
AbstractDsoMojo.Startable
|
Field Summary | |
---|---|
protected java.io.File |
bootJar
Location of the generated DSO boot jar |
protected java.util.List<java.lang.String> |
classpathElements
Project classpath. |
protected java.io.File |
config
Location of the DSO config (tc-config.xml) |
static java.lang.String |
CONTEXT_KEY_STARTABLES
|
protected int |
debugPort
|
protected java.lang.String |
jvm
Path to the java executable to use to spawned processes |
protected java.lang.String |
jvmargs
Arguments for the spawned java processes |
protected boolean |
jvmdebug
Enable remote JVM debugging for the started process |
protected org.apache.maven.artifact.repository.ArtifactRepository |
localRepository
ArtifactRepository of the localRepository. |
protected java.lang.String |
mode
TC mode, either 'custom' or 'express'. |
protected java.lang.String |
modules
Optional modules that should be enabled in DSO, for example for tc:run and tc:bootjar goals For example: org.mortbay.jetty.tim-jetty-6.1.4;bundle-version:=1.1.0.SNAPSHOT |
protected int |
numberOfNodes
Number of nodes to start (not recommended, use processes element instead) |
protected java.util.List<org.apache.maven.artifact.Artifact> |
pluginArtifacts
Plugin artifacts |
protected ProcessConfiguration[] |
processes
Configuration for the DSO-enabled processes to start. |
protected java.util.List<org.apache.maven.artifact.repository.ArtifactRepository> |
remoteRepositories
Remote repositories declared in the project pom |
protected DsoArtifactResolver |
resolver
DSO artifact resolver |
protected java.io.File |
workingDirectory
Working directory for the spawned java processes |
Fields inherited from interface org.apache.maven.plugin.Mojo |
---|
ROLE |
Constructor Summary | |
---|---|
AbstractDsoMojo()
|
|
AbstractDsoMojo(AbstractDsoMojo mojo)
|
Method Summary | |
---|---|
protected Commandline |
createCommandLine()
|
protected java.lang.String |
createJvmArguments()
|
protected java.lang.String |
createJvmArguments(ProcessConfiguration process,
java.lang.String nodeName,
int totalNumberOfNodes)
|
protected java.lang.String |
createPluginClasspath()
|
protected java.lang.String |
createPluginClasspathAsFile()
|
protected java.lang.String |
createProjectClasspath()
|
protected java.util.List<com.terracottatech.config.Module> |
getAdditionalModules()
Collect additional modules from all processes |
protected com.tc.config.schema.NewCommonL1Config |
getClientConfig()
|
protected java.lang.String |
getJMXUrl(com.tc.config.schema.NewCommonL2Config config)
|
protected java.lang.String |
getModulesRepository()
|
protected com.tc.config.schema.NewCommonL2Config |
getServerConfig(java.lang.String serverName)
|
java.lang.String |
getServerStatus(java.lang.String jmxUrl)
|
protected java.util.List<AbstractDsoMojo.Startable> |
getStartables()
|
protected org.apache.maven.artifact.Artifact |
getTerracottaArtifact()
|
protected boolean |
isCustomMode()
|
protected java.lang.String |
quoteIfNeeded(java.lang.String path)
|
protected void |
resolveModuleArtifacts()
|
protected void |
resolveModuleArtifacts(java.util.List<com.terracottatech.config.Module> additionalModules)
|
void |
setJvm(java.lang.String jvm)
|
void |
setJvmargs(java.lang.String jvmargs)
|
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 |
Methods inherited from interface org.apache.maven.plugin.Mojo |
---|
execute |
Field Detail |
---|
public static final java.lang.String CONTEXT_KEY_STARTABLES
protected org.apache.maven.artifact.repository.ArtifactRepository localRepository
protected java.util.List<org.apache.maven.artifact.repository.ArtifactRepository> remoteRepositories
protected java.util.List<java.lang.String> classpathElements
protected java.util.List<org.apache.maven.artifact.Artifact> pluginArtifacts
protected java.lang.String jvm
protected java.lang.String jvmargs
protected boolean jvmdebug
protected java.io.File workingDirectory
protected java.io.File config
protected java.lang.String modules
protected ProcessConfiguration[] processes
<processes> <process nodeName="master" count="1" arguments="someArgument" jvmargs="-Xmx20m" modules="org.mortbay.jetty.tim-jetty-6.1.4;bundle-version:=1.1.0.SNAPSHOT"> <className>org.terracotta.maven.plugins.tc.test.MasterProcess</className> <process/> <process nodeName="sample" count="2" jvmargs="-Xmx20m" className="org.terracotta.maven.plugins.tc.test.SampleProcess"> <systemProperty key="foo" value="boo"/> </process> <process nodeName="tomcat" count="2" jvmargs="-Xmx20m"> <container> <containerId>tomcat5x</containerId> <zipUrlInstaller> <url>http://www.apache.org/dist/tomcat/tomcat-5/v5.5.25/bin/apache-tomcat-5.5.25.zip</url> <installDir>${project.build.directory}/install/tomcat5x</installDir> </zipUrlInstaller> </container> </process> </processes>See Launching and Cargo sections for more details.
protected DsoArtifactResolver resolver
protected int numberOfNodes
protected java.lang.String mode
protected java.io.File bootJar
protected int debugPort
Constructor Detail |
---|
public AbstractDsoMojo()
public AbstractDsoMojo(AbstractDsoMojo mojo)
Method Detail |
---|
protected Commandline createCommandLine()
protected java.lang.String createJvmArguments()
protected java.lang.String getModulesRepository()
protected java.lang.String createProjectClasspath()
protected java.lang.String createPluginClasspath()
protected java.lang.String createPluginClasspathAsFile()
protected org.apache.maven.artifact.Artifact getTerracottaArtifact()
protected java.lang.String quoteIfNeeded(java.lang.String path)
protected boolean isCustomMode()
public java.lang.String getServerStatus(java.lang.String jmxUrl) throws java.net.MalformedURLException, java.io.IOException
java.net.MalformedURLException
java.io.IOException
protected java.lang.String getJMXUrl(com.tc.config.schema.NewCommonL2Config config)
protected com.tc.config.schema.NewCommonL2Config getServerConfig(java.lang.String serverName) throws com.tc.config.schema.setup.ConfigurationSetupException
com.tc.config.schema.setup.ConfigurationSetupException
protected com.tc.config.schema.NewCommonL1Config getClientConfig() throws com.tc.config.schema.setup.ConfigurationSetupException
com.tc.config.schema.setup.ConfigurationSetupException
protected void resolveModuleArtifacts() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected void resolveModuleArtifacts(java.util.List<com.terracottatech.config.Module> additionalModules) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected java.util.List<com.terracottatech.config.Module> getAdditionalModules()
List
of Module
instancesprotected java.util.List<AbstractDsoMojo.Startable> getStartables() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected java.lang.String createJvmArguments(ProcessConfiguration process, java.lang.String nodeName, int totalNumberOfNodes)
public void setJvmargs(java.lang.String jvmargs)
public void setJvm(java.lang.String jvm)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |