Main Page | Packages | Class Hierarchy | Class List | Directories | File List | Class Members

agents.DBManager Class Reference

List of all members.

Public Member Functions

 DBManager (String magConfFile)
void registerApplication (ExecutionInfo ainfo)
void unregisterApplication (String appExecId)
boolean changeApplicationLocation (String appExecId, String newHost)
ExecutionInfo[] getHostApplications (String hostName)
ExecutionInfo[] getUserApplications (String userName)
ExecutionInfo[] getMainRequestIdApplications (String appMainRequestId)
boolean unregisterApplication (AsctRequestId asctRequestId)
void setFinishedStateApplication (String appExecutionId)
boolean updateAgent (ExecutionInfo einfo)
ApplicationParam getApplicationParam (AsctRequestId id)
ApplicationStateInfo[] getApplicationsStateInfo (String user)

Private Member Functions

ExecutionInfo[] getApplications (String xpath)
boolean isApplicationRegistered (String appExecutionId)
Node createApplicationXML (ExecutionInfo execInfo)
ExecutionInfo createExecutionInfo (Node node)
String getChildTagValue (Element elem, String tagName)
void setFinishTimestamp (String appExecutionId, String finishTimestamp)
void setStateApplication (String appExecutionId, String state)

Private Attributes

Collection col = null
DocumentBuilder db = null

Static Private Attributes

static final String DATABASE_NAME = "executionmanagement"

Detailed Description

Author:
rafaelf


Constructor & Destructor Documentation

agents.DBManager.DBManager String  magConfFile  ) 
 


Member Function Documentation

boolean agents.DBManager.changeApplicationLocation String  appExecId,
String  newHost
 

Node agents.DBManager.createApplicationXML ExecutionInfo  execInfo  )  [private]
 

ExecutionInfo agents.DBManager.createExecutionInfo Node  node  )  [private]
 

ApplicationParam agents.DBManager.getApplicationParam AsctRequestId  id  ) 
 

This method return all Applicaiton's Param.

Parameters:
id - identify the application.
Returns:
ApplicationParam.

ExecutionInfo [] agents.DBManager.getApplications String  xpath  )  [private]
 

ApplicationStateInfo [] agents.DBManager.getApplicationsStateInfo String  user  ) 
 

This method return the Application's State.

Parameters:
user - User that sended the application.
Returns:
ApplicationStateInfo[].

String agents.DBManager.getChildTagValue Element  elem,
String  tagName
[private]
 

ExecutionInfo [] agents.DBManager.getHostApplications String  hostName  ) 
 

ExecutionInfo [] agents.DBManager.getMainRequestIdApplications String  appMainRequestId  ) 
 

ExecutionInfo [] agents.DBManager.getUserApplications String  userName  ) 
 

boolean agents.DBManager.isApplicationRegistered String  appExecutionId  )  [private]
 

void agents.DBManager.registerApplication ExecutionInfo  ainfo  ) 
 

void agents.DBManager.setFinishedStateApplication String  appExecutionId  ) 
 

This method Edit Application's State, for finished.

Parameters:
appExecutionId - identify the application.

void agents.DBManager.setFinishTimestamp String  appExecutionId,
String  finishTimestamp
[private]
 

This method set the Application's finishTimestamp

void agents.DBManager.setStateApplication String  appExecutionId,
String  state
[private]
 

This method Edit Application's State.

Parameters:
appExecutionId - identify the application
state - Application 's state.

boolean agents.DBManager.unregisterApplication AsctRequestId  asctRequestId  ) 
 

This method unregister Application.

Parameters:
asctRequestId - identify the application.
Returns:
true, if success, or else return false

void agents.DBManager.unregisterApplication String  appExecId  ) 
 

boolean agents.DBManager.updateAgent ExecutionInfo  einfo  ) 
 

This method update Agent's status and Application's info.

Parameters:
ainfo - Application's Data .


Member Data Documentation

Collection agents.DBManager.col = null [private]
 

final String agents.DBManager.DATABASE_NAME = "executionmanagement" [static, private]
 

DocumentBuilder agents.DBManager.db = null [private]
 


The documentation for this class was generated from the following file:
Generated on Fri Feb 17 09:37:53 2006 for MAG by  doxygen 1.4.4