public class TcaCollectionSet extends AbstractCollectionSet
Modifier and Type | Field and Description |
---|---|
static String |
INBOUND_DELAY
The Constant INBOUND_DELAY.
|
static String |
INBOUND_JITTER
The Constant INBOUND_JITTER.
|
static String |
LAST_TIMESTAMP
The Constant LAST_TIMESTAMP.
|
static String |
OUTBOUND_DELAY
The Constant OUTBOUND_DELAY.
|
static String |
OUTBOUND_JITTER
The Constant OUTBOUND_JITTER.
|
static String |
TIMESYNC_STATUS
The Constant TIMESYNC_STATUS.
|
Constructor and Description |
---|
TcaCollectionSet(SnmpCollectionAgent agent,
RrdRepository repository,
ResourceStorageDao resourceStorageDao)
Instantiates a new TCA collection set.
|
Modifier and Type | Method and Description |
---|---|
protected void |
collect()
Collect.
|
protected List<TcaCollectionResource> |
getCollectionResources()
Gets the collection resources.
|
Date |
getCollectionTimestamp()
Returns the timestamp of when this data collection was taken.
|
int |
getStatus()
getStatus
|
void |
setCollectionTimestamp(Date date)
Sets the collection timestamp.
|
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)
|
ignorePersist
public static final String LAST_TIMESTAMP
public static final String INBOUND_DELAY
public static final String INBOUND_JITTER
public static final String OUTBOUND_DELAY
public static final String OUTBOUND_JITTER
public static final String TIMESYNC_STATUS
public TcaCollectionSet(SnmpCollectionAgent agent, RrdRepository repository, ResourceStorageDao resourceStorageDao)
agent
- the agentrepository
- the repositorypublic int getStatus()
CollectionSet
getStatus
public void visit(CollectionSetVisitor visitor)
CollectionVisitable
visitor
- a CollectionSetVisitor
object.public Date getCollectionTimestamp()
CollectionSet
public void setCollectionTimestamp(Date date)
date
- the new collection timestampprotected void collect() throws CollectionException
CollectionException
- the collection exceptionprotected List<TcaCollectionResource> getCollectionResources()
Copyright © 2017. All rights reserved.