org.rhq.core.domain.discovery
Class InventoryReport

java.lang.Object
  extended by org.rhq.core.domain.discovery.InventoryReport
All Implemented Interfaces:
Serializable

public class InventoryReport
extends Object
implements Serializable

This tracks the results of an inventory discovery scan and is used to send the information back to the server when appropriate.

See Also:
Serialized Form

Constructor Summary
InventoryReport(Agent agent)
           
 
Method Summary
 void addAddedRoot(Resource resource)
           
 void addError(org.rhq.core.util.exception.ExceptionPackage error)
           
 Set<Resource> getAddedRoots()
           
 Agent getAgent()
           
 long getEndTime()
           
 List<org.rhq.core.util.exception.ExceptionPackage> getErrors()
           
 long getRequestId()
           
 int getResourceCount()
           
 long getStartTime()
           
 boolean isRuntimeReport()
           
 void setEndTime(long endTime)
           
 void setRequestId(long requestId)
           
 void setRuntimeReport(boolean runtimeReport)
           
 void setStartTime(long startTime)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InventoryReport

public InventoryReport(Agent agent)
Method Detail

getRequestId

public long getRequestId()

setRequestId

public void setRequestId(long requestId)

getAgent

public Agent getAgent()

getAddedRoots

public Set<Resource> getAddedRoots()

addAddedRoot

public void addAddedRoot(Resource resource)

getErrors

public List<org.rhq.core.util.exception.ExceptionPackage> getErrors()

addError

public void addError(org.rhq.core.util.exception.ExceptionPackage error)

getStartTime

public long getStartTime()

setStartTime

public void setStartTime(long startTime)

getEndTime

public long getEndTime()

setEndTime

public void setEndTime(long endTime)

isRuntimeReport

public boolean isRuntimeReport()

setRuntimeReport

public void setRuntimeReport(boolean runtimeReport)

getResourceCount

public int getResourceCount()
Returns:
a count of the total number of resources to be added in this report


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