org.rhq.core.domain.resource.composite
Class AgentLastAvailabilityReportComposite

java.lang.Object
  extended by org.rhq.core.domain.resource.composite.AgentLastAvailabilityReportComposite

public class AgentLastAvailabilityReportComposite
extends Object

Pairs an Agent with its last report time. The purpose of this is so we can query the database for all agents and only have to keep in memory just the things we'll need initially, that is the last available time and the agent ID.


Constructor Summary
AgentLastAvailabilityReportComposite(int agentId, String agentName, String remoteEndpoint, Date lastReport)
           
 
Method Summary
 boolean equals(Object obj)
           
 int getAgentId()
           
 String getAgentName()
           
 Date getLastAvailabilityReport()
           
 String getRemoteEndpoint()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AgentLastAvailabilityReportComposite

public AgentLastAvailabilityReportComposite(int agentId,
                                            String agentName,
                                            String remoteEndpoint,
                                            Date lastReport)
Method Detail

getAgentId

public int getAgentId()

getAgentName

public String getAgentName()

getRemoteEndpoint

public String getRemoteEndpoint()

getLastAvailabilityReport

public Date getLastAvailabilityReport()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2008 RHQ Project Advisory Board (Red Hat, Inc. and Hyperic, Inc.). All Rights Reserved.