Class TcpPersistOperationBuilder
- java.lang.Object
-
- org.opennms.netmgt.collection.persistence.tcp.TcpPersistOperationBuilder
-
- All Implemented Interfaces:
PersistOperationBuilder
public class TcpPersistOperationBuilder extends Object implements PersistOperationBuilder
-
-
Constructor Summary
Constructors Constructor Description TcpPersistOperationBuilder(TcpOutputStrategy tcpStrategy, ResourceIdentifier resource, String rrdName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcommit()Commit.StringgetName()Used to identify the builder in log messages in an exception is thrown during a call to commit().TimeKeepergetTimeKeeper()voidsetAttributeMetadata(String metricIdentifier, String name)voidsetAttributeValue(CollectionAttributeType attributeType, Number value)voidsetStringAttributeValue(String key, String value)voidsetTimeKeeper(TimeKeeper timeKeeper)
-
-
-
Constructor Detail
-
TcpPersistOperationBuilder
public TcpPersistOperationBuilder(TcpOutputStrategy tcpStrategy, ResourceIdentifier resource, String rrdName)
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:PersistOperationBuilderUsed to identify the builder in log messages in an exception is thrown during a call to commit().- Specified by:
getNamein interfacePersistOperationBuilder
-
setAttributeValue
public void setAttributeValue(CollectionAttributeType attributeType, Number value)
- Specified by:
setAttributeValuein interfacePersistOperationBuilder
-
setAttributeMetadata
public void setAttributeMetadata(String metricIdentifier, String name)
- Specified by:
setAttributeMetadatain interfacePersistOperationBuilder
-
commit
public void commit() throws PersistExceptionCommit.- Specified by:
commitin interfacePersistOperationBuilder- Throws:
PersistException- the persist exception
-
getTimeKeeper
public TimeKeeper getTimeKeeper()
-
setTimeKeeper
public void setTimeKeeper(TimeKeeper timeKeeper)
-
-