|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ace.moab.api.node.ApplicationStatistics
public class ApplicationStatistics
This class is used to keep track of the statistics for applications ran on a
node. These statistics deal directly with a single node, and therefore this
class is inherited by the MoabNode
class.
The statistics stored in this class correspond to the statistics found within
the the \
tags in Moab's XML. Any updates to that
tag should be updated in this class.
Constructor Summary | |
---|---|
ApplicationStatistics(java.lang.String name)
Default Constructor. |
Method Summary | |
---|---|
int |
compareTo(ApplicationStatistics o)
|
java.lang.String |
getApplicationName()
Get the application name. |
int |
getFailureCount()
Get the number of times this node failed to run the application. |
int |
getNumTimesApplicationRan()
Get the number of times this application ran on the node. |
double |
getSumTotalWorkOverTime()
Get the summation of all total work this node has done running the application divided by the total time it took to complete the total work. |
void |
setApplicationName(java.lang.String applicationName)
Set the application name. |
void |
setFailureCount(int failureCount)
Set the number of times this node failed to run the application. |
void |
setNumTimesApplicationRan(int numTimesApplicationRan)
Set the number of times this application ran on the node. |
void |
setSumTotalWorkOverTime(double sumTotalWorkOverTime)
Set the summation of all total work this node has done running the application divided by the total time it took to complete the total work. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ApplicationStatistics(java.lang.String name)
name
- The application name.Method Detail |
---|
public java.lang.String getApplicationName()
Get the application name.
Cannot return null
.
public void setApplicationName(java.lang.String applicationName)
Set the application name.
Cannot set to null
.
applicationName
- The application's name.public int getNumTimesApplicationRan()
Get the number of times this application ran on the node.
public void setNumTimesApplicationRan(int numTimesApplicationRan)
Set the number of times this application ran on the node.
numTimesApplicationRan
- The number of times this application ran on the node.public int getFailureCount()
Get the number of times this node failed to run the application.
public void setFailureCount(int failureCount)
Set the number of times this node failed to run the application.
failureCount
- The number of times this node failed to run the application.public double getSumTotalWorkOverTime()
Get the summation of all total work this node has done running the application divided by the total time it took to complete the total work.
public void setSumTotalWorkOverTime(double sumTotalWorkOverTime)
Set the summation of all total work this node has done running the application divided by the total time it took to complete the total work.
sumTotalWorkOverTime
- The summation of all total work this node has done running the
application divided by the total time it took to complete the
total work.public int compareTo(ApplicationStatistics o)
compareTo
in interface java.lang.Comparable<ApplicationStatistics>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |