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

java.lang.Object
  extended by org.rhq.core.domain.resource.composite.AgentLastAvailabilityPingComposite
All Implemented Interfaces:
Serializable

public class AgentLastAvailabilityPingComposite
extends Object
implements Serializable

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.

See Also:
Serialized Form

Constructor Summary
AgentLastAvailabilityPingComposite(int agentId, String agentName, String remoteEndpoint, Long lastPing, boolean backFilled)
           
 
Method Summary
 boolean equals(Object obj)
           
 int getAgentId()
           
 String getAgentName()
           
 Long getLastAvailabilityPing()
           
 String getRemoteEndpoint()
           
 int hashCode()
           
 boolean isBackFilled()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AgentLastAvailabilityPingComposite

public AgentLastAvailabilityPingComposite(int agentId,
                                          String agentName,
                                          String remoteEndpoint,
                                          Long lastPing,
                                          boolean backFilled)
Method Detail

getAgentId

public int getAgentId()

getAgentName

public String getAgentName()

getRemoteEndpoint

public String getRemoteEndpoint()

getLastAvailabilityPing

public Long getLastAvailabilityPing()

isBackFilled

public boolean isBackFilled()

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-2012 Red Hat, Inc.. All Rights Reserved.