umich.cac.queryengine
Class LookupService

java.lang.Object
  extended byumich.cac.queryengine.LookupService
All Implemented Interfaces:
LookupServiceEngine

public final class LookupService
extends java.lang.Object
implements LookupServiceEngine

Queries the DB using the query engine, and returns usage statistics

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

Constructor Summary
LookupService()
           
 
Method Summary
 java.util.Map getUserData(java.util.Date startDate, java.util.Date endDate)
          Return a Map with key of username, and value of UserData for that user filled in with user statistics
 void setLookupService(QueryEngine queryEngine)
          Set the query engine to use to perform the queriest against
 void setQueryEngine(QueryEngine queryEngine)
          Sets the engine to query used to fetch the user data
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LookupService

public LookupService()
Method Detail

setLookupService

public void setLookupService(QueryEngine queryEngine)
Set the query engine to use to perform the queriest against

Parameters:
queryEngine - The query engine to perform XPATH queries against

setQueryEngine

public void setQueryEngine(QueryEngine queryEngine)
Sets the engine to query used to fetch the user data

Specified by:
setQueryEngine in interface LookupServiceEngine
Parameters:
queryEngine - the QueryEngin to use for obtaining the user data

getUserData

public java.util.Map getUserData(java.util.Date startDate,
                                 java.util.Date endDate)
Return a Map with key of username, and value of UserData for that user filled in with user statistics

Specified by:
getUserData in interface LookupServiceEngine
Parameters:
startDate - the start end date for the jobs
endDate - the end end date for the jobs
Returns:
Map with KEY: userName VALUE: UserData object filled in with user stats