mirror of
https://github.com/Fishwaldo/rundeck-api-java-client.git
synced 2025-07-06 04:58:26 +00:00
234 lines
10 KiB
HTML
234 lines
10 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<!-- Generated by Apache Maven Doxia at Nov 25, 2014 -->
|
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
|
<title>CPD Results</title>
|
|
<link rel="stylesheet" href="./css/apache-maven-fluido.min.css" />
|
|
<link rel="stylesheet" href="./css/site.css" />
|
|
<link rel="stylesheet" href="./css/print.css" media="print" />
|
|
<style>body{padding-top: 20px;}</style>
|
|
|
|
<script type="text/javascript" src="./js/apache-maven-fluido.min.js"></script>
|
|
|
|
|
|
<meta name="Date-Revision-yyyymmdd" content="20141125" />
|
|
<meta http-equiv="Content-Language" content="en" />
|
|
|
|
<!-- Google Analytics -->
|
|
<script type="text/javascript">
|
|
|
|
var _gaq = _gaq || [];
|
|
_gaq.push(['_setAccount', 'UA-23435653-1']);
|
|
_gaq.push(['_trackPageview']);
|
|
|
|
(function() {
|
|
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
|
|
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
|
|
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
|
|
})();
|
|
|
|
</script>
|
|
</head>
|
|
<body>
|
|
|
|
|
|
<div class="container-fluid">
|
|
|
|
<div id="breadcrumbs">
|
|
<ul class="breadcrumb">
|
|
|
|
|
|
<li class="">
|
|
<a href="http://rundeck.org" class="externalLink" title="Rundeck">Rundeck</a>
|
|
<li class="divider ">/</li>
|
|
</li>
|
|
<li class="">
|
|
<a href="./" title="Rundeck API - Java Client">Rundeck API - Java Client</a>
|
|
<li class="divider ">/</li>
|
|
</li>
|
|
<li class="">CPD Results</li>
|
|
|
|
|
|
<li id="publishDate" class="pull-right">Last Published: 2014-11-25</li> <li class="divider pull-right">|</li>
|
|
<li id="projectVersion" class="pull-right">Version: 12.0</li>
|
|
</ul>
|
|
</div>
|
|
|
|
<div id="leftColumn" class="sidebar">
|
|
<div class="well">
|
|
|
|
|
|
<h5>RunDeck API - Java Client</h5>
|
|
<ul>
|
|
<li class="none">
|
|
<a href="index.html" title="Introduction">Introduction</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="status.html" title="Status">Status</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="faq.html" title="FAQ">FAQ</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="download.html" title="Download">Download</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="changes-report.html" title="Changelog">Changelog</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="apidocs/index.html" title="API Documentation">API Documentation</a>
|
|
</li>
|
|
</ul>
|
|
<h5>Scripting examples</h5>
|
|
<ul>
|
|
<li class="none">
|
|
<a href="scripting.html" title="Introduction">Introduction</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="groovy.html" title="Groovy">Groovy</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="jruby.html" title="JRuby">JRuby</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="jython.html" title="Jython">Jython</a>
|
|
</li>
|
|
</ul>
|
|
<h5>Project Documentation</h5>
|
|
<ul>
|
|
<li class="collapsed">
|
|
<a href="project-info.html" title="Project Information">Project Information</a>
|
|
</li>
|
|
<li class="expanded">
|
|
<a href="project-reports.html" title="Project Reports">Project Reports</a>
|
|
<ul>
|
|
<li class="none">
|
|
<a href="apidocs/index.html" title="JavaDocs">JavaDocs</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="testapidocs/index.html" title="Test JavaDocs">Test JavaDocs</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="xref/index.html" title="Source Xref">Source Xref</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="xref-test/index.html" title="Test Source Xref">Test Source Xref</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="taglist.html" title="Tag List">Tag List</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="changes-report.html" title="Changes Report">Changes Report</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="property-updates-report.html" title="Property Updates Report">Property Updates Report</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="plugin-updates-report.html" title="Plugin Updates Report">Plugin Updates Report</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="dependency-updates-report.html" title="Dependency Updates Report">Dependency Updates Report</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="pmd.html" title="PMD Report">PMD Report</a>
|
|
</li>
|
|
<li class="none">
|
|
<strong>CPD Report</strong>
|
|
</li>
|
|
<li class="none">
|
|
<a href="findbugs.html" title="FindBugs Report">FindBugs Report</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
<div id="poweredBy">
|
|
<a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy">
|
|
<img class="poweredBy" alt="Built by Maven" src="./images/logos/maven-feather.png" />
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="bodyColumn" class="content">
|
|
<div id="contentBox">
|
|
|
|
<div class="section"><h2>CPD Results<a name="CPD_Results"></a></h2><p>The following document contains the results of PMD's <a class="externalLink" href="http://pmd.sourceforge.net/cpd.html">CPD</a> 4.2.5.</p></div><div class="section"><h2>Duplications<a name="Duplications"></a></h2><table border="0" class="zebra-striped"><tr class="a"><th>File</th><th>Line</th></tr><tr class="b"><td>org/rundeck/api/domain/RundeckEvent.java</td><td><a href="./xref/org/rundeck/api/domain/RundeckEvent.html#152">152</a></td></tr><tr class="a"><td>org/rundeck/api/domain/RundeckExecution.java</td><td><a href="./xref/org/rundeck/api/domain/RundeckExecution.html#141">141</a></td></tr><tr class="b"><td colspan='2'><div><pre> }
|
|
|
|
public Date getStartedAt() {
|
|
return (startedAt != null) ? new Date(startedAt.getTime()) : null;
|
|
}
|
|
|
|
public void setStartedAt(Date startedAt) {
|
|
this.startedAt = ((startedAt != null) ? new Date(startedAt.getTime()) : null);
|
|
}
|
|
|
|
public Date getEndedAt() {
|
|
return (endedAt != null) ? new Date(endedAt.getTime()) : null;
|
|
}
|
|
|
|
public void setEndedAt(Date endedAt) {
|
|
this.endedAt = ((endedAt != null) ? new Date(endedAt.getTime()) : null);
|
|
}
|
|
|
|
public String getAbortedBy() {
|
|
return abortedBy;
|
|
}
|
|
|
|
public void setAbortedBy(String abortedBy) {
|
|
this.abortedBy = abortedBy;
|
|
}
|
|
|
|
public String getDescription() {</pre></div></td></tr></table><table border="0" class="zebra-striped"><tr class="a"><th>File</th><th>Line</th></tr><tr class="b"><td>org/rundeck/api/domain/RundeckEvent.java</td><td><a href="./xref/org/rundeck/api/domain/RundeckEvent.html#60">60</a></td></tr><tr class="a"><td>org/rundeck/api/domain/RundeckExecution.java</td><td><a href="./xref/org/rundeck/api/domain/RundeckExecution.html#63">63</a></td></tr><tr class="b"><td colspan='2'><div><pre> public Long getDurationInMillis() {
|
|
if (startedAt == null || endedAt == null) {
|
|
return null;
|
|
}
|
|
return endedAt.getTime() - startedAt.getTime();
|
|
}
|
|
|
|
/**
|
|
* @return the duration of the execution in seconds (or null if the execution is still running, or has been aborted)
|
|
*/
|
|
public Long getDurationInSeconds() {
|
|
Long durationInMillis = getDurationInMillis();
|
|
return durationInMillis != null ? TimeUnit.MILLISECONDS.toSeconds(durationInMillis) : null;
|
|
}
|
|
|
|
/**
|
|
* @return the duration of the execution, as a human-readable string : "3 minutes 34 seconds" (or null if the
|
|
* execution is still running, or has been aborted)
|
|
*/
|
|
public String getDuration() {
|
|
Long durationInMillis = getDurationInMillis();
|
|
return durationInMillis != null ? DurationFormatUtils.formatDurationWords(durationInMillis, true, true) : null;
|
|
}
|
|
|
|
/**
|
|
* @return the duration of the execution, as a "short" human-readable string : "0:03:34.187" (or null if the
|
|
* execution is still running, or has been aborted)
|
|
*/
|
|
public String getShortDuration() {
|
|
Long durationInMillis = getDurationInMillis();
|
|
return durationInMillis != null ? DurationFormatUtils.formatDurationHMS(durationInMillis) : null;
|
|
}
|
|
|
|
public Long getId() {</pre></div></td></tr></table></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<footer class="footer">
|
|
<div class="container-fluid">
|
|
<div class="row span16">Copyright © 2011-2014.
|
|
All Rights Reserved.
|
|
|
|
</div>
|
|
|
|
</div>
|
|
</footer>
|
|
</body>
|
|
</html>
|