com.ace.moab.api.node
Class ApplicationStatistics

java.lang.Object
  extended by com.ace.moab.api.node.ApplicationStatistics
All Implemented Interfaces:
java.lang.Comparable<ApplicationStatistics>

public class ApplicationStatistics
extends java.lang.Object
implements java.lang.Comparable<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.

Author:
Scott Brown

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

ApplicationStatistics

public ApplicationStatistics(java.lang.String name)
Default Constructor. Creates the statistics for the application name specified.

Parameters:
name - The application name.
Method Detail

getApplicationName

public java.lang.String getApplicationName()

Get the application name.

Cannot return null.

Returns:
the the application name.

setApplicationName

public void setApplicationName(java.lang.String applicationName)

Set the application name.

Cannot set to null.

Parameters:
applicationName - The application's name.

getNumTimesApplicationRan

public int getNumTimesApplicationRan()

Get the number of times this application ran on the node.

Returns:
the number of times this application ran on the node.

setNumTimesApplicationRan

public void setNumTimesApplicationRan(int numTimesApplicationRan)

Set the number of times this application ran on the node.

Parameters:
numTimesApplicationRan - The number of times this application ran on the node.

getFailureCount

public int getFailureCount()

Get the number of times this node failed to run the application.

Returns:
The number of times this node failed to run the application.

setFailureCount

public void setFailureCount(int failureCount)

Set the number of times this node failed to run the application.

Parameters:
failureCount - The number of times this node failed to run the application.

getSumTotalWorkOverTime

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.

Returns:
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.

setSumTotalWorkOverTime

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.

Parameters:
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.

compareTo

public int compareTo(ApplicationStatistics o)

Specified by:
compareTo in interface java.lang.Comparable<ApplicationStatistics>


Copyright © 2001-2009 Cluster Resources, Inc. All Rights Reserved.