umich.cac.queryengine
Class UserData

java.lang.Object
  extended byumich.cac.queryengine.UserData

public final class UserData
extends java.lang.Object

Container class for user data. Encapsulates job data for a user

Version:
$Header: /cvsroot/pbsaccounting/pbsaccounting/darkslide/doc/javadoc/umich/cac/queryengine/UserData.html,v 1.3 2003/12/18 17:16:08 rodmach Exp $
Author:
rmach@umich.edu

Constructor Summary
UserData(java.lang.String user)
          Constructor.
 
Method Summary
 java.lang.String getGroupName()
          Get the group name
 long getTotalMemory()
          Get total memory on kb used by user
 long getTotalNodes()
          Returns the total nodes used
 long getTotalNumberOfJobs()
          Return the number of jobs ran by the user
 long getTotalWaitTime()
          Get the total wait time in seconds
 long getTotalWallClock()
          Get total wall clock seconds used by user
 java.lang.String getUserName()
          Get the username
 void setGroupName(java.lang.String groupName)
          Set the group name for the user
 void setTotalMemory(long totalMemory)
          Set the total memory in kb used
 void setTotalNodes(long totalNodes)
          Sets the total nodes used
 void setTotalNumberOfJobs(long totalNumberOfJobs)
          Set the total number of jobs ran by the user
 void setTotalWaitTime(long totalWaitTime)
          Set the total wait time in seconds
 void setTotalWallClock(long totalWallClock)
          Set the number of wall clock seconds the user used
 java.lang.String toString()
          A debugging method for printing data held by this class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UserData

public UserData(java.lang.String user)
Constructor.

Parameters:
user - LoginId of the user
Method Detail

setTotalMemory

public void setTotalMemory(long totalMemory)
Set the total memory in kb used

Parameters:
totalMemory - total memory in kb used by user

setTotalWallClock

public void setTotalWallClock(long totalWallClock)
Set the number of wall clock seconds the user used

Parameters:
totalWallClock - the totalWallClock in seconds used

setTotalWaitTime

public void setTotalWaitTime(long totalWaitTime)
Set the total wait time in seconds

Parameters:
totalWaitTime - totalWaitTime in seconds

setTotalNumberOfJobs

public void setTotalNumberOfJobs(long totalNumberOfJobs)
Set the total number of jobs ran by the user

Parameters:
totalNumberOfJobs - The totalNumberOfJobs used

getGroupName

public java.lang.String getGroupName()
Get the group name

Returns:
the users group name

setGroupName

public void setGroupName(java.lang.String groupName)
Set the group name for the user

Parameters:
groupName - the users group name

getTotalMemory

public long getTotalMemory()
Get total memory on kb used by user

Returns:
long total memory in kb used

getTotalWallClock

public long getTotalWallClock()
Get total wall clock seconds used by user

Returns:
long total wall clock seconds used

getUserName

public java.lang.String getUserName()
Get the username

Returns:
the user name

getTotalNumberOfJobs

public long getTotalNumberOfJobs()
Return the number of jobs ran by the user

Returns:
The number of jobs ran by the user

getTotalWaitTime

public long getTotalWaitTime()
Get the total wait time in seconds

Returns:
The totalWaitTime for the job in seconds

getTotalNodes

public long getTotalNodes()
Returns the total nodes used

Returns:
Returns the totalNodes.

setTotalNodes

public void setTotalNodes(long totalNodes)
Sets the total nodes used

Parameters:
totalNodes - The totalNodes to set.

toString

public java.lang.String toString()
A debugging method for printing data held by this class. Format is
  USER: usernameGROUP: groupTOTAL WALLCLOCK : wallclock secondsTOTAL NUMBER OF JOBS: numer of jobsTOTAL PROCESSORS : total processors TOTAL WAIT TIME : total wait timeTOTAL MEMORY: total memory 
 
For DEBUGGING ONLY. This format is not fixed and is subject to change so don't rely on it.

Returns:
A debugging String representing this class