hudson.maven
Class ExecutedMojo

java.lang.Object
  extended by hudson.maven.ExecutedMojo
All Implemented Interfaces:
Serializable

public final class ExecutedMojo
extends Object
implements Serializable

Persisted record of mojo execution.

This information is first recorded in the maven process, then sent over the remoting layer to the master, then persisted via XStream.

Author:
Kohsuke Kawaguchi
See Also:
Serialized Form

Nested Class Summary
static class ExecutedMojo.Cache
          Used during the HTML rendering to cache the index.
 
Field Summary
 String artifactId
          Plugin artifact ID.
 String digest
          MD5 hash of the plugin jar.
 long duration
          How long did it take to execute this goal? in milli-seconds.
 String executionId
          Optional execution ID, when the same mojo gets executed multiple times.
 String goal
          Mojo name.
 String groupId
          Plugin group ID.
 String version
          Plugin version.
 
Constructor Summary
ExecutedMojo(MojoInfo mojo, long duration)
           
 
Method Summary
 String getDurationString()
          Returns duration in a human readable text.
 String getGoalLink(ExecutedMojo.Cache c)
           
 String getPluginLink(ExecutedMojo.Cache c)
          Returns a hyperlink for the plugin name if there's one.
 String getReadableExecutionId()
           
protected  Object readResolve()
          Lots of ExecutedMojos tend to have the same groupId, artifactId, etc., so interning them help with memory consumption.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

groupId

public final String groupId
Plugin group ID.


artifactId

public final String artifactId
Plugin artifact ID.


version

public final String version
Plugin version.


goal

public final String goal
Mojo name.


executionId

public final String executionId
Optional execution ID, when the same mojo gets executed multiple times.


duration

public final long duration
How long did it take to execute this goal? in milli-seconds. (precision might not be 1ms)


digest

public final String digest
MD5 hash of the plugin jar.

Constructor Detail

ExecutedMojo

public ExecutedMojo(MojoInfo mojo,
                    long duration)
Method Detail

readResolve

protected Object readResolve()
Lots of ExecutedMojos tend to have the same groupId, artifactId, etc., so interning them help with memory consumption. TODO: better if XStream has a declarative way of marking fields as "target for intern".


getDurationString

public String getDurationString()
Returns duration in a human readable text.


getReadableExecutionId

public String getReadableExecutionId()

getPluginLink

public String getPluginLink(ExecutedMojo.Cache c)
Returns a hyperlink for the plugin name if there's one. Otherwise null.


getGoalLink

public String getGoalLink(ExecutedMojo.Cache c)


Copyright © 2004-2013. All Rights Reserved.