org.opennms.netmgt.collectd.jdbc
Class JdbcCollectionSet

java.lang.Object
  extended by org.opennms.netmgt.collectd.jdbc.JdbcCollectionSet
All Implemented Interfaces:
CollectionSet

public class JdbcCollectionSet
extends Object
implements CollectionSet


Constructor Summary
JdbcCollectionSet(CollectionAgent agent)
           
 
Method Summary
 List<JdbcCollectionResource> getCollectionResources()
           
 Date getCollectionTimestamp()
          Returns the timestamp of when this data collection was taken.
 int getStatus()
          getStatus
 boolean ignorePersist()
          ignorePersist
 void setCollectionResources(List<JdbcCollectionResource> collectionResources)
           
 void setCollectionTimestamp(Date timestamp)
           
 void setStatus(int status)
           
 void visit(CollectionSetVisitor visitor)
          Provide a way to visit all the values in the CollectionSet, for any appropriate purposes (persisting, thresholding, or others) The expectation is that calling this method will ultimately call visitResource, visitGroup and visitAttribute (as appropriate)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JdbcCollectionSet

public JdbcCollectionSet(CollectionAgent agent)
Method Detail

getStatus

public int getStatus()
Description copied from interface: CollectionSet

getStatus

Specified by:
getStatus in interface CollectionSet
Returns:
an int (one of the ServiceCollector.COLLECTION_ values)

setStatus

public void setStatus(int status)

getCollectionResources

public List<JdbcCollectionResource> getCollectionResources()

setCollectionResources

public void setCollectionResources(List<JdbcCollectionResource> collectionResources)

visit

public void visit(CollectionSetVisitor visitor)
Description copied from interface: CollectionSet
Provide a way to visit all the values in the CollectionSet, for any appropriate purposes (persisting, thresholding, or others) The expectation is that calling this method will ultimately call visitResource, visitGroup and visitAttribute (as appropriate)

Specified by:
visit in interface CollectionSet
Parameters:
visitor - a CollectionSetVisitor object.

ignorePersist

public boolean ignorePersist()
Description copied from interface: CollectionSet

ignorePersist

Specified by:
ignorePersist in interface CollectionSet
Returns:
a boolean.

getCollectionTimestamp

public Date getCollectionTimestamp()
Description copied from interface: CollectionSet
Returns the timestamp of when this data collection was taken. Used by thresholding

Specified by:
getCollectionTimestamp in interface CollectionSet
Returns:

setCollectionTimestamp

public void setCollectionTimestamp(Date timestamp)


Copyright © 2011. All Rights Reserved.