// Path: core/src/main/java/com/ccoe/build/core/model/Plugin.java
// public class Plugin extends TrackingModel {
// 	private String groupId;
// 	private String artifactId;
// 	private String version;
// 	
// 	private String status;
// 	private String executionId;
// 	
// 	private String phaseName;
// 	private String pluginKey;
// 	
// 	private int id;
// 	
// 	private String payload;
// 
// 	public String getGroupId() {
// 		return groupId;
// 	}
// 
// 	public void setGroupId(String groupId) {
// 		this.groupId = groupId;
// 	}
// 
// 	public String getArtifactId() {
// 		return artifactId;
// 	}
// 
// 	public void setArtifactId(String artifactId) {
// 		this.artifactId = artifactId;
// 	}
// 
// 	public String getVersion() {
// 		return version;
// 	}
// 
// 	public void setVersion(String version) {
// 		this.version = version;
// 	}
// 
// 	public String getStatus() {
// 		return status;
// 	}
// 
// 	public void setStatus(String status) {
// 		this.status = status;
// 	}
// 
// 	public String getExecutionId() {
// 		return executionId;
// 	}
// 
// 	public void setExecutionId(String executionId) {
// 		this.executionId = executionId;
// 	}
// 
// 	public String getPhaseName() {
// 		return phaseName;
// 	}
// 
// 	public void setPhaseName(String phaseName) {
// 		this.phaseName = phaseName;
// 	}
// 
// 	public String getPluginKey() {
// 		return pluginKey;
// 	}
// 
// 	public void setPluginKey(String pluginKey) {
// 		this.pluginKey = pluginKey;
// 	}
// 
// 	public int getId() {
// 		return id;
// 	}
// 
// 	public void setId(int id) {
// 		this.id = id;
// 	}
// 
// 	public String getPayload() {
// 		return payload;
// 	}
// 
// 	public void setPayload(String payload) {
// 		this.payload = payload;
// 	}
// 	
// 	public String toString() {
// 		StringBuffer sBuffer = new StringBuffer();
// 		appendTransactionAtom(sBuffer, 4, "Plugin", getPluginKey(), this.getStatus(), getDuration().toString(), getPayload());
// 		return sBuffer.toString();
// 	}
// }
// 
// Path: profiler/src/main/java/com/ccoe/build/profiler/util/Timer.java
// public class Timer {
// 
// 	public static final int MS_PER_SEC = 1000;
// 	public static final int SEC_PER_MIN = 60;
// 
// 	private long start;
// 	private long elaspsedTime;
// 
// 	public Timer() {
// 		start = System.currentTimeMillis();
// 	}
// 
// 	public void stop() {
// 		elaspsedTime = elapsedTime();
// 	}
// 
// 	public long getTime() {
// 		return elaspsedTime;
// 	}
// 	
// 	public long getStartTime() {
// 		return this.start;
// 	}
// 
// 	private long elapsedTime() {
// 		return System.currentTimeMillis() - start;
// 	}
// 
// 	public static String formatTime(long ms) {
// 		long secs = ms / MS_PER_SEC;
// 		long mins = secs / SEC_PER_MIN;
// 		secs = secs % SEC_PER_MIN;
// 		long fractionOfASecond = ms - (secs * 1000);
// 
// 		String msg = mins + "m " + secs + "." + fractionOfASecond;
// 
// 		if (msg.length() == 3) {
// 			msg += "00s";
// 		} else if (msg.length() == 4) {
// 			msg += "0s";
// 		} else {
// 			msg += "s";
// 		}
// 		
// 		msg = ms + " ms ( " + msg + " )"; 
// 
// 		return msg;
// 	}
// }


import java.util.Date;
import org.apache.maven.eventspy.EventSpy.Context;
import org.apache.maven.execution.ExecutionEvent;
import org.apache.maven.plugin.MojoExecution;
import com.ccoe.build.core.model.Plugin;
import com.ccoe.build.profiler.util.Timer;
/*
Copyright [2013-2014] eBay Software Foundation

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

*/

package com.ccoe.build.profiler.profile;




/**
 * 
 * This Class holds the Mojo profiling information
 * 
 * @author kmuralidharan
 * 
 */

public class MojoProfile extends Profile {

	private MojoExecution mojoExecution;

	private String status;
	private String executionMsg;

	private String pluginGroupID;
	private String pluginArtifactID;
	private String pluginVersion;
	private String pluginExecutionId;
	
// Path: core/src/main/java/com/ccoe/build/core/model/Plugin.java
// public class Plugin extends TrackingModel {
// 	private String groupId;
// 	private String artifactId;
// 	private String version;
// 	
// 	private String status;
// 	private String executionId;
// 	
// 	private String phaseName;
// 	private String pluginKey;
// 	
// 	private int id;
// 	
// 	private String payload;
// 
// 	public String getGroupId() {
// 		return groupId;
// 	}
// 
// 	public void setGroupId(String groupId) {
// 		this.groupId = groupId;
// 	}
// 
// 	public String getArtifactId() {
// 		return artifactId;
// 	}
// 
// 	public void setArtifactId(String artifactId) {
// 		this.artifactId = artifactId;
// 	}
// 
// 	public String getVersion() {
// 		return version;
// 	}
// 
// 	public void setVersion(String version) {
// 		this.version = version;
// 	}
// 
// 	public String getStatus() {
// 		return status;
// 	}
// 
// 	public void setStatus(String status) {
// 		this.status = status;
// 	}
// 
// 	public String getExecutionId() {
// 		return executionId;
// 	}
// 
// 	public void setExecutionId(String executionId) {
// 		this.executionId = executionId;
// 	}
// 
// 	public String getPhaseName() {
// 		return phaseName;
// 	}
// 
// 	public void setPhaseName(String phaseName) {
// 		this.phaseName = phaseName;
// 	}
// 
// 	public String getPluginKey() {
// 		return pluginKey;
// 	}
// 
// 	public void setPluginKey(String pluginKey) {
// 		this.pluginKey = pluginKey;
// 	}
// 
// 	public int getId() {
// 		return id;
// 	}
// 
// 	public void setId(int id) {
// 		this.id = id;
// 	}
// 
// 	public String getPayload() {
// 		return payload;
// 	}
// 
// 	public void setPayload(String payload) {
// 		this.payload = payload;
// 	}
// 	
// 	public String toString() {
// 		StringBuffer sBuffer = new StringBuffer();
// 		appendTransactionAtom(sBuffer, 4, "Plugin", getPluginKey(), this.getStatus(), getDuration().toString(), getPayload());
// 		return sBuffer.toString();
// 	}
// }
// 
// Path: profiler/src/main/java/com/ccoe/build/profiler/util/Timer.java
// public class Timer {
// 
// 	public static final int MS_PER_SEC = 1000;
// 	public static final int SEC_PER_MIN = 60;
// 
// 	private long start;
// 	private long elaspsedTime;
// 
// 	public Timer() {
// 		start = System.currentTimeMillis();
// 	}
// 
// 	public void stop() {
// 		elaspsedTime = elapsedTime();
// 	}
// 
// 	public long getTime() {
// 		return elaspsedTime;
// 	}
// 	
// 	public long getStartTime() {
// 		return this.start;
// 	}
// 
// 	private long elapsedTime() {
// 		return System.currentTimeMillis() - start;
// 	}
// 
// 	public static String formatTime(long ms) {
// 		long secs = ms / MS_PER_SEC;
// 		long mins = secs / SEC_PER_MIN;
// 		secs = secs % SEC_PER_MIN;
// 		long fractionOfASecond = ms - (secs * 1000);
// 
// 		String msg = mins + "m " + secs + "." + fractionOfASecond;
// 
// 		if (msg.length() == 3) {
// 			msg += "00s";
// 		} else if (msg.length() == 4) {
// 			msg += "0s";
// 		} else {
// 			msg += "s";
// 		}
// 		
// 		msg = ms + " ms ( " + msg + " )"; 
// 
// 		return msg;
// 	}
// }


// Path: profiler/src/main/java/com/ccoe/build/profiler/profile/MojoProfile.java
import java.util.Date;
import org.apache.maven.eventspy.EventSpy.Context;
import org.apache.maven.execution.ExecutionEvent;
import org.apache.maven.plugin.MojoExecution;
import com.ccoe.build.core.model.Plugin;
import com.ccoe.build.profiler.util.Timer;

/*
Copyright [2013-2014] eBay Software Foundation

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

*/

package com.ccoe.build.profiler.profile;




/**
 * 
 * This Class holds the Mojo profiling information
 * 
 * @author kmuralidharan
 * 
 */

public class MojoProfile extends Profile {

	private MojoExecution mojoExecution;

	private String status;
	private String executionMsg;

	private String pluginGroupID;
	private String pluginArtifactID;
	private String pluginVersion;
	private String pluginExecutionId;
	
	private Plugin plugin = new Plugin();